I'm working on a home-made bootloader for my firm, and I try to get the MCU reset reason from MC_SRSH and MC_SRSL to handle different behavior.
This register is always equal to 0 on my MK60DX256VLQ10. It don't matter if I reset using IAR, power-off/power-on, or software reset using AIRCR_SYSRESETREQ.
this code :
if (MC_SRSH == 0 && MC_SRLS)
is alway working.. Not matter what Im trying to do.
However my test-program is working fine when i'm using the development kit TWR_K60N512. I'm kindda lost on this problem.
Does anyone know why SRS is always set to 0 ? Or if there is something to init before accessing to this register ?