This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Branching to main form assembly error

Note: This was originally posted on 25th August 2012 at http://forums.arm.com

Hey guys, do you know why a simple branch to main from the reset handler causes an hard fault? Heres an example where I try to branch to main via the reset hander in the startup file provided by Keil and this causes an

hard fault. Any cue?



Reset_Handler    PROC
                 EXPORT  Reset_Handler             [WEAK]
     IMPORT  __main
                 
                LDR     R0, =__main
                BX      R0
                ENDP
0