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.

CCS/TMS320F28069M: CCS crashed while loading program and now says CSM is locked

Part Number: TMS320F28069M
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

I am not using CSM for my application and always have it set to all 0xFFFF for password region, however for the second time this week as I'm loading the chip with code, CCS is in the middle of erasing/loading new program and it crashes without any error message and now when I try to load code to the processor it says:

Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.

C28xx: File Loader: Memory write failed: Unknown error

before this I have been using the same method for over a year with the same board with no issues. I am trying to convert my project to using SYSBIOS and this suddenly started happening, not sure if related but only thing that has really changed.

  • I don’t see how converting a project to SYS/BIOS framework could result in CCS crashing while attempting to program flash.

     

    Devices may become inadvertently locked if the Erase/Program operation is disturbed due to a brown-out/black-out condition. This could also happen if the devices are current-starved during erase/program operation. But you also mention you have been using the same method/board for over a year.

    1. Could you confirm if it is the exact board/device?
    2. Has anything changed in your setup? For example, the power supply used for the board?
    3. If the board is powered through a USB port, have you added more devices on the USB bus?
  • Hey Hareesh!

    Thanks for the quick response:

    1. It is a TMSF28069M on a custom PCB
    2. Haven't changed the power supply, I will have to monitor whether the voltage on the flash power pin goes down during writing to see if it may be browning out though.
    3. It is powered through an external power supply(24v) stepped down to 3.3v for the microcontroller.

  • OK. So you have two bricked parts that you are unable to connect to with CCS? As I mentioned, the only way such inadvertent locking happens is if the erase/program process is disturbed somehow. Of course, the devices could have gone “bad”, but that is unlikely.

    Please do check the rails during erase/program.

  • I checked out the problem on another board while the processor was getting replaced on the board which was bricked, and saw that I was using a very low current supply for the 3.3v supply. I believe with increased code size of the SYS/BIOS was a long enough draw to cause the supply to go below voltage and brown-out the processor. Bigger supply it is! Thanks so much Hareesh!