This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: CCSv6.2.0 Build problem with Linker

Part Number: TMS320F28335

Tool/software: Code Composer Studio

Hi,

I could solve a problem and got the next.

An error message which I saw the first time.

It looks like a problem with __SYSMEM_SIZE, this even I defined the --heap option with 0x2400h!

See attached txt file.

What can I try?

br Ralf

Build-Error.txt
*** Build of configuration F2833x_RAM for project VVK1 ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building target: ../2833x_RAM/VV K1.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O4 --opt_for_speed=5 --advice:performance=all -g --program_level_compile --define="_DEBUG" --define="LARGE_MODEL" --display_error_number --diag_warning=225 --gen_func_subsections=on --call_assumptions=3 --asm_define=RAM=1 --temp_directory="../Temp" --asm_directory="../2833x_RAM" -z -m"../2833x_RAM/VV K1.map" --stack_size=0x400 --heap_size=0x2400 --warn_sections -i"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --priority --reread_libs --display_error_number --xml_link_info="VVK1_linkInfo.xml" --no_sym_merge --rom_model -o "../2833x_RAM/VV K1.out" "../lib/IQmath_fpu32.lib" "../lib/rts2800_fpu32_fast_supplement.lib" "../lib/rts2800_fpu32.lib" "../lib/rts2800_ml.lib" "../DSP2833x_Headers_nonBIOS.cmd" "./DSP2833x_CodeStartBranch.obj" "./src/Main.obj" "ADS8329.obj"  "../F28335_RAM_VV.CMD" "../lib/SFO_TI_Build_V5B_fpu.lib" "DSP2833x_CodeStartBranch.obj" "DSP2833x_usDelay.obj" "atan2_f32.obj" "cos_f32.obj" "div_f32.obj" "sin_f32.obj" "sqrt_f32.obj" "FPUmathTables.obj"  -llibc.a 
<Linking>
warning #99922: "./memory.c", line 70: Assembly statement "__sys_memory
   .usect  ".sysmem",0" creates a label, which may not be what was intended.
   Use a colon after a label or a space before a non-label to silence the
   warning.

>> Compilation failure
makefile:167: recipe for target '../2833x_RAM/VV K1.out' failed

 undefined     first referenced
  symbol           in file     
 ---------     ----------------
 __SYSMEM_SIZE <whole-program> 

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "../2833x_RAM/VV K1.out" not
   built
gmake: *** [../2833x_RAM/VV K1.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • This appears to be a problem with the use of link-time optimization, which you enable by using -O4.  I'd appreciate if you would submit the CCS project, so that we can reproduce the problem.  In the mean time, lower the optimization level from 4 to 3.  I'm pretty sure that will work.

    Thanks and regards,

    -George

  • Hi Georg,

    I had no succes with reducing the level from -O4 to -O3 or lower.

    Because I,ve got the project from a service provider, I compare all settings to my very simular project.

    I've updated the libs path to the actual once of my CCSv6.2.0 installation, and now the error disappears.

    Newer errors with my sinf32.asm files I could then solved with former answers.

    (e2e.ti.com/.../2083538

    Thanks for your help.

    br Ralf