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.

CCS/TMS320F240: Unable to download file to TMS320F240 DSP

Part Number: TMS320F240

Tool/software: Code Composer Studio

Hi,

I am using XDS510-USB JTAG EMULATOR with Code Composer Studio version 3.3 to download a file into TMS320F240 DSP (Flash load). I am unable to download file into the IC Chips.

Firstly, am I looking at the correct video reference? I'm selecting F240 XDS510 Emulator C24xx instead showing in the video selecting C54x.

https://youtu.be/dbMOac9Uzaw

If yes, i am struck at the code file. (Refer to attachment for the code file details) Where can i get this code file? Can I copy the code file from the video? If yes, i am unable to run the assembly language.

Inside my CCSv3.3 folder, can’t found any subfolder of dspcl.exe at \C2400\cgtools\bin.

Please help?

Thank You.

Patrick

CCS Error Message.docx

  • I am not clear what you are attempting to do. Do you already have a .out file that you are trying to program into F240’s flash? Or are you trying to create a new .out file? It appears to be the latter, but wanted to confirm. Please be aware that F240 device was moved to “End of Life (EOL)” status a few years back. This chip is not manufactured anymore. The entire toolchain for this device is now obsolete and virtually no support is available from TI. If this is a new project, I strongly urge you to move to the next generation of C2000 devices.

    Looking at the error message, it appears you are missing the linker.

  • Hi Hareesh,

    To explain further, we still have some new TMS320F240 DSP in stock. At the time being, we cannot replace with a new part number IC chip due to circuit board design.The *.out file is from a good IC Chip and we want to flash load the file into the new chip. Now we are unable to flash load using XDS510-USB JTAG EMULATOR as recommended by Spectrum Digital for this IC Chip. (TMS320F240 DSP). 

    Kindly help to advise how the process to flash load a file into TMS320F240 DSP chip.

    Your assistance is greatly appreciated.

    Thank you so much.

  • If all that you want to do is to save the flash image from an existing device and program it on another , you don’t need to assemble or link anything. I am confused as to why you are showing that assembly code. What does it do? What is it that you are trying to assemble/link when all you need to do is to program a new device with an existing flash image? All that you need to do is to read the flash array, save it as a .out file and use the flash-plugin (or some other method) to program the other device.

    Attached doc shows you how to save the flash contents. It was written for another part from the same family, but the concept is the same.

    6648.Saving Flash.pdf

  • Hi Hareesh,

    Good Day to you.

    I had followed the steps as per your advice but encounter "Data Verification Error"

    Please see attachment for details.

    Looking forward to your reply.

    Thank you.

    Best Regards,

    PatrickSave and load the flash contents of TMS320F240 device using CCS3.pdf

  • The on-chip flash is mapped between 0x0000 to 0x3FFF. These are the addresses you need to save. Once saved into a file, you need to program that file into the flash of the new device. You cannot simply "load". You need to program using a flash programmer like Prg2xx.

     

    SPRS042E.pdf

  • Hi Hareesh,

    Can help to advise more details "You need to program using a flash programmer like Prg2xx." 

    I am unable to figure out how to flash into the chip.

    As for your attachment, it's a data sheet of F240 DSP and did not mention anything on the flash loading.

    Hope you can assist to provide me a simplified procedure as I am new in this programming stuffs.

    Appreciated for your kind assistance.

    Thank you so much.

    Patrick.

  • Have you saved the flash image from an already programmed device as a .out file? I had sent a PDF file that clearly showed the steps involved. I attached the datasheet because the address reference in your previous post was incorrect. You need save addresses 0x0000 to 0x3FFF in the program space. 

    Once you have the COFF file, you need to download Prg2xx from http://emulators.spectrumdigital.com/utilities/sdflash/legacy/ and install it. The attached doc gives some info on Prg2xx. For further support on prg2xx, you need to contact Spectrum Digital. 

    This post may be able to give you some pointers: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/106074 . As explained in the first post, our ability to support F240 is very limited.

    README.PDFReadme1.pdf

  • Hi Hareesh,

    As per Spectrum Digital recommendation for flash loading TMS320F240 chips is to use emulator XDS510USB.

    However, now your advice is that we need to use Prg2xx but Prg2xx require us to use XDS510PP emulator.

    Can you confirm only with emulator XDS510FF then we can flash load F240 chip?

    Please see attachment.

    Thank you.

    Patrick.Using flash programmer.docx

  • As per Spectrum Digital recommendation for flash loading TMS320F240 chips is to use emulator XDS510USB.

    Could you please provide some reference for where you got the above information? 

    Can you confirm only with emulator XDS510FF then we can flash load F240 chip?

    Sorry, I don’t understand what you are asking here. The emulator is only the H/W that helps establish a connection between the PC and the F240. You need a S/W like Prg2xx or SDFlash to complete the programming. Please go thru http://emulators.spectrumdigital.com/utilities/sdflash/sdflash_faq.html . For questions concerning emulators or SDFlash, you need to contact Spectrum.

  • Hi Hareesh,

    Using Emulator XDS510USB to flash load TMS320F240 was confirmed by Spectrum Digital before we purchase the emulator.

    "Can you confirm only with emulator XDS510FF then we can flash load F240 chip?" 

    Sorry typo error, it should be ""Can you confirm only with emulator XDS510PP then we can flash load F240 chip?" 

    Please help to advice?

    Thank you.

    Patrick

  • While I am sure about the ability of XDS510PP+ to program the F240, I am not sure about the ability of XDS510USB. You say “Using Emulator XDS510USB to flash load TMS320F240 was confirmed by Spectrum Digital before we purchase the emulator.” Could you check with them if Prg2xx works with XDS510USB? If not, can you program F240 with XDS510USB+SDFlash?