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.
As per this post:
I have the same issue I have a board and have a TMX320LF2407A IC with a JTAG header. I have a XDS510LC
USB JTAG Emulator from spectrum digital. I have downloaded CCS3.3 and I can connect to the controller using JTAG. I can run and stop the processor thus my connection is ok. Since the TMS320LF2407A is not DSP read protected, I am able to save the contents of the TMS320LF2407A with the following steps.
File/Data/Save../Coff(*.out)
“Storing Memory into File”
“Address: 0x0000”
“Length: 0x8000”
“Page: Program”
“DATA”
“ I/O”
1-Before saving, a small window titled "Storing Memory Into File" appears, as in the photo above, and there are three options for saving in this window, "Program-Data-I/O"
Which of these should I choose when saving? "Program" or "Data" or "I/O"
2- I have one working and one broken PCB's with this DSP on them. When I save the "Program" and "Data" in the DSP of the defective PCB separately and save the intact DSP in the same way, I saw that the "Data" codes of the non-working card were deleted, the "Program" codes are exactly the same when I compare them to the intact card. that is, only the "Data" part of the faulty card has been deleted.
3- How can I upload the "Program-Data-I/O" files in (Coff.out) format that I got from the TMS320LF2407A, which works without any problems, separately from the "On-Chip Flash Programmer" window?
For example, how can I load (program) only the "Data" file.
4- When flashing another Data file from the TMS320LF2407A (On-chip Flash programming) window to the old DSP, in the clear step, gives the error message; "Error: Read status value 0x0001 from symbol PRG_status
Flash algorithm failed during clear operation". How can I resolve this situation?
Yunus,
It is very likely your application only uses the on-chip flash for storing the application, which is mapped in the program space. Therefore, you only need to save and restore the Program space (from 0x0000 to 0x7FFF). Do not worry about “saving” and “restoring” the Data or I/O space. It is likely nothing exists there that can be saved and restored.
Which of these should I choose when saving? "Program" or "Data" or "I/O"
Program.
Hareesh
First of all, thank you very much for your reply, there is data in the "Data" section. I saved this section and the data is visible in the hex editor. When I read the DSP of a circuit that works without problems and the DSP of another circuit that does not work, only the "DATA" part of the broken circuit seems to be deleted and there is no damage in the "Programs" sections.
Please take a look at the memory map of the device below:
Flash, which is non-volatile, is only mapped in the Program space. It contains the firmware, which is what people typically try to copy from one device and program it on another. The concept of "programming" only applies to flash.
All memory in the Data space is volatile. These memories are used by the firmware to store variables, tables and intermediate results. You can "save" contents in the data space, but it is meaningless to "program" them. RAM in the data space is written to by your firmware. It is not "programmed" by you.
If this is still not clear, we need to get on a call. It would help if you can send the schematics to me privately so that I can check if there is any non-volatile memory in the data space.
Thank you very much for this clear and explanatory answer, after seeing the memory map, everything is understood. This means that the data in the Data section that I have downloaded will be deleted after the device is de-energized.
There is no memory battery or external flash on the pcb too.
This issue is completely understood. I have ordered new DSPs, I will try them when they arrive and let you know the result.
One more important question: Why doesn't this process take place when I select "Clear, Erase, Program" from the "On-chip Flash Programing" section? I can't perform Erase, Clear, Programming, it keeps giving the same errors:
Error: Read status value 0x0001 from symbol PRG_status
Flash algorithm failed during clear operation
Error: Read status value 0x0002 from symbol PRG_status
Flash algorithm failed during erase operation
Error: Read status value 0x0001 from symbol PRG_status
Flash algorithm failed during clear operation
This means that the data in the Data section that I have downloaded will be deleted after the device is de-energized.
Correct. It is meaningless to save the contents of memory in data-space in order to "restore" it later. The only permanent content in the device is the firmware in flash (which is in Program space).
There is no memory battery or external flash on the pcb too.
OK, this confirms my understanding.
I can't perform Erase, Clear, Programming,
Make sure the file you are trying to reprogram has been downloaded from Flash. You are not trying this operation with data saved from RAM. Also make sure VCCP pin is connected to 5v.
Dear Hareesh
Thank you very much for your valuable information. As you said, VPP was giving that error because it was not 5 volts, now I have VPP 5 volts, it erased the DSP, but it gives this error during the Flash programing phase "Conversion aborted: This file is not linked"