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.
Hi All,
Could anyone please tell me which generic register/location in memory can be used for storing a bit value which will not get reset after a CPU reset? I need the register to hold the value after a CPU reset so that I can know if a reset has happened successfully or not.
I am trying to use the SYS_NVFLAGSSET register. As I understand, this is a general purpose flag register. So I am trying to write certain value to it, which can be used later for checking. However, I am unable to write any value to it using the STR instruction. I understand that this register is at an address of 0x00000038. On checking the contents after writing, I see the default value of 0x00007F02 still loaded. (However, on researching I found this is a device specific register and may not be generic to ARM Cortex-M4 processors!)
Please let me know the correct register and if this approach is right or not.
My main purpose is that I want a value of 1 to be written to a register so that after a CPU soft-reset this value is retained and can be checked to see if the CPU has been resetted or not.
Thanks & Regards,
\Kashif
Message was edited by: Kashif Updated with newer inputs
These details are manufacturer-specific, but I've checked the TI data-sheet and I agree, it looks as though the RESC register will be at 0x400FE05C.
Good luck!
Hi Jon,
Thanks for the confirmation. However, as per the documentation it says that the bit field 4 should be set to 1 after a S/W reset. However, I fail to see any change in the register values as shown in the snapshot.
Any ideas on this?
BR,
Try a memory read of 0x400FE05C using the debugger.