Part Number: TMS320F2800132
Other Parts Discussed in Thread: C2000WARE
Tool/software:
I am getting the following error:
Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
Upon further investigation it appears it is related to the .const section string data:
(from the .map file)
.const 0 00088000 000007ac
00088000 00000457 <whole-program> (.const:.string)
00088457 00000001 --HOLE-- [fill = 0]
00088458 0000009c driverlib.lib : flash.obj (.const:.string)
000884f4 0000009b : epwm.obj (.const:.string)
0008858f 00000001 --HOLE-- [fill = 0]
00088590 0000009b : gpio.obj (.const:.string)
0008862b 00000001 --HOLE-- [fill = 0]
0008862c 0000009b : sysctl.obj (.const:.string)
000886c7 00000001 --HOLE-- [fill = 0]
000886c8 00000098 : sci.obj (.const:.string)
00088760 0000004c : adc.obj (.const:.string)
However, when I change the xxx_flash_lnk.cmd file to place this section after the .text section (within 32K), the problem disappears.
In other words, the part is behaving as if it only has 32K of flash rather than the 64K it actually does.
How do I access the other 32K and why can't the loader write to the upper 64K as instructed by the linker output?
Thank you,
-Sergio

