Hello,
I was testing and working on my board with (HCS12 DP512 MCU) and an accidental shortcut happened.
The board's parts seem to work without any problem. However, the program stopped at a certain point.
I run the Debug tools to see what's the problem, and it turns out that all the code in the first Fixed page are not executed.
Trying to flash the MCU again, it stops flashing and gives me error message that an address in the first fixed page couldn't be flashed.
questions are:
if a shortcut happens and the MCU is damaged, how could it still communicate with the debugging tools and execute part of the code? (is that possible?)
is it possible that a part of the flash memory is damaged?
and how do I verify that?
thank you and appreciate any help.regards,
--
Alban Edit: FSL Part Number must figure in Message Subject line.
Hello,
Here are a few answers. Next time remember to put the device name in the subject line, as it wastes my time editing messages.
if a shortcut happens and the MCU is damaged, how could it still communicate with the debugging tools and execute part of the code? (is that possible?)
-> Yes, it is possible. You don't need the flash to run the debugger, you just need the CPU, RAM, CRG, OSC and DBG+BDM modules to work.
is it possible that a part of the flash memory is damaged?
-> Yes, but may be you can recover it.
and how do I verify that?
-> You can do programming/verify to check that the content of the flash matches your code.
You can force 2 erases before doing 1 programming to TRY and get the cell back to normal.
It all depends on how/when the programming crash occured.
The best for reliability would be to use another MCU.