Reset Register always set to 0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Reset Register always set to 0

ソリューションへジャンプ
1,950件の閲覧回数
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,799件の閲覧回数
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,800件の閲覧回数
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,799件の閲覧回数
xavierbuhot
Contributor II

Thank you it works now.

0 件の賞賛
返信
1,799件の閲覧回数
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 件の賞賛
返信