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.

F2806x Flash locked

Other Parts Discussed in Thread: TMS320F28069

Hi,

I use CCSv4.2.5, XDS100v2 and TMS320F28069 on a custom board.

The flash erase/program has worked well since the project beginning (4 months ago). I made a lot of debugger session without problem.

This week, I got a flash locked (or depletion) problem twice. When the problem is present, I got these logs in CCSv4 Console:

-----------------------------

  • C28xx: Flash Programmer: Error erasing Flash Memory.
  • C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
  • C28xx: Trouble Writing Memory Block at 0x3F0000 on Page 0 of length 0x32F9
  • Cannot write to target

-----------------------------

The first time, I just changed the DSP without more investigation and that fixed the problem.

The second time, I try to make a depletion recovery but it didn't work... So I changed again the DSP... according to information found on the weblink

http://processors.wiki.ti.com/index.php?title=C2000_Flash_Common_Issues/FAQs#Depletion

I don't like this solution.

I suppose the problem occurs when there is an interruption while the flash is erased.

Questions:

  • Is it a known problem for CCSv4.2.5?
  • Is there a way to avoid erasing of FLASHA sector (sector containing the flash security password)?
  • Could my PC cause that?
  • Could my board cause that? Voltage, clock, etc?
  • Are there tips to avoid this problem?

Thanks,

Steve L.

  • Steve,

    • Is it a known problem for CCSv4.2.5? No. But please make sure you have all the updates.
    • Is there a way to avoid erasing of FLASHA sector (sector containing the flash security password)? Yes, if you using on chip flash programmer, just deselect sector A and then erase the flash.
    • Could my PC cause that? Extremely unlikely unless your emulator hangs. XDS100v2 is slow emulator, did your emulator / CCS hang in the middle of erase / program.
    • Could my board cause that? Voltage, clock, etc? Yes, this might be most likely cause. Make sure you are well within the recommended operation condition
    • Are there tips to avoid this problem? Above suggestions in most cases would solve this problem.
    Regards,
    Manoj
  • Hi Manoj,

    How do I know if the emulator hangs in the middle of erase/program? Is there a parameter to configure?

    Thanks,

    Steve

  • What must I do to avoid this flash depletion (or DSP locked)???

    CCSv4 is up to date. The board was designed according to recommanded operation conditions.

    I can't beleive! I caused three successive flash depletions with three different boards... I reboot my  PC between events.

    I got this message:

    C28xx: Flash Programmer: Error erasing Flash memory.
    C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    C28xx: Trouble Writing Memory Block at 0x3f0000 on Page 0 of Length 0x317c: (Error -2060 @ 0x0) Requested operation cannot be done while device is running. Halt the device, and retry the operation. (Release 5.0.429.0)
    Cannot write to target
    C28xx: Error: (Error -1135 @ 0x8A2E) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.429.0)
    C28xx: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Release 5.0.429.0)
    C28xx: Power Failure on Target CPU
    C28xx: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

    Once it's depleted (after this message), whatever I try, I got this in CCSv4 console.

    C28xx: Erasing Flash memory...
    C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled
    C28xx: Starting program password operation...
    C28xx: Flash Programmer: Error programming password. Device is locked or not connected. Operation cancelled.
    C28xx: Starting device unlocking...
    C28xx: Flash Programmer: Error unlocking flash memory. Device is still locked

    Help me please... I don't understand why the TI chip is so fragile!

    Thanks,

  • Small addon:

    Most of the time, there is no problem. So I am confused.