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: Unable to download file to TMS320F240 DSP



Tool/software: Code Composer Studio

Dear Sir/Mdm,

I am using XDS510-USB JTAG EMULATOR with Code Composer Studio version 3.3 to download a file into TMS320F240 DSP. However, I can establish com using the emulator with the IC Chips but the problem is I am unable to download file into the IC Chips. Please see attached for my error. Please assist. Appreciated your assistance. Thank you.

XDS510USB Report.docx

  • Hello,

    You are getting what is known as a "data verification error". Basically the program load failed because there is a mismatch between the actual data vs the data that was written to memory. Often, the main issue is that the program loader could not successfully write to the specified memory location.

    There are many potential causes for this issue. Please see the article below for more details. Note that the article was written for a more recent version of CCS. But much of the information in the article is applicable for all CCS versions.

    http://dev.ti.com/tirex/explore/node?node=APy2XbLelxyqBB2Yz0WR.w__FUz-xrs__LATEST

    Thanks

    ki

  • Hi Ki,

    I am still unable to work out the "Data Verification Error".

    I am stuck at the linking stage:

    These directives are often used in what is called the 'linker command file' (*.cmd), which is passed to the linker. Without this file, the linker will not know the target memory configuration and how to properly allocate the sections.

    Do you help to provide a clearer steps on how to create that stage.

    Your assistance is greatly appreciated.

    Thank you so much.

    Regards,

    Patrick

    Email: cherkiang.tang@pptech.com.sg

  • It is important to have the correct linker command file for your target. If you don't have one, you will need to create one. For more details on the linker command file, see:

    https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html

    In CCSv3.3, there are some examples for the F2407 DSK. Each example has a linker command file. I suggest taking a look at those and using it as a baseline that you can modify to match your target memory system.

    Thanks

    ki

  • Hi Ki,

    Where can we get the assembly code for TMS320C2xx?

    Does i need to create a new programming code on my own?

    Please see attachment file for error message observed?

    Thank you.CCS Error Message.docx

  • Hi Ki,

    Where can we get the assembly code for TMS320C2xx?

    Does i need to create a new programming code on my own?

    Please see attachment file for error message observed?

    Thank you.4617.CCS Error Message.docx

  • Tang Patrick said:

    Where can we get the assembly code for TMS320C2xx?

    Does i need to create a new programming code on my own?

    You can ask for more examples in the C2000 forum.

    That error is indicating that you don't have the build tools (compiler) for C24x.

    Inside your CCSv3.3 folder, is there a subfolder .\C2400\cgtools\bin that has dspcl.exe?

  • Hi Ki,

    "That error is indicating that you don't have the build tools (compiler) for C24x". - How to resolve this?

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

    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

    Am i looking at the correct video for reference? 

    Please advise?

    Thank you.

    Patrick

  • Tang Patrick said:

    "That error is indicating that you don't have the build tools (compiler) for C24x". - How to resolve this?

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

    You do not have the correct CCSv3.3 version. You need a special version of CCSv3.3 that supports C24x. This version requires a paid license. If you do not already have a valid license, then you will need to purchase one.

    Tang Patrick said:

    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

    Am i looking at the correct video for reference? 

    That video is for creating an assembly project in CCSv3.3. It runs it on the 54x simulator but the target is not important to learn from the video.

    The key thing for you is getting the correct CCSv3.3 version that supports C24x.

    Thanks

    ki

  • Hi Ki

    I think we are moving to the wrong directions, my main issues is to flash load a *.out file to a TMS320F240 DSP.

    After you have advice the linking command file, i had been moving to C24xx questions.

    My apology, so coming back to TMS320F240 DSP. 

    Do you have any reference video for this linking command issues?

    Or any video reference that can "flash load *.out file to TMS320F240 DSP"?

    Thanks Ki

  • Tang Patrick said:
    I think we are moving to the wrong directions, my main issues is to flash load a *.out file to a TMS320F240 DSP.

    The data verification error is the root cause of this. It is explained in detailed in the link I sent earlier. The root cause can be numerous, as explained in the link. 

    The *.out file you are trying to load, where did you get it and were you (or someone else) able to get it loaded before? Is it supposed to be loaded to 0x0?

     

  • Hello Patrick,

    Are you still experiencing this issue? If so, can you respond to my last question in my last post?

    Ki said:
    The *.out file you are trying to load, where did you get it and were you (or someone else) able to get it loaded before? Is it supposed to be loaded to 0x0?

    Thanks

    ki

  • Hello,
    I haven’t heard back from you, hence this issue is being closed. If you wish to continue the discussion, please post a reply with an update below (or create a new thread).

    Thanks,
    ki

  • Hi Ki,

    Good Day to you.

    I still encounter flash load issues. I had get some advice from C2000 forum but was stuck on "Data Verification Error"

    C2000 forum advice flash load as per attachment.

    As for this *.out file i want to flash load is from a good working IC Chips and I want to flash load to a new empty IC Chips.

    Earlier, you have advice some links for Data Verification Error but I dont have the assembly code... Can help?

    Thank you.

    Flash load Issues.docx

  • Tang Patrick said:
    I still encounter flash load issues.

    So you are trying to load the flash. 

    Old version of CCS does not have flash programming capability built into the program loader. That support was provided by separate flash programming utilities like SDFlash:

    http://emulators.spectrumdigital.com/utilities/sdflash/