Write CPMUCOP Problem

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

Write CPMUCOP Problem

Jump to solution
684 Views
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 

Tags (1)
1 Solution
541 Views
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

View solution in original post

3 Replies
542 Views
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

541 Views
fanziyu
Contributor IV

Thanks a lot!

0 Kudos
541 Views
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