Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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.