cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE not link library files correctly

zpeng.11
Associate

when i build a project with the .a lib.

the problem

"make: *** [makefile:47: freertos-stemwin.elf] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete."

was happened.

told me that

"d:\program files\stm32cubeide_1.1.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -lD:/test/STemWin544/Lib/STemWin_CM3_wc16.a

collect2.exe: error: ld returned 1 exit status"

then i open the verbose choise in linker, and find that info

"attempt to open D:\test\STemWin544\Lib\libD:/test/STemWin544/Lib/STemWin_CM3_wc16.a.a failed"

some wrony happen with the cubeide.

STM32CubeIDE

Version: 1.2.0

Build: 5034_20200108_0926 (UTC)

thanks for any help.

build information :

0690X00000BvpxCQAR.png

config :

0690X00000BvpxgQAB.png0690X00000BvpyUQAR.png

0690X00000BvpyeQAB.png

project link :

https://github.com/pcwl/stemwin_test

2 REPLIES 2
Cartu38 OpenDev
Lead II

Maybe not SMT32CubeIDE issue but way of working ​of common Eclipse / CDT here. Please look at attached setup i m getting from STM32CubeIDE using AI pack which is relying on some library usage.

zpeng.11
Associate

it's usefull and working. thanks a lot.​:D

0690X00000BvxRYQAZ.png