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.

Code Composer does not recognize config.bld file.

Other Parts Discussed in Thread: TMS320DM6437

I'm new to Code Composer and TI processors. I'm trying to generate code for a TMS320DM6437 processor, which will be embedded on a board that we have built.

I'm using Code Composer version 4.0.1.01001 on a computer running 64-bit Windows 7. I have created a new CCS project in which I selected "generic C64x+ device", little endian, code gen tool version 6.1.9, rts64plus.lib. I enabled RTSC support because I will need DSP/BIOS services. I selected RTSC target: ti.targets.C64P and RTSC platform: ti.platform.generic. I selected the "hello world" example. I ended up with two projects in CCS, one for my C code and one RTSC configuration project.

When I build I get errors telling me deviceName, catalogName and clockRate are undefined. I think I need to specify these is a config.bld file. I have created such a file under the RTSC configuration project (because config.bld was not automatically created by the CCS project wizard). Evidently this file is not seen when I build because I still get the same build errors. How do I get the CCS build tools to see/recognize config.bld?

I would expect a config.bld to be automatically created by the wizard, or a means should be provided to easily create one. The CCS help talks about using the RTSC tools from the command line but says very little about using them from within Code Composer. I can't get Code Composer to see my config.bld file.

Somewhere in the help it said I should use a platform that is more specific than ti.platforms.generic because such a platform would define the deviceName, catalogName and clockRate, etc for me, but I can't find a platform package for the TMS320DM6437 processor. If there is a platform package for the TMS320DM6437 processor please let me know and I will us it.

Your help will be appreciated,

