Hello,
I am using a 28035 and developing code for the CLA using the C compiler. I have read and implemented the SECTIONS directive to allocate the Scratchpad memory area as described on http://processors.wiki.ti.com/index.php/C2000_CLA_C_Compiler. However, when compiling the project I receive a series of warnings that need to be addressed and solved.
My definition is as described in the document and copied here:
--undef_sym=__cla_scratchpad_end
--undef_sym=__cla_scratchpad_start
...........
CLAscratch :
{ *.obj(CLAscratch)
. += CLA_SCRATCHPAD_SIZE;
*.obj(CLAscratch_end) } > RAML2,
PAGE = 1
...........
And when I try building the console shows the following linking messages:
<Linking>
remark #10205-D: automatic RTS selection: linking in "rts2800_ml.lib" in place
"../F28035_DCDCControlTest.cmd", line 161: warning #10068-D: no matching
of index library "libc.a"
section
{ *.obj(CLAscratch)
"../F28035_DCDCControlTest.cmd", line 163: warning #10068-D: no matching
section
*.obj(CLAscratch_end) } > RAML2,
"../CLAtasks.cla", line 30: warning #17003-D: relocation from function
"UpdatePWM" to symbol "CLAscratch_end" overflowed; the 2-bit relocated
address 0xe is too large to encode in the 16-bit unsigned field (type =
'R_ABS16_OC' (107), file =
"C:\HGProjects\SoftDev\public\TI\CXR48_12kW\Source\CXR48_12kW_DCDCControl\De
bug\CXR48_12kW_DCDC_Control.lib<CLAtasks.obj>", offset = 0x00000012, section
= "Cla1Prog")
"../CLAtasks.cla", line 37: warning #17003-D: relocation from function
"UpdatePWM" to symbol "CLAscratch_end" overflowed; the 2-bit relocated
address 0xe is too large to encode in the 16-bit unsigned field (type =
'R_ABS16_OC' (107), file =
"C:\HGProjects\SoftDev\public\TI\CXR48_12kW\Source\CXR48_12kW_DCDCControl\De
bug\CXR48_12kW_DCDC_Control.lib<CLAtasks.obj>", offset = 0x0000003c, section
= "Cla1Prog")
warning #10015-D: output file "CXR48_12kW_DCDCControlTest.out" cannot be loaded
and run on a target system
'Finished building target: CXR48_12kW_DCDCControlTest.out'
Please, could you provide me with some help to solve these issues?
Thanks,
Lucas