Hello,
I m using a TMS320F28035 on Code Composer Version: 4.2.2 using aTexas Instruments XDS100v2 USB Emulator_0/C28xx
One target board has device locked problem and the debugger reports:
---------------------------------------------------------------
C28xx: GEL Output: Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output: Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelledC28xx: Flash Programmer: Error erasing Flash memory.C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.C28xx: Trouble Writing Memory Block at 0x3e8be2 on Page 0 of Length 0x5a Cannot write to targetC28xx: Depletion Recovery started.C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation cancelled.C28xx: Depletion Recovery started.C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation cancelled.
comparing not working board with a working board I can see that after a cpu reset by a step debugging when the code jumps from 0x3ff4fb to 0x3d7c80(Calibration Data) on working board there is a code but on not working board all code is at value 0x0000.
What has happened?
how can reset the device to default configuration?
Regards
Sandro
looking TMS320x2803x Piccolo Boot ROM SPRUGO0A.pdf datasheet
2.10 Device_CalThe Device_cal() routine is programmed into TI reserved memory by the factory. The boot ROMautomatically calls the Device_cal() routine to calibrate the internal oscillators and ADC with devicespecific calibration data. During normal operation, this process occurs automatically and no action isrequired by the user.
Can I program this memory area again?
Sandro,
Based on the CCS4v error messages, it looks like the device is locked. When the device is locked, the CPU reads of secure memory will read back as 0x0000's. On F2803x,
TI OTP is also a secure memory. That is reason why you read 0x0000's when you read device cal which is actually stored in TI OTP. If the device is not in depletion and if you know
the flash password, you should be able to unlock the device and proceed with flash programming.
Regards,
Manoj
---------------------------------------------------------------------------------------------------
If a post answers your question, please mark it with the "verify answer" button.
Other useful links:
C2000 Getting Started C2000 Flash Common Issues/FAQs Emulation FAQ
Tanks Manoj for your replay,
when I load program to target the debugger log is:
-------------------------------------------------------------------------------------------------------------------------------
C28xx: GEL Output: Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output: Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelledC28xx: Flash Programmer: Error erasing Flash memory.C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.C28xx: Trouble Writing Memory Block at 0x3e9b44 on Page 0 of Length 0x1c1 Cannot write to target
and a box Displays "Error Lauching Debug Session"and I forced to continue lauching
I forced to continue lauching and I tried by Tools->On-Chip Flash to execute the commands:
-Erase Flash-Program Password-Unlock-Depletion Recovery
with no results, the debugger log is:
C28xx: Erasing Flash memory...C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelledC28xx: Starting device unlocking...C28xx: Flash Programmer: Error unlocking flash memory. Device is still lockedC28xx: Starting program password operation...C28xx: Flash Programmer: Error programming password. Device is locked or not connected. Operation cancelled.C28xx: Depletion Recovery started.C28xx: Flash Programmer: Error when performing depletion recovery. Device is locked or not connected. Operation cancelled.-------------------------------------------------------------------------------------------------------------------------------
How can I do to erase the Flash or unlock the device?
Based on your message, it looks like you don't know the flash password. You can't perform any operation on secure memory (No writes, no reads) when the device is locked. So , unless you unlock the device you won't be able to perform depletion recovery (or) flash erase / programming. It is unfortunate but you might have to replace the part to proceed further.
Thanks Manoj,