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
Solved! Go to Solution.
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
I hope it helps.
Best Regards,
Diana
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
I hope it helps.
Best Regards,
Diana
Thanks a lot!
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