cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: Cube MX 6.8.1 issues with linker script in a Makefile project

S0
Associate

I don't know if this also affects non-makefile projects. But when the code is generated, the linker script name used in the Makefile is different than the actual name of the linker script file. Running make causes this error:

 

/opt/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file STM32G070CBTx_FLASH.ld: No such file or directory
collect2: error: ld returned 1 exit status

 

The difference is in the lower/upper case "x" letter at the end of the model name of the target. Changing the "x" fixes the issue and the linker works.

This issue was not happening before as I could verify with an older project. Minor thing, but I hope it can be fixed or this post helps somebody with the same problem.

0 REPLIES 0