Hi everybody How can I restart the controller by internal rautine?(To simulate the external restart button)
An alternative method is to jump at the reset location (called warm boot). for example if your reset vector is located at 0x0000, you can use this C statement (*((const void(code*)(void)) 0x0000 ))(); (equivalent with LCALL 0 )
"An alternative method is to jump at the reset location" Alternative to what? Did you actually read the thread? "(*((const void(code*)(void)) 0x0000 ))();" You've gone a bit over the top with the asterisks. Try: ((void(code *)(void))0x0000)(); Stefan
"Did you actually read the thread?" Obviously not - as he missed the bit about restoring all SRFs to their default values.
View all questions in Keil forum