Write CPMUCOP Problem

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

Write CPMUCOP Problem

ソリューションへジャンプ
725件の閲覧回数
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 解決策
582件の閲覧回数
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 返答(返信)
583件の閲覧回数
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

582件の閲覧回数
fanziyu
Contributor IV

Thanks a lot!

0 件の賞賛
582件の閲覧回数
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