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

More questions in this forum