Tim

  • Tim,

    Do you not see ti.platforms.evmDM6437 in your list of platforms? I don't currently have CCS 4.0.1 installed to check this, but I do see it in my CCS 4.1.3. If you do not see this platform, could you try updating your version of CCS using the Update Manager (Help->Software updates->Find and Install)?

    If you still have problems I would suggest posting to the BIOS forum so the experts there can help you out: http://e2e.ti.com/support/embedded/f/355.aspx

     

     

  • Thanks for your response.

    I checked and I do have ti.platforms.evmDM6437 in my list, so I'm now using this platform and my project now compiles without errors.

    I thought ti.platforms.evmDM6437 is for a evaluation board. Is this true? Is this the platform I should specify? Remember, I'm writing code for a board that we designed that uses the TMS320DM6347 processor, its not an evaluation board.

    Anyway, I specified RTSC target: ti.targets.C64P and RTSC platform: ti.platform.evmDM6437 in my RTSC configuration. I also created a target configuration in which I specified Spectrum Digital XDS510USB Emulator (which I am using) and TMS320DM6437 for device. I tried to run the simple hello world program in the Code Composer debugger and I get this error as the debugger is starting:

    C64XP_0: File Loader: Data verification failed at address 0x80012EF0 Please verify target memory and memory map.
    Error found during data verification. Ensure the linker command file matches the memory map.

    I don't know if there is a problem in my code (it's just the simple hello world example) or a problem elsewhere. Any ideas?

    Regarding my question on how to create and use a config.bld file, I can post it on another forum. What would be the best forum: Embedded forum? RTSC forum? DSP/BIOS forum?

    Thanks,

    Tim

     

  • Tim,

    Tim Murtaugh said:

    I thought ti.platforms.evmDM6437 is for a evaluation board. Is this true? Is this the platform I should specify? Remember, I'm writing code for a board that we designed that uses the TMS320DM6347 processor, its not an evaluation board.

    Yes, that is for the DM6437 EVM. Although the device initialization is identical (which saves a lot of work when compared to the 'generic' platform), the memory map may differ.

    Tim Murtaugh said:

    I tried to run the simple hello world program in the Code Composer debugger and I get this error as the debugger is starting:

    C64XP_0: File Loader: Data verification failed at address 0x80012EF0 Please verify target memory and memory map.
    Error found during data verification. Ensure the linker command file matches the memory map.

    That's probably occurring due to the differences in memory map between the EVM and your custom board. The message says it loaded code at address 0x80012EF0 (external DDR2 memory space) but the verification failed. This indicates a few scenarios:

    - the memory is inexisting, smaller than the program you are trying to load or it has a hole at this address. This can be fixed by changing the memory configurations of the platform - the links below contain some information about it, but you will get better help from the BIOS forum.

    http://rtsc.eclipse.org/docs-tip/Using_Targets_and_Platforms

    http://rtsc.eclipse.org/docs-tip/Demo_of_the_RTSC_Platform_Wizard_in_CCSv4

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/49718/176336.aspx#176336

    - the EMIF is not properly configured, meaning the DDR timings are off. You can check this issue by opening a memory view and pointing to this address. If you are not able to modify it or the values change randomly, you got an issue there. This is configured by the GEL script defined in your target configuration file (.ccxml) and executed at the time the target is connected.

    Tim Murtaugh said:

    Regarding my question on how to create and use a config.bld file, I can post it on another forum. What would be the best forum: Embedded forum? RTSC forum? DSP/BIOS forum?

    I would post it in the DSP/BIOS forum.

    Hope this helps,

    Rafael

  • Rafael,

    Thanks for your help. I was able to create a custom RTSC platform for my custom board by using the demo that you included:

    http://rtsc.eclipse.org/docs-tip/Demo_of_the_RTSC_Platform_Wizard_in_CCSv4

    Now I have to modify my custom platform configuration. I am using this demo:

    http://rtsc.eclipse.org/docs-tip/Demo_of_Custominzing_Memory_Sections

    However, even though I have CCS version 4, the demo does not match my copy of CCS. In particular, the demo tells me to select Tools -> RTSC Tools -> Platform -> Edit/View. I do not have RTSC Tools on my Tools menu, and I can't find RTSC Tools on any menu. How do I run RTSC Tools?

    I have CCS Version: 4.0.1.01001.

    Thanks,

    Tim

  • Tim,

    This version of CCS is somewhat old, and the RTSC item to the Tools menu was added at a later version.

    Traditionally the RTSC platforms were created by going to menu File --> New --> Other --> RTSC Wizards. I see in my copy of CCS there are two items under this: Edit/View and Create RTSC platform, but I am not sure if the Edit/View option existed in your version of the tool.

    Therefore in this case I think you would need to manually edit the platform file - some details about the memory configuration are shown in the section Use the Generic Platform of the reference below:

    http://rtsc.eclipse.org/docs-tip/Using_Targets_and_Platforms

    Another approach is to install a more up-to-date copy of CCSv4. In your case I would strongly recommend installing one from scratch in a separate directory, so you can do the migration without the risk of losing anything.

    Hope this helps,

    Rafael

  • Rafael,

    I just upgraded to CCS Version 4.2.0.10017 and I still don't see RTSC Tools  on my Tools menu (or any other menu). Do I need to install something else in order to make these tools available on the Tools menu?

    I do see File -> New -> Other -> RTSC Wizards, under this I see RTSC Platform Wizard, but I don't see Edit/View.

    Thanks,.

    Tim

    PS I don't see XDAIS Tools or Codec Engine Tools on the Tools menu either.

  • Tim,

    That's very strange; CCS4.2 installs XDC Tools 3.20.x.x and they have the RTSC menu (check the post below).

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/65844/237986.aspx#237986

    Can you check if CCS is using the correct XDC tools? Go to menu Help --> Software Updates --> Manage Configuration

    When you opened your new CCS did you use the previous workspace or created a new one? If you are using the previous one, reset the perspective by going to menu Window --> Reset Perspective. See if the menu items reappear. If not, clean the workspace by following items 2 and 3 of the page below:

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCS#General_IDE

    If none of this works, try to open a new workspace and check the menus. This way CCS will start fresh.

    I really don't know what may be happening. Maybe the XDC tools did not install properly in your system, but try these options first.

    Regards,

    Rafael

  • Hi Rafael,

    I checked Help --> Software Updates --> Manage Configuration. It shows both RTSC/XDCtools 3.15.2.62 (which appears to be enabled) and RTSC/XDCtools 3.20.0.41 (which appears to be disabled because it is marked with a red X). Several other components are disabled as well. I cannot find a way to enable these.

    I'm using the same workspace, however when I did the upgrade to CCS 4.2, it offered to upgrade my workspace and I answered yes.

    Anyway, I tried Window --> Reset Perspective, and I tried Steps 2 and 3 in the troubleshooting link you provided above.

    Finally, I tried opening a new workspace.

    None of the above worked. The missing menu items did not reappear.

    I should say that I upgraded from CCS 4.0 to 4.2 by going to Help --> Software Updates --> Find and Install and letting it search for and install all updates.

    Maybe I should do a complete, fresh install of CCS 4.2? But the CD I have is for CCS 4.0. Do you know if I can download a complete CCS 4.2 installable image?

    Thanks for your help,
    Tim

  • Rafael,

    I downloaded CCS 4.2 from the TI wiki:

    http://processors.wiki.ti.com/index.php/Download_CCS

    I uninstalled CCS 4.0 and installed CCS 4.2. This time the installation worked because now I can see RTSC Tools and XDAIS Tools on the Tools menu.

    Thanks for your help.

    Tim

     

  • Tim,

    Thank you for reporting the solution.

    I am glad that your setup is working now; I just noticed that previously you did an update to your existing 4.0 instead of installing a fresh copy of CCS - in this case all the component updates (CGT, XDC, BIOS, etc.) are independent and required to be manually updated as well, which explains why you were still seeing XDC release 3.15.xx.xx tools.

    In the future you can check the XDC updates at:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/index.html

    Best regards,

    Rafael