Reset Register always set to 0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reset Register always set to 0

Jump to solution
804 Views
xavierbuhot
Contributor II

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,

0 Kudos
1 Solution
653 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
3 Replies
654 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

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

0 Kudos
653 Views
xavierbuhot
Contributor II

Thank you it works now.

0 Kudos
653 Views
mjbcswitzerland
Specialist V

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

0 Kudos