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.

CODECOMPOSER: How to run code with code sections in flash and ram CCS v3.3 TMS320F28335

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: TMS320F28335

I am trying to run a project where I have a code section in internal FLASH and another code section in external RAM Zone6. I am using Code Composer Studio v3.3 and DSP/BIOS and the processor is the TMS320F28335.

I have congifured RAM Zone6 memory to have a range for code and have made a section which I have specified in the cmd-file to be located there.

I can see from the generated map-file that it places code in the Flash and in the external RAM Zone 6.

How do I get the RAM code loaded into external RAM before I start the debugging? Does it try to do it after the flashing? Or do I flash first and load the other code into flash afterwars? Do I have to make commands in the gel-file to load the RAM code section and how?

Later I will generate two hex-files, one for Flash and one for RAM. The Flash code will have code for reading the RAM hex-file into external RAM. The reason why I do this is because I am running out of FLASH memory space.

  • As long as you set up the XINTF timing beforehand, you should be able to load the external RAM directly from CCS.  Once that is configured the device should be read/write to the memory as if it were internal to the device.  I think there may be a script if you have the 28335.ccxml defined as the target, under the Tools section in CCS.

    If you are trying to do separate flash and RAM loads, that should work as well, so long as the XINTF is setup to interface with the external RAM correctly.

    Later on, when you are preparing the final application you can use load/run option in the .cmd file to tell the linker that you will load the code to flash, but it will run from the external RAM.  the only thing you will need to do in that case is perform a memory copy from flash to RAM before calling into those functions.

    Best,

    Matthew