Tool/software: TI-RTOS
I use DSP28335 to develop my program based DSP/BIOS, after the program is normally compiled and build the program in CCS3.3, the .out file of my program is 920Kb, I burn .out file into DSP28335,
the program can normally start and run.
In order to shorten running time of the program, I want to load .text and .econst section of program from flash to external RAM in XINTF Zone 6 because On-Chip Memory of DSP28335 is small, So I
do loading work according to some example:
Firstly, before _c_int00, I initialize .text and .econst section refering to DSP28xxx_SectionCopy_nonBIOS.asm,
Secondly, I initialize SARAM in XINTF Zone 6 refering to InitExtMemIf.asm( (David M. Alter)),
Then, I load .text and .econst section of program from flash to SARAM in XINTF Zone 6 in F28335_BIOS_flash.cmd
/*name PAGE 0:
ExtRAM origin:00100000 length:00080000
L67RAM origin:0000e000 length:00002000*/
.text : LOAD = FLASH_ABCDEFGH, PAGE = 0 /* Should be Flash */
RUN = ExtRAM, PAGE = 0 /* Must be CSM secured RAM */
LOAD_START(_text_loadstart),
LOAD_SIZE(_text_loadsize),
RUN_START(_text_runstart)
.econst : LOAD = FLASH_ABCDEFGH, PAGE = 0 /* Should be Flash */
RUN = ExtRAM, PAGE = 0 /* Must be CSM secured RAM */
LOAD_START(_econst_loadstart),
LOAD_SIZE(_econst_loadsize),
RUN_START(_econst_runstart)
After the program is normally compiled and build the program in CCS3.3, I burn .out file into DSP28335, But the program can't start and run.
I change running address of .text section from ExtRAM to L67SARAM section of On-Chip Memory of DSP28335, After the program is normally compiled and build the program in CCS3.3, I burn .out file
into DSP28335, the program can normally start and run.
.text : LOAD = FLASH_ABCDEFGH, PAGE = 0 /* Should be Flash */
RUN = L67SARAM, PAGE = 0 /* Must be CSM secured RAM */
LOAD_START(_text_loadstart),
LOAD_SIZE(_text_loadsize),
RUN_START(_text_runstart)
.econst : LOAD = FLASH_ABCDEFGH, PAGE = 0 /* Should be Flash */
RUN = ExtRAM, PAGE = 0 /* Must be CSM secured RAM */
LOAD_START(_econst_loadstart),
LOAD_SIZE(_econst_loadsize),
RUN_START(_econst_runstart)
How solve the question of loading .text section of program from flash to external RAM。