While working on an HC12XDP512 using CW 4.6, I've noticed that my controller can't be reprogrammed anymore. I've been debugging for a little while using HighWave and at some point, I've seen the following errors occurring :
FP: FLASH_4000 flash module is bad or protected.
<Timeout> (> 5000 ms)
Program counter: 0x0000F5D2
When the chip is being burned, sometimes I can see a message like the following:
Error: Can't write EE00..FF00
If I use the Unsecure12 program:
Interface Cable Detected
Searching for Interface Speed .
Interface Speed Determined
Inital Flash Securituy Register, FSEC = $FE
WHAT? - Device is Already Unsecured
I'm currently using the P&E USB HC8/HC12 Multilink device to program my board.
Please note that no changes were done on the mapping. This is plain "compile -> link -> program -> debug" operations I've been doing. The device is unsecured but can't accept a new firmware. I've been able to reproduce this issue on different boards and they show this behaviour after a while.
Does anybody know a quick workaround for this issue? What might be the root cause of this problem?
If you need further details, please let me know.