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/TMS320F28069: Error encountered when writing to flash memory

Part Number: TMS320F28069
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi All,

I am using TMS320F28069PZT for my inverter application. When I tried to download or debug program from CCS v5 then it is working fine. But same thing, I am trying from CCS Uniflash 3.4.0 then I am getting following error.

On 1st attempt:

[15:49:11] ERROR >> C28xx: Flash Programmer: Error encountered when writing to flash memory

[15:49:11] ERROR >> C28xx: File Loader: Memory write failed: Unknown error

[15:49:11] ERROR >> C28xx: GEL: File: C:\Users\temp\Desktop\starter 23.02.00\Debug\starter_23.00.out: Load failed.

[15:49:11] File: C:\Users\temp\Desktop\starter 23.02.00\Debug\starter_23.00.out: Load failed.

On 2nd attempt:

[16:03:04] ERROR >> C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out

[16:03:24] ERROR >> C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out

[16:03:24] ERROR >> C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.

[16:03:24] ERROR >> C28xx: File Loader: Memory write failed: Unknown error

[16:03:24] ERROR >> C28xx: GEL: File: C:\Users\temp\Desktop\starter 23.02.00\Debug\starter_23.00.out: Load failed.

[16:03:24] File: C:\Users\temp\Desktop\starter 23.02.00\Debug\starter_23.00.out: Load failed.

Please suggest solution for the same.

Thanks and Regards,

Maulik Timbadiya

  • Maulik,

    1. What are your clock settings in both cases?
    2. What emulator are you using?
    3. Is the device locked?
    4. Can you provide me the .out file? I would like to confirm your problem on my setup.
    5. Are you using a custom board or one of our evaluation boards/kits?(for example LAUNCHXL-F28069M)

    Regards,
    Cody

  • Hi Cody,

    1. I am using default clock setting in UniFlash 3.1.0. Screenshot attached herewith.

    2. I am using 510LC JTAG and also tried with XDS100V2. But sometimes in UniFlash, programing is reached upto 80% then i get error.

    3. How can i know device is locked or not?? How to unlock?

    4. I can not provide .out at this stage due to security reason but if issue is not resolved then we will provide it on later stage.

    5. I am using custom board. On same design board there is no issue till now but last 2 board have this kind of issue.


    I can debug code using CCSv5 but can not download it from UniFlash.

    Thanks and Regards,

    Maulik Timbadiya

  • Maulik,

    To check whether the device is locked / unlocked. You can do the following:-

    1) Flash memory (or) any other secure memory location would read 0x0000s when device is locked.
    2) If CSMSCR .bit0 = 1, then device is locked

    You can unlock the device if you enter the right password in 0xAE0 - 0xAE7

    Regards,
    Manoj