Thank you! I found a file named " msp430g2553 _symbols.ld" has register define. I have try the command "-S" at compiler, it seen no problem and passed. But, the linker has problem. compiler message as below: msp430-elf-gcc.exe -mmcu= msp430g2553 -S -IC:\Compiler\msp430_gcc\include -c main.c -o obj\main.o msp430-elf-gcc.exe -LC:\Compiler\msp430_gcc\include -o bin\LEDBlink.elf obj\main.o -T msp430g2553 .ld -l msp430g2553 _symbols.ld c:/compiler/msp430_gcc/bin/../lib/gcc/msp430-elf/5.3.0/../../../../msp430-elf/bin/ld.exe:obj\main.o: file format not recognized; treating as linker script c:/compiler/msp430_gcc/bin/../lib/gcc/msp430-elf/5.3.0/../../../../msp430-elf/bin/ld.exe:obj\main.o:1: syntax error collect2.exe: error: ld returned 1 exit status Process terminated with status 1 (0 minute(s), 0 second(s)) 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) the command "-l" has no effect ?
↧