Hi,
My development code, with debugging, and the sprintf is getting too large, so I get the error:
msp430-elf-gcc -T /home/summers/msp430/include/msp430f5529.ld -L /home/summers/msp430/include -mmcu=MSP430F5529 -Wl,--gc-sections gcc/sinlookupuart2048.o -o gcc/sinlookupuart2048.out /home/summers/msp430/lib/gcc/msp430-elf/13.2.0/../../../../msp430-elf/bin/ld: error: final size of uleb128 value at offset 0x71b in .debug_loclists from /home/summers/msp430/lib/gcc/msp430-elf/13.2.0/../../../../msp430-elf/lib/libc.a(libc_a-vfiprintf.o) exceeds available spaceSo its clear the the string printing is taking too much space (my hex file is 89kB right now). I can correct the error, just my writing the string by hand, and not using sprintf then the hex file drops down to 6kB.
I checked what c lib is used, and its newlib c; now with some devices (e.g. arm) you can enable nano specs that give a smaller sprintf.
Tried doing this in the msp430 environment, and no luck - looks like the msp430 newlib c doesn't come in a nano variant, selected through specs. Am I missing something?
Are there any smaller options for a formatted print statement on the msp430 development environment?