Write CPMUCOP Problem

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

Write CPMUCOP Problem

跳至解决方案
1,382 次查看
fanziyu
Contributor IV

Hi:I have a problem with Watchdog.

Is it possible if I want to overwrite CPMUCOP more than once? It seems like that CPMUCOP can be write only once in normal mode.So How to change the mode from Normal mode to Special Mode? any examples?

MC9S12G128  Codewarrior 5.9 

标记 (1)
1 解答
1,239 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

The CPMUCOP register is write once only in normal mode.

The special mode is used for debugging when the BDM is connected.

You can look at the examples for the S12G. There can be found G128-Clock and COP examples

S12G Examples Pack 

 

I hope it helps.

Best Regards,

Diana

在原帖中查看解决方案

3 回复数
1,240 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

The CPMUCOP register is write once only in normal mode.

The special mode is used for debugging when the BDM is connected.

You can look at the examples for the S12G. There can be found G128-Clock and COP examples

S12G Examples Pack 

 

I hope it helps.

Best Regards,

Diana

1,239 次查看
fanziyu
Contributor IV

Thanks a lot!

0 项奖励
回复
1,239 次查看
RadekS
NXP Employee
NXP Employee

Hi Wu,

just few notes:

1. The initial load from Flash during MCU start doesn't count into the write-once limit.

2. the CPMUCOP_RSBCK bit may be changed anytime when CPMUCOP_WRTMASK=1. In such a case, the write into WCOP and CR[2:0] has no effect.

 


I hope it helps you.

Have a great day,
Radek