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.

TMS320F28069: not able to erase flash

Part Number: TMS320F28069
Other Parts Discussed in Thread: UNIFLASH, C2000WARE

Hi,

i'm using TMS320F28069 controller and have used the "Example_2806xFlashProgramming" for checking the flash API functionality . Do we have to change the device configuration and cmd file as per the controller or it is a generic we can use as default?

after loading the code , i got  "out of memory area and some address" after some trials i got the flash erase issue.

1. flash error status was 24 

2. i have checked with uniflash flasher and tried to erase by both ways sector by sector and depletion recovery tab and observed the same error.

[5/23/2019, 2:29:27 PM] [ERROR] C28xx: Flash Programmer: Error erasing flash memory. Error erasing Sector A - 24

[5/23/2019, 2:29:34 PM] [INFO] C28xx: Erasing Flash memory...

[5/23/2019, 2:29:36 PM] [ERROR] C28xx: Flash Programmer: Error erasing flash memory. Error erasing Sector B - 24

[5/23/2019, 2:29:46 PM] [INFO] C28xx: Depletion Recovery started.

[5/23/2019, 2:30:07 PM] [ERROR] C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface2806xV1_00.out

[5/23/2019, 2:30:07 PM] [ERROR] C28xx: Flash Programmer: Error when performing depletion recovery. Flash operation timed out waiting for the algorithm to complete. Operation cancelled.

Is there any alternate method to recover the flash??

  • Hi Amol,

    For the "Example_2806xFlashProgramming" SW example the linker cmd file included will work. The Flash API is copied from Boot ROM to RAM in this case.

    You can try the depletion recovery algorithm in Code Composer Studio by connecting to your device, then go to "Tools" in the top tool bar and select "On-Chip Flash". In the window that pops up select the "On-Chip Flash" tab, scroll down to "Depletion Recovery" and press the button to start the algorithm. Try this a few times and see if it succeeds.

    If this doesn't succeed and recover the state of the flash it may be in a depleted state that cannot be recovered. There are precautions to take to prevent this from occurring which are spelled out in the Flash API guide within C2000ware:

    C:\ti\c2000\C2000Ware_1_00_06_00\libraries\flash_api\f2806x\docs\Flash2806x_API_Quickstart.pdf

    For additional details on the device flash please see the below FAQ:

    e2e.ti.com/.../

    Best,
    Kevin
  • Hi Kevin,

    i tried both the ways but it didn't recover the flash. i changed controller and followed the procedure given in Flash2806x_API_Quickstart.pdf and its working fine after changing.

    Thanks,
    Amol