Converting a project from DSP/BIOS to SYS/BIOS (TMS320C6455)
Converted TCF file to CFG file, created platform. Setup CCSv5, compile, link without errors (legacy COFF)
MAP file output shows that symbol ".bss" has been allocated to the same location as ".text":
Then, further down in the file, a proper list of ".bss" locations is found. Bad news is that the address used by "c_int00" to populate the DP register is the first one, causing the cinit function to clear a bunch of code.
What did I do wrong ?
(I wasn't sure what else to include with this first question)
Thanks
*************TOP of MAP file
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
DEADBEEF 00820000 00000100 00000000 00000100 RWIX
INIT 00820100 00000400 00000000 00000400 RWIX
IRAM 00820500 001cfb00 00125894 000aa26c RWIX
CACHE_L2 009f8000 00008000 00000000 00008000 RWIX
CACHE_L1P 00e00000 00008000 00000000 00008000 RWIX
CACHE_L1D 00f00000 00008000 00000000 00008000 RWIX
DDR e0000000 01000000 00162bb6 00e9d44a RWIX
DDR_UNCACHED e1000000 01000000 00000000 01000000 RWIX
SECTION ALLOCATION MAP
output attributes/
section page origin length input sections
-------- ---- ---------- ---------- ----------------
.pinit 0 00820500 00000000 UNINITIALIZED
.cinit 0 00820500 00000000 UNINITIALIZED
.pinit 0 00820500 00000000 UNINITIALIZED
.bss 0 00820500 00000000 UNINITIALIZED
.data 0 00820500 00000000 UNINITIALIZED
xdc.meta 0 00820500 000000d7 COPY SECTION
00820500 000000d7 SYS1_p64P.o64P (xdc.meta)
.text 0 00820500 000ebfa0
00820500 00010f40 std_msg.obj (.text)
00831440 0000bb20 mount.obj (.text)
0083cf60 0000a7e0 query.obj (.text)
00847740 00006fa0 video.obj (.text)
etc...
********************* TOP of MAP file
......
**************** later in MAP file:
.bss 0 00944b48 00000e20 UNINITIALIZED
00944b48 000002cc globvars.obj (.bss)
00944e14 00000194 mount.obj (.bss)
00944fa8 00000064 Cohu.obj (.bss)
etc...