Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Linker file cannot find my libraries

Hi gharibi,

I have the same problem: I added “${ProjDirPath}/Middlewares/ST/STemWin/Lib/STemWin528_CM4_GCC.a” in Libraries (Properties -> Paths and Symbols)
I also tried to rename with lib in suffix and prefix and with or without “.a” but always this message : “....ne-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: cannot find -lD:/Users/Guillaume/STM32Projects/test2.0/testa/Middlewares/ST/STemWin/Lib/STemWin528_CM4_GCC.a ”

Why there is a ” -l ” before “D:/Users/Guillaume/STM32Projects/test2.0/testa/Middlewares/ST/STemWin/Lib/STemWin528_CM4_GCC.a “? I think it could be the issue but I tried to change the way in the objects.mk file but because of it’s a derivated file, I can’t do anything.

Thank you,
Guillaume

France

Here, the problem is due to the fact that, for GCC, libraries should have a name starting by “lib” and finish by “.a”; here STemWin528_CM4_GCC.a can’t be included simply

The simplest way to include it needs

  1. To manually rename STemWin528_CM4_GCC.a to, for example, libSTemWin.a
  2. To add two settings, both located in project >> Properties >> C/C++ Build >> Settings >> MCU GCC Linker >> Libraries:
    • in the Libraries (-l) pane, add STemWin
    • in the Library search path pane add ${ProjDirPath}/Middlewares/ST/STemWin/Lib


Then the linker should find the STemWin library

Hope this helps,

Bernard (Ac6)

Dear Bernard,

Thank you for your answer, it perfectly works!

Best regards,

Guillaume

Dear Bernard,

I could not find the mentioned link for my project.
project >> Properties >> C/C++ Build >> Settings >> MCU GCC Linker >> Libraries.

Attached screenshot for referene.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs