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.

MSPM0G3507: Build error with TI Clang 3.0.0

Part Number: MSPM0G3507


I am using C++ in my application code. As TI Clang 2.1.2 LTS not supporting C++ exceptions, I upgraded to TI Clang 3.0.0. Now I am getting below error while building my code (just showing the snippet of the failure message, removed all application related .o files list):

Building target: "TIuRabbit_Clang.out"
Invoking: Arm Linker
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_3.0.0.STS/bin/tiarmclang.exe" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O0 -D__MSPM0G3507__ -DBARE_METAL_BUILD -DHARDWARE_MSPM0_G350X -gdwarf-3 -fexceptions -Wl,-m"TIuRabbit_Clang.map" -Wl,--heap_size=1024 -Wl,--stack_size=1024 -Wl,-i"C:/Vijaya/PACMicro/CCS_WS/TestingWithTI/pacmicro_iobusmodule/IOBusModule/Projects/Device/bareMetal/IOBusDeviceMSPM0_Eval/TIuRabbit_Clang/Debug/syscfg" -Wl,-i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_3.0.0.STS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="TIuRabbit_Clang_linkInfo.xml" -Wl,--rom_model -o "TIuRabbit_Clang.out" [***application .o files****] "./ticlang/startup_mspm0g3507_ticlang.o" "../mspm0g3507.cmd" -Wl,-l"C:/ti/mspm0_sdk_0_56_00_01_eng/source/ti/driverlib/lib/ticlang/m0p/mspm0g/driverlib.a" -Wl,-llibc.a
makefile:206: recipe for target 'TIuRabbit_Clang.out' failed
warning #10247-D: creating output section ".ARM.extab" without a SECTIONS specification
"../mspm0g3507.cmd", line 45: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment fails for section ".text" size 0x28792. Available memory ranges:
FLASH size: 0x20000 unused: 0x1b6d0 max hole: 0x1b6d0
error #10010: errors encountered during linking; "TIuRabbit_Clang.out" not built
tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [TIuRabbit_Clang.out] Error 1
gmake: *** [all] Error 2
makefile:202: recipe for target 'all' failed

**** Build Finished ****

I don't understand this error. I am sure my code size is within limits. The .cmd file is the one taken from example code. Can someone please help me with this.

Thanks & Regards

Vijaya