Hi,
is it possible to call a c-function during the initalization of the startup-file? Could you give me one simple example?
; Reset Handler EXPORT Reset_Handler Reset_Handler ; open lowlevelinit c-function ; IMPORT LowLevelInit ; Setup Power Management Controller (PMC) -------------------------------------- IF :DEF:NO_PMC_INIT ELSE IF PMC_SETUP != 0 LDR R0, =PMC_BASE
Do you know any important things writing this init-function? How do the startup-file know the place / the c-file , where the function is declared?
best regards Alan
When I try,
; Reset Handler EXPORT Reset_Handler ; Perform low-level initialization of the chip using LowLevelInit() IMPORT LowLevelInit Reset_Handler ; Call Low level init LDR r0, =LowLevelInit MOV lr, pc BX r0
the user-code is not working...
what do you mean by that? is the function not called?
View all questions in Keil forum