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.

How write cmd to debug project in ram but using data which were loaded in flash already



Hello!

My microcontroller is TMS320F2808

1Because my project is too large to load all into ram,so I place a data block into flash  first. My data array is defined like that:

 

#pragma DATA_SECTION(Name,"myconstants");

const unsigned int Name[] = {...,....,...};

2., In f2808_nonBIOS_flash.cmd,add:

MEMORY

{

PAGE 0:

FLASH_CD    : origin = 0x3E8000, length = 0x008000

}

 

SECTIONS

{

myconstants   : > FLASH_CD   PAGE = 0

}

3.Rebuil and program the flash,The data block now located at 0x3E8000

4.When I need debug the project in ram and replace f2808_nonBIOS_flash.cmd with 2808_RAM_lnk.cmd,How re_write the 2808_RAM_lnk.cmd to use the data block of myconstants which were loaded in flash already?

Best regards,

xufeihx