This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Microprocessor locked while debugging.

Good morning:

I am using CCS 3.3 with 320F2812PFGA microcontroller.

I was trying to implement CRC32 for the uploaded file. There was a checksum example. I modified it so that it would calculate 32. while i was stepping through the code the CPU locked itself. I cannot unlock it. I thought it was just a glitch. The same thing happen on the second board. All the function was doing is reading memory and calculating the CRC32.

As far as I understood from the posts here the CPUs could not be recovered? The are just garbage and have to replaced. Is this correct?

What should I do to avoid this in the future? 

Thanks,

Yvon. 

  • Locking a device during single stepping is very unusual, I never had such a problem in the last 10 years.

    What is your hardware setup? Is it a standard test kit or a custom made board? If it is custom made I would suspect some issues with the power supply, but on the other hand I guess the board runs fine without your CRC32 code...

    Another option would be that your CRC32 code accesses (by accident) some of the CSM memory locations and locks the device. Did the lock happen at the same instruction when you single stepped? I would carefully inspect the code (C and machine code).