I am trying to move application in flash to accommodate a custom boot loader. f28377S
When I include the F2837xS_codeStartbranch.asm in my project and link I get a program will not fit in memory error. I copied this file directly from the
control suite directory for device support F2837xS_common\source
"../TMS320F28377S.cmd", line 139: error #10099-D: program will not fit into available memory. placement with alignment/blocking fails for section "codestart" size 0x2 page 0. Available memory ranges:
I am using a command file that has the following in memory definition
/* Flash boot address */
BEGIN : origin = 0x080000, length = 0x000002
......
RESET : origin = 0x3FFFC0, length = 0x000002
In the SECTIONS definition section there is an entry for
codestart : > BEGIN PAGE = 0
My understanding is that on reset the app jumps to RESET address and then it does a branch to codestart.
The application links and load correctly when I exclude the code start assembly file.
In the map file it looks like it is trying to define another codestart section and has placed it at 00000
Here are the lines from map file.
output attributes/
section page origin length input sections
-------- ---- ---------- ---------- ----------------
codestart
* 0 00000000 00000002 FAILED TO ALLOCATE
.ti_catalog_c2800_initF2837x_begin
* 0 00080000 00000002
00080000 00000002 Boot.a28FP : Boot_asm.o28FP (.ti_catalog_c2800_initF2837x_begin)
.text:ti_catalog_c2800_initF2837x_flashfuncs
* 0 00080002 00000027 RUN ADDR = 0000b000
00080002 00000027 Boot.a28FP : Boot.o28FP (.text:ti_catalog_c2800_initF2837x_flashfuncs:_ti_catalog_c2800_initF2837x_Boot_initFlash)
Thanks
Maury