AnsweredAssumed Answered

After writing NVOPT register, firmware does not work anymore

Question asked by Friedemann Wulff-Woesten on Feb 20, 2015
Latest reply on Feb 20, 2015 by Friedemann Wulff-Woesten


I developed a firmware with bootloader for the MC9S08DV32 microcontroller.

I'm now trying to secure the device so that the flash cannot be read after the device is shipped.

When I try to secure the device by defining a variable like...

"const unsigned char NVOPT_INIT  @0xFFBF = 0x7C"

...the device is secured, but the firmware does not work anymore as expected (normally there should be CAN messages sent every 20 ms, but there is no activity on the bus at all).

When i change the line back to...

"const unsigned char NVOPT_INIT  @0xFFBF = 0x02"

...everything works again as expected. I have no idea why only writing one byte to NVOPT changes the behavior in such a way. Because the Debug-Mode is disenabled when the device is secure, i have no way to debug this problem.

Can you help me?

I use the classic CodeWarrior IDE, lastest version, and a P&E micro USB Multilink Interface to program the chip.

Thank you very much,