New problem:
We are building our product on the F28335 with DSP/BIOS 5.41. For speed we are copying the .switch section from Flash to RAM. The problem we are seeing is that we are generating bad loadstart, runstart, and loadsize labels for the memcpy() operation in main().
In our *.cmd file I have included the following:
.switch: LOAD = FLASH, PAGE = 0
RUN = L47SARAM, PAGE = 0
LOAD_START(_switch_loadstart),
LOAD_SIZE(_switch_loadsize),
RUN_START(_switch_runstart)
In the DSP/BIOS configuration, under the Compiler Sections tab, I have set the .switch to be in RAM; under the Load Address tab I have set it to be in FLASH.
In main() I copy it to RAM using the generated labels. The problem is that _switch_loadstart and _switch_runstart both equal 0x8000 (start of RAM) and _switch_loadsize is set to zero.
The *.map file is generating a RUN address as seen here:
.switch 0 003154e8 0000029c RUN ADDR = 000085c0
I have tried to follow SPRA958k in generating labels to effect the copy. Any ideas?
Thanks,
Mark