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 save register values before __main function

Hi,

I'm working on a cortex M3 based MCU with Keil. After reset a device related information is stored in R4. This value is cleared after __main and before the main function. Is there a way I can store this value and later read it back somewhere after main function?

Thanks,

Bruce

0