5 years, 5 months ago.

Several months, The export to arm-make-gcc is not working.

Here is the compilations message

10:56:02 **** Incremental Build of configuration Default for project TestingSystem_Nucleo-L476RG ****
make all 
C:/Temp/test/TestingSystem_Nucleo-L476RG/makefile:1708: warning: overriding commands for target `.s.o'
C:/Temp/test/TestingSystem_Nucleo-L476RG/makefile:1700: warning: ignoring old commands for target `.s.o'
"Assemble: except.s"
cc1.exe: fatal error: /filer/workspace_data/exports/0/0b56195140e36b1c83f4483fb903ae8c/TestingSystem_Nucleo-L476RG/mbed_config.h: No such file or directory
compilation terminated.
make[1]: *** [mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_GCC/except.o] Error 1
make: *** [all] Error 2
"make all" terminated with exit code 2. Build might be incomplete.

10:56:07 Build Failed. 2 errors, 2 warnings. (took 5s.479ms)

the reason is

ASM_FLAGS += -include
ASM_FLAGS += /filer/workspace_data/exports/0/0b56195140e36b1c83f4483fb903ae8c/TestingSystem_Nucleo-L476RG/mbed_config.h

removing that line, fix that issue. But under windows, due to the long object names the linker fails to link to the .elf file and command prompt crashes (using eclilpse). This is a Microsoft windows limitation but I don't know how to fix that issue.

OK, I could figure out how to solve this issue.

You cannot remove the line, you must change it to

ASM_FLAGS += ../mbed_config.h

READ: https://github.com/ARMmbed/mbed-os/issues/9816

posted by M J. 14 Jun 2019
Be the first to answer this question.