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.

TMS320F240 Flash download

Dear All,

I have big problem. It is about 15 years ago I design and built motor controller with TMS320F240. The circuit is worked untill yesterday  (went wrong). I found  the problem on it, one of port of DSP is damaged. I need to change it but my project file is lost 5-6 years ago. (The hard drive in my laptop is went wrong).
Is there any way to download the Flash program from the old DSP, and upload it on to the new DSP. (I have XDS510  JTAG emulator )

I did not use the lock bits on it, DSP is open.

Regards

Zsolt

  • Zsolt,
    F240 does not have the code-security-module, so you should be able to access the flash without any problem. Now, you mention that "one of port of DSP is damaged". I hope the JTAG port of the DSP is functional and that you are able to connect/communicate to the DSP via Code-Composer. If you are able to do this, then you could use the File-->Data-->Save option and save the image of flash memory as a xxxx.out (COFF) file. You can then use this image with a tool like SDFlash or Prg2xx.exe to program a new device.
  • Hareesh,


    Thanks for your quick response, and your technical help. ( After my mail I found this menu "File-->Data-->Save" in the CCS). The JTAG port is working perfectly!  I saved the program memory on to the xxxx.dat (not coff), and after that I desoldered the wrong DSP. I soldered the new DSP on to circuit, and tried to load the xxx.dat  on to the flash (File-->Data-->Load), but it is not work. Why does not work  in CCS? 
    Could I  write it with SDFlash or Prg2xx.exe  only ?

    Zsolt,

  • Zsolt,
    On the F240 devices connected to CCS3.x, you cannot simply "load" code onto flash memory. Flash memory is different from RAM in this aspect. A specific sequence (of CLEAR/ERASE/PROGRAM) must be done to "program" the flash. The procedure you have outlined will work for RAM, not for Flash. So, yes, you indeed have to use SDFlash or Prg2xx. Or you could try 3rd party tools such as www.elprotronic.com/products . www.codeskin.com might have some solutions as well.

    As a sidenote, if you are using CCS5.x or 6.x with 28xx devices, you could indeed "load" code to flash. However, the C/E/P operation happens in the background and CCS is merely hiding all the complexity from the user. Unfortunately, F240 is not supported by CCS versions higher than 3.x.