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.

How to read the code on flash of TMS320LF2407A by using CCS3.3?

Other Parts Discussed in Thread: TMS320F28335, TMS320LF2407A

I know how to read the code on the flash of TMS320F28335 by using CCS6.1, but the CCS3.3 can not save the memory to file(*.out) like CCS6.1 does. How can i get the code on FLASH of TMS320LF2407A? Thamks!

  • user3798801,

    CCSv3.3 can save memory to a file. I believe it is the File->Data_Save menu option. Make sure you select program space. The flash is only mapped to the program space on C24x devices.

    Regards,
    David
  • Thanks, David! Best Regards!
  • Hello, David. I have save the Coff to a .out file with the start address 0x0 and the length 0xFFFF as you told me, but I encountered a new problem when I load the .out file to the same dsp2407. There is a error "Convertion aborted: This file is not linked". So why? I have succeed to perform the same experiment on dsp28335 using ccs3.3. How can I solve this problem?
  • Wei,

    I reproduced the error. If you use File->Data_Save and save flash data to a .out file, and then use the CCSv3.3 flash programming tool to re-flash the device with that .out file, you get a "This file is not linked" error. CCSv3.3 is old. I vaguely recall some problems with saving a .out and then trying to re-flash it. If it were RAM data, you can do File->Data_Load and it works. But for flash you need to use the flash plugin tool and it appears that tool doesn't like something about the .out format.

    Since you are using C24x device, you cannot use anything later than CCSv3.3, and this problem with CCSv3.3 is not going to be fixed at this point. I'm not sure why you are dumping the flash contents and then attempting to flash a device with it. Normally you would use source code and re-build the .out file. But if (for some reason) this is what you need to do, you can dump the flash contents to a file in .hex format (same as before, but choose .hex instead of .out format). I'd dump just addresses 0x0000 to 0x8000. That is the 32Kw flash on this device. You can then create a CCS project and put this data in the project. I'd make it ASM only project. Then open the .dat file and delete the first line (the first line is unique, and below it you will see line after line of data values from the flash). Then add a .data directive as the first line in the file (make sure the directive does NOT start in column 1). This will put all that flash data into the .data section in the project. This is the only source you need in the project. Create a linker .cmd file for the project and link the .data section to address 0x0000. Now build the project. This will create a .out file for you that you should be able to flash using CCSv3.3.

    Regards,
    David
  • Thanks, David. I want to explain why I dump the flash contents and then attempt to flash a device with it. Because I am studying a experimental inverter setup which was a scientific research project of my university. This inverter setup is using DSP2407, and this scientific research project has completed ten years ago. However, the inverter setup is breakdown now and the worse thing is that the source code can not be found because the past time is too long. Besides, there is not have a experimental brassboard of DSP2407. Therefore, I want to dump the flash contents which can be as the back-up. Then I can erase the flash of DSP2407 and reload my modified code. By this way, maybe I can analyze and found failure causes. Thanks for your help and Looking forward to a further consultation.