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.
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.
it is a good thing you came here to ask first. the best you can do is program your watchdog and let it expire. jumping to address 0x0 (your processor always starts there) might work, but leave peripherals in an undefined condition, have far reaching consequences. so use the watchdog instead. if you want to jump to assembly code - put it in an embedded assembly function
__asm void foo(void)
and call that function.