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.
HI all,
A am currently looking at CCS6 using the GCC compiler. I thought it would be a good exercise to re-implement the EXP430F5529 User Experience Demo with the new tools an using the latest version of the USB driver package. Having spent some time pulling in the various source code and sorting problems with changes to include paths so that everything seems to compile I now am getting the error:
msp430-elf-gcc.exe: error: ./UserExperienceDemo/5xx_ACTIVE_test.o: No such file or directorygmake: *** [TestUsbGcc.out] Error 1
gmake: Target `all' not remade because of errors.
I looked back in the console listing and the command to compile this file is:
'Building file: ../UserExperienceDemo/5xx_ACTIVE_test.asm'
'Invoking: GNU Compiler'
"C:/TI_V6/ccsv6/tools/compiler/gcc_msp430_4.8.371/bin/msp430-elf-gcc.exe" -c -mmcu=msp430X -D__MSP430F5529__ -I"C:/TI_V6/ccsv6/tools/compiler/gcc_msp430_4.8.371/msp430-elf/include" -I"R:/CCS6/workspace_v6_0/TestUsbGcc/FatFs" -I"R:/CCS6/workspace_v6_0/TestUsbGcc/CTS" -I"R:/CCS6/workspace_v6_0/TestUsbGcc/MSP-EXP430F5529_HAL" -I"C:/TI_V6/ccsv6/ccs_base/msp430/include_gcc" -I"R:/CCS6/workspace_v6_0/TestUsbGcc/driverlib/MSP430F5xx_6xx" -I"R:/CCS6/workspace_v6_0/TestUsbGcc" -I"R:/CCS6/workspace_v6_0/TestUsbGcc/USB_config" -O3 -Os -ffunction-sections -fdata-sections -g -gstrict-dwarf -w -Wall -MMD -MP -MF"UserExperienceDemo/5xx_ACTIVE_test.d" -MT"UserExperienceDemo/5xx_ACTIVE_test.d" -o"UserExperienceDemo/5xx_ACTIVE_test.o" "../UserExperienceDemo/5xx_ACTIVE_test.asm"
msp430-elf-gcc.exe: warning: ../UserExperienceDemo/5xx_ACTIVE_test.asm: linker input file unused because linking not done
'Finished building: ../UserExperienceDemo/5xx_ACTIVE_test.asm'
This has me completely stumped, any help would be appreciated
Roy
It seems the compiler is confused about which file to generate from what file. I wonder why the compiler is called to compile an ASM file. Maybe you messed things up when adding the source files to your project
Had the same problem re-implementing "User Experience Demo" for the MSPEXP430F5438 and gcc compiler. ASM files (5xx_ACTIVE_test.asm, and FFT_430.asm) are included in former versions of the project, so it is not a problem of source code. It seems that linker expects a ".o" file for all and every source code in the directories included at the project but, obviously C files produce .s43 files as c files produce ".o" files).
msp430-elf-gcc: error: ./UserExperienceDemo/FFT_430.o: No such file or directory
msp430-elf-gcc: error: ./UserExperienceDemo/5xx_ACTIVE_test.o: No such file or directory
gmake: *** [MSP-EXP430F5438_User_Experience-TI_16KB.out] Error 1
gmake: Target `all' not remade because of errors.
Not sure is a problem of the gcc linking motor, the project options, or whatever....if anyone is able to produce a working code mixing ASM and C files under gcc, please tell us how.
Regards
Was this issue ever solved? I am experiencing the same thing trying to convert a Tiva project to compile using the GCC compiler.
The .asm files do not generate a .o file, and the linker fails.
Hi,
I did not manage to solve it but I think the make file is using the wrong command to use the assembler.
$ msp430-gcc -D_GNU_ASSEMBLER_ -c file.s -o file.o [options]
Appears to be the command you need. You could try just running that outside the maim build to get the object file.
**Attention** This is a public forum