We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear all,
I use a startup file that includes the AT91F_LowLevelInit() call. AT91F_LowLevelInit() is a c function and is called as followed:
;------------------------------------------------------------------------------ ;- Low level Init (APMC, AIC, EBI, ....) by C function AT91F_LowLevelInit ;------------------------------------------------------------------------------ IMPORT AT91F_LowLevelInit ;- minimum C initialization ldr r0,=Top_Stack ; temporary stack in internal Ram ldr r13,[r0] ldr r0,=AT91F_LowLevelInit mov lr, pc bx r0
Now I want to use the "normal" RealView Startup file but I don't know how and where to modify this file to call my AT91F_LowLevelInit - function.
Does anybody knows, what to do?
Big thanks,
Christian
I don't know your chip, but this should not be too hard: I would say that anywhere after PLL is stabilized (of maybe even before that) and '__main' is called would be fine - you even have your temporary stack for the call. please make sure, though, that your 'AT91F_LowLevelInit' does not use the heap (it is not initialized yet!). just pasting your code in a standard startup file (in the proper location) should do.