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.

EVMC6747_DSP_GEL.C Question

Hi,

I am using the C674 starter kit with CCSv3.3, bios 5.33.05, PSP 1.30.01.  My board will be in soon and I want to switch from using the CCS to load the application to boot from flash.  To do this I have to use EVMC6747_DSP_GEL.C and invoke TargetConnect() from main() instead of EVMC6747_DSP.GEL that load from CCS v3.3.  I followed the instruction "Removing initializations from the GEL file" from http://processors.wiki.ti.com/index.php/Flashing_the_C6747.  I re-opened CCS and reloaded my application.  However, I got the "Error: File Loader" with "Data verfication failed at address 0xC0076400..." where the loader attempted "hwi_vec: 0 of 512 at 0xc0076400".  I include the screen dump.  Please let me know what I am missing.

Thanks,

Dennis

  • Hi Dennis,

    To use CCS, you can remove almost all initializations from the GEL, just keep the ones that set the memory map so Code composer can load the program:

    Setup_Memory_Map();

    You can comment the other functions.

  • Hi Mariana,

    I commencted all functions in TargetConnect() from the GEL file as stated in previous mentioned TI link.  The StartUp() from the GEL file still call Setup_Memory_Map().  How do I make sure that StartUp() called by the BIOS?

    Thanks,

    Dennis

  • The StartUp function only needs to be called so CCS can read the DSP memory, so you do not need to put it in your C code.

    The StartUp function will be called if you open CCS with a configuration that has a GEL file attached, it is automatic.

    Here is a quote from the CCS help:

    "GEL functions allow you to configure the development environment according to your needs. You may want to set up your environment each time you start Code Composer Studio. Instead of loading your GEL file using File®Load Gel each time and then executing the GEL function, you can pass a GEL file name to Code Composer Studio on startup. This informs Code Composer Studio to scan and load the specified GEL file. It may not be enough to just load the GEL file; you may also want to execute the function as well. You can do this by naming one of your GEL functions in the specified file StartUp(). When a GEL file is loaded into Code Composer Studio, it searches for a function defined as StartUp(). If it finds this function in the file, it automatically executes it."