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.

GEL Issues

I am having trouble getting my application for the C6748 running without a GEL file.
The first step I did was convert the GEL file to C code.
I tested this in my modified "test_led_dip" project by putting a call to OnTargetConnect() in main() and removing "C6748.gel" from my target configuration. I am able to step through the code and everything works.
Then when I try this in my real application I get the following error in the console:

C674X_0: File Loader: Data verification failed at address 0xC0180400 Please verify target memory and memory map.

Error found during data verification.

Ensure the linker command file matches the memory map.

Any suggestions on why I am getting this error? Note, that in my modified "test_led_dip" project, I get no errors.

Thanks

  • Hello,

    the C6748.gel file has routines that initialize external memory (DDR). Looks like you are trying to load your program into external memory. If you are not using the GEL file anymore, you will need to find some other way to initialize DDR before you can load your program to it.

    Thanks

    ki

  • My goal is to have my application run in the debugger equally well as when the application is flashed into "SPI Flash".

    Given that the GEL file only applies while debugging, when booting out of flash one must perform the same steps that the GEL file would have performed. I found two methods for dealing with the lack of a GEL file when booting out of SPI flash:

    1. The first idea is: Select the proper configuration options in AisGen to correspond to what the GEL file does.  The problem with this method is that I did not find it too easy to compare settings in AisGen to the functionality of the GEL file.  

    2. The other method is: convert the GEL file to C code and call it at startup of the application.  I believe that, with this method, I need not care about the settings in AisGen. Is this Correct?  Under this method, while debugging with "Target->Debug Active Project", do I run into the problem you mentioned?   

    What do you suggest?

    Thanks

  • It does seem that I am trying to use external memory (DDR).  My .tcf file defines the memory range "DDR" and puts all sections in it, so I would need to setujp AIsGen to set up DDR.  I have tried to customized AisGen settings myself which has confusing disparencies from the GEL code, especially for PLL setup.

    Do anyone have a sample AisGen configuration file which will do what the c6748.gel file would do, which includes initializing the DDR, PSC, etc.?