Part Number: MSP430F2419
We have a firmware we can build and run with Code Composer TI on Windows. Im trying to integrate on WSL. I changed the toolchain from cl430 to msp430-gcc. Im using the linker from msp430 toolchain. This is the entire error from the building process:
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: go_two_linux.elf section `.text' will not fit in region `rom'
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: section .vectors loaded at [000000000000ffc0,000000000000ffdf] overlaps section .text loaded at [0000000000002100,0000000000010405]
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `rom' overflowed by 2230 bytes
/usr/lib/gcc/msp430/4.6.3/libcrt0.a(_copy_data.o): In function `__do_copy_data':
/build/gcc-msp430-gRBRRo/gcc-msp430-4.6.3~mspgcc-20120406/./gcc-4.6.3/gcc/config/msp430/crt0.S:195: relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in go_two_linux.elf
/usr/lib/gcc/msp430/4.6.3/crt0ivtbl16.o: In function `__isr_14':
(.text+0x2): relocation truncated to fit: R_MSP430_16 against symbol `_unexpected_' defined in .text.crt0 section in /usr/lib/gcc/msp430/4.6.3/libcrt0.a(_unexpected_.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_get_param_data':
cmd_handling.c:(.text+0x11e): relocation truncated to fit: R_MSP430_16_BYTE against `no symbol'
Lib/libx_lib.a(cmd_handling.c.obj): In function `Handle_Transaction':
cmd_handling.c:(.text+0x5b6): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/msp430/lib/libc.a(memset.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_dac_currents':
cmd_handling.c:(.text+0x970): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/msp430/lib/libc.a(memset.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_adc_currents':
cmd_handling.c:(.text+0xbbe): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/msp430/lib/libc.a(memset.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_dac_voltages':
cmd_handling.c:(.text+0xdf0): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/msp430/lib/libc.a(memset.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_adc_voltages':
cmd_handling.c:(.text+0xff8): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/msp430/lib/libc.a(memset.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_voltages_currents':
cmd_handling.c:(.text+0x1252): relocation truncated to fit: R_MSP430_16 against symbol `memset' defined in .text section in /usr/msp430/lib/libc.a(memset.o)
Lib/libx_lib.a(cmd_handling.c.obj): In function `CMD_serial_number':
cmd_handling.c:(.text+0x1cc8): relocation truncated to fit: R_MSP430_16 against symbol `memcpy' defined in .text section in /usr/msp430/lib/libc.a(memcpy.o)
cmd_handling.c:(.text+0x1d1e): additional relocation overflows omitted from the output
Lib/libx_lib.a(heater.c.obj): In function `heater_get_temperatures':
heater.c:(.text+0x36e): undefined reference to `isfinite'
collect2: ld returned 1 exit status
make[2]: *** [CMakeFiles/go_two_linux.elf.dir/build.make:98: go_two_linux.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:129: CMakeFiles/go_
What did I miss? How to integrate the math library correctly. The msp430 toolchain came with math library I checked these I couldnt found some simple functions like isfinite. These are my Compiler/Linker flags: