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

How to jump to a label in asm file from the C function?

Hi,

I'm using ARM7(AT91SAMSE32) in one of my project and Keil's RVCT 3.0 to complile it.

I want to soft reset the system without using the RESET pin on processor.

Someone suggested that directly jump to the Reset_Handler label in the Startup.s file. e.g.

b Reset_Handler

but when write such code in my C function as inline assembly code then its give error message that " Reset_Handler is not defined" although the Reset_Handler label is EXPORTed.

In lot of example I found how to call the C function from assembly file but couldn't find how to jump to the label in .S file from C function.

Pls help me out.

0