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

STARTUP.A51

Hi, I'm want to know something about the "STARTUP.A51" file, which is automatic created by KEIL.

My question is if I do this:

((void (code *) (void)) 0x0000) ();

in any place of my code, will that clean the STACK POINTER?

In other words, if I have two codes in the flash, one starts at 0x0000 and the other at 0x4000, from the code in 0x4000 can I make a LJMP to 0x0000 pretending a software reset and my STACK POINTER will be cleared???

Thanks,

Piero

0