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.
I want to restart the program counter at 0x0000 when leaving a function, I already try the following solutions, but the compiler always returns me a syntax error : code void (*pReset) (void) = 0x00; extern code void (*pReset) (void) = 0x00;
In particular, it wouldn't reset the stack pointer - the processor would still be waiting to "return" from the function which did this!
You do not have to worry about resetting the stack pointer, the startup code will handle that.