I accidently flashed a program that incorectly sets the wrong divider for the PLL and now can't erase flash again with CCS 5.2 & JTAG.
Is there some way to unlock & erase flash?
Thanks.
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.
I accidently flashed a program that incorectly sets the wrong divider for the PLL and now can't erase flash again with CCS 5.2 & JTAG.
Is there some way to unlock & erase flash?
Thanks.
What error do you get from CCS when you try to erase flash/reprogram the device? A screen capture would help understand how/when the error occurs.
If the device has somehow become locked, you could try connecting to the device using CCS (without programming flash), and opening a memory window in CCS to the CSM password locations. This will force CCS to read the passwords and if the password locations are erased (all 0xFFFF's) then this will unlock the CSM. Please see this wiki page for more information:
http://processors.wiki.ti.com/index.php/Code_Security_Module_FAQ_for_C2000
Here is a link to a related thread that might also help.
If the device is permanently locked though, unfortunately, there may not be much you can do other than replacing the device on your board.
I don't think the Flash is locked but the PLL is incorrectly programmed so the processor may be in a weird state but I though JTAG would be able to reset and reprogram the PLL with the correct value.
Anyway, here's the error log:
C28xx: Flash Programmer: Warning: The configured device (TMS320F2808), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
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 0x3f5423 on Page 0 of Length 0xca: (Error -1041 @ 0xFFFFFF4A) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.471.0)
C28xx: GEL: File: C:\PS2\FreeRTOS\Debug\Console2808.out: Load failed.
C28xx: Error: (Error -1041 @ 0xFFFFFF4A) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 5.0.471.0)
C28xx: Trouble Halting Target CPU: (Error -182 @ 0x0) The controller has detected a cable break that is near-to itself. The user must connect the cable/pod to the controller. (Emulation package 5.0.471.0)
Have you tried manually launching the target configuration and performing the steps to "Connect to target" and erase the flash manually after that? The method to launch a target configuration manually is shown in the videos here: http://processors.wiki.ti.com/index.php/Quick_Tips#Target_Setup
After you have connected to target, you can open the On-chip Flash from the Tools menu and to erase flash from there.
You may also want to try some of the other stand-alone Flash programming tools such as SDFlash to see if they behave in a similar manner. If the issue is still unresolved after trying these methods, you may want to post the question to the C2000 device forum to see if the experts there have additional suggestions, but I'm afraid it may come down to having to replace the chip.