Reset Register always set to 0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Reset Register always set to 0

跳至解决方案
1,965 次查看
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 项奖励
回复
1 解答
1,814 次查看
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 项奖励
回复
3 回复数
1,815 次查看
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 项奖励
回复
1,814 次查看
xavierbuhot
Contributor II

Thank you it works now.

0 项奖励
回复
1,814 次查看
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 项奖励
回复