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/TMS320F28335: Unable to Flash TMS320F28335 using CC7.0 or UniFlash

Part Number: TMS320F28335
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hello team,

Please see customer question below

The board we’re using has a TMS320F28335  and we’re using Code Composer 7.0.0. Initially we have been successfully flashing images and running the code.    

All of a sudden we started having problem connecting via JTAG when we tried to flash it. It says that the device was locked.

We used uniFlash to unlock it but when we try to erase Flash (using uniFlash) we get the following message.

We’re wondering: how can the Flash be successfully unlocked, and then not able to Erase it?

Any help will be appreciated…

 

[14:35:34] Begin Launching session operation.

[14:35:34] Operation Launching session returned.

[14:35:34] Loaded target configuration from: C:\Users\ajaffery\Documents\pt.ccxml

[14:36:40] Begin Start Frequency Test operation.

[14:36:41] ERROR >> C28xx: Trouble Reading Register ST1: (Error -1138 @ 0x6) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.83.1)

 

[14:36:41] ERROR >> C28xx: GEL: Error while executing OnTargetConnect(): Target failed to read register ST1

      at (ST1&~(0x0100)) [f28335.gel:312]

      at C28x_Mode() [f28335.gel:82]

      at OnTargetConnect()

 

[14:36:42] ERROR >> C28xx: Trouble Halting Target CPU: (Error -1141 @ 0x0) Device is not responding to the request. 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). (Emulation package 6.0.83.1)

 

[14:36:42] ERROR >> C28xx: Error: (Error -1141 @ 0x0) Device is not responding to the request. 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). (Emulation package 6.0.83.1)

 

[14:36:42] 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.

 

[14:36:42] C28xx: Starting Frequency Test, please wait...

 

[14:36:43] C28xx: Frequency Test started. The target will be in a running state during the operation. Please click the End Frequency Test button to stop the operation.

 

[14:36:43] Operation Start Frequency Test returned.

[14:37:09] Begin Erase Flash operation.

[14:37:10] C28xx: Erasing Flash memory...

 

[14:37:31] ERROR >> C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface28335V2_10.out

 

[14:37:31] ERROR >> C28xx: Flash Programmer: Error erasing flash memory. Flash operation timed out waiting for the algorithm to complete. Operation cancelled.

 

[14:37:32] Error executing Flash operation "Erase": Unknown error

[14:37:33] Operation Erase Flash returned.

[14:37:45] Begin Unlock operation.

[14:37:46] ERROR >> C28xx: Error connecting to the target: (Error -1138 @ 0x800) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.83.1)

 

[14:37:49] ERROR >> C28xx: Trouble Reading Register ST1: (Error -1138 @ 0x6) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.83.1)

 

[14:37:49] ERROR >> C28xx: GEL: Error while executing OnTargetConnect(): Target failed to read register ST1

      at (ST1&~(0x0100)) [f28335.gel:312]

      at C28x_Mode() [f28335.gel:82]

      at OnTargetConnect()

 

[14:37:49] ERROR >> C28xx: Trouble Halting Target CPU: (Error -1138 @ 0x800) Device refused to allow debug mode. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.83.1)

 

[14:37:49] ERROR >> C28xx: Error: (Error -1141 @ 0x0) Device is not responding to the request. 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). (Emulation package 6.0.83.1)

 

[14:37:49] ERROR >> C28xx: Trouble Halting Target CPU: (Error -1041 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 6.0.83.1)

 

[14:37:50] C28xx: Starting device unlocking...

 

[14:37:50] C28xx: Device unlocked. To clear the programmed password, please erase Sector A of Flash memory.

 

[14:37:50] Operation Unlock returned.

[14:38:25] Begin Erase Flash operation.

[14:38:26] C28xx: Erasing Flash memory...

 

[14:38:47] ERROR >> C28xx: Error occurred during flash operation: Timed out waiting for target to halt while executing FlashAPIInterface28335V2_10.out

 

[14:38:47] ERROR >> C28xx: Flash Programmer: Error erasing flash memory. Flash operation timed out waiting for the algorithm to complete. Operation cancelled.

 

[14:38:48] Error executing Flash operation "Erase": Unknown error

[14:38:49] Operation Erase Flash returned.

  • Hi Randhir,

    First of all, did the customer lock the mcu purposely or happened unknowingly. If he has the password that he entered while locking, all he has to do is put the mcu in wait state (by configuring boot pins accordingly) and unlock it using Uniflash. If it happened unknowingly, the mcu is not recoverable.

    Regards,
    Gautam