Hello everybody,
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)
printf("unknow reason");
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 ?
Rgds,
Solved! Go to Solution.
Hello Xavier BUHOT:
Mark's response might be the solution to your issue. Just to complement, there is an application note (AN4445) that provides details about the changes between silicon revisions. Here is the link:
http://cache.freescale.com/files/32bit/doc/app_note/AN4445.pdf
If your problem persists please just let us know.
Regards!
Jorge Gonzalez
Hello Xavier BUHOT:
Mark's response might be the solution to your issue. Just to complement, there is an application note (AN4445) that provides details about the changes between silicon revisions. Here is the link:
http://cache.freescale.com/files/32bit/doc/app_note/AN4445.pdf
If your problem persists please just let us know.
Regards!
Jorge Gonzalez
Thank you it works now.
Hello Xavier
I suspect that your TWR-K60N512 has an old revision 1 Kinetis (K60xxxZ) on it which has the Mode Control block but your MK60DX256VLQ10 is a revision 2 part (no Z) which has no Mode Control, but instead has the System Mode Controller at this address.
In this case you need to read the reset cause in the Reset Control Module instead (RCM_SRS0).
Carefully check the user manuals since there are different versions for the Rev. 1 and Rev. 2 parts.
Regards
Mark
Kinetis: µTasker Kinetis support
K60: µTasker Kinetis TWR-K60N512 support / µTasker Kinetis TWR-K60D100M support / µTasker Kinetis TWR-K60F120M support
For the complete "out-of-the-box" Kinetis experience and faster time to market