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.

F28335: locked after erasing+programming process

Other Parts Discussed in Thread: TMS320F28335

Hello everyone,

I use a TMS320F28335 mounted on a custom board, with the JTAG emulator of the TMS320F28335 Experimenter Kit and the Code Composer Studio version 5.5.0.00077.

At the beginning, I programmed and executed my code in RAM without any problem.
After that I tried to program the flash memory but I only repeated the erase-program procedure a several times without successfully accomplish the task: it stopped at different level (sometimes during the erasing phase, sometimes the erasing phase was completed successfully but the programming phase was interrupted before reaching the 100%).
I discover that this behaviour was due to some damages of the cable connecting the JTAG connector to the micro.

After repairing the cable, I obtain the following results:
- with the boot mode sets to “Jump to Flash”, if I try to connect I receive the following error message:
C28xx: Error: (Error -1135 @ 0x3FF9CE) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.1.232.0)
- with the boot mode sets to “Branch to check boot mode”, I can establish a connection and no error message appears, only the following warnings:
C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
C28xx: GEL Output: ADC Calibration not complete, check if device is unlocked and recalibrate.

Then, if I try to erase the flash sectors I receive the following error:
C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled
Also starting the depletion recovery I receive an error message:
C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation cancelled.
The micro seems to be locked but I have never voluntary set any password and I have never locked the device.

What could be the reason of this final behaviour?

Is there a procedure to erase the flash and restore it at the factory conditions?

  • Hi Simone,

    Your device seems to have gone to a Permanently lock condition. Here you won't be able to recover the device but you've to get it replaced.

    Regards,
    Gautam
  • Simone,

    Based on your problem description, it is likely that your device is in depletion.

    If either sector H (balanced sector of A) (or) Sector A is in depletion, it is possible for device is get locked even if no password was programmed. In the given scenarios, your only option is to get the device replaced as suggested by Gautham.

    Regards,

    Manoj