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.

How to prevent flash API errors when in CCS debug

Hi folks.

I think I have likely bricked a LaunchPAD Piccolo device by locking its CSM during an interrupted flash API operation.

My use of the API itself  (on the uC to save calibration values) is tested and appears to have been working fine until end of last debug session. But now if i attempt to load the program to the device using CCS debug it fails. Other LaunchPADs work fine.

Is there a way for me to confirm this is the issue?

If it is the issue, I'm guessing I managed to halt the debug session at just the wrong point during a flash API function execution. Is there a way I can prevent this from happening again?

Thanks

  • Is there no way to prevent such future issues?

    Thanks

  • My console output when trying to launch debug on this device is as follows:

    C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: GEL Output: 
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output: 
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
    C28xx: GEL: File: C:\Users\Toby\git\F2802x_BurnInUnit\F2802x_BurnInUnit\F2802x_FLASH\F2802x_BurnInUnit.out: Load failed.

    I dont actually use CSM at all so far, so have not done anything with the passwords in my code so Im not sure how I could prevent this from happening again?? Anyone have any ideas?

  • Hello,

    I am not sure what caused your issue.

    However during erasing any sector of the flash, please make sure there is no interrupt while erasing.

    You should prevent this (any interrupt to be occurred while erasing flash) in your code.

    Best regards,

    Maria