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.

6713 ccs emulator load program VS. FLASH boot



I'm with ccs2.2 JTAG emulator and 6713. Loading program by the emulator always cause wrong results, but burning the same program to FLAH ROM and booting from the FLASH can get the right results.

I'm wondering why the same program behave totally different ? What is the difference between the two way of running a program? What dose an emulator do when loading program? What address dose it load the program into the DSP RAM? How dose the gel script config the dsp and its memory? 

  • CCS loads the program to whatever address you specified in the linker command file.  Once it has loaded the entire program it sets PC to the entry point, c_int00.

    You might want to have a look at this wiki page which is related to debugging these sorts of issues:

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

    The gel file frequently is used for setting up the PLLs and SDRAM.  In the case where you are booting the 6713 from NOR flash the first 1KB of NOR flash gets copied to address 0 and then executed.  Normally this would contain a bootloader which sets up the PLLs and SDRAM and then copies the program from flash into RAM.

    I believe the difference between your two scenarios is a mismatch between the gel file and the bootloader that resides in that first 1KB that gets copied to address 0.  In particular, you need to update your gel file to do PLL configuration and SDRAM configuration the same way as your bootloader.