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


Problems adding a new library .a

Hi,

I am having some problem adding a new library to a project. I opened Properties/C/C++ General/Path and Symbols/Library Path and i added the .a file. When i did it, in C/C++ Build/Setting/MCU GCC LInker, it appears on the added libraries list. which i think is how it should be. But when I build the project, I get the following error:

c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.11.0.201610101338/tools/gcc-arm-none-eabi-5_4-2016q2-20160622-win32/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lC:/Users/Gregorio/Desktop/NewMCUfiles/SSD1963(23012018)1/SSD1963/SSD1963/EmWin/libSTemWin522_CM4_GCC.a

So apparently it can’t find the library and I don’t know why.

Thank you for your help

France

Hi,

To load a library, the best way is to

  1. Set a -L option with the directory where the library is:
    • project properties >> C/C++ Build >> Build settings >> MCU GCC Linker >> Libraries >> Libraries search path
    • in your case this is /Users/Gregorio/Desktop/NewMCUfiles/SSD1963(23012018)1/SSD1963/SSD1963/EmWin
  2. Set a -l option with the library base name:
    • project properties >> C/C++ Build >> Build settings >> MCU GCC Linker >> Libraries >> Libraries
    • in your case this is STemWin522_CM4_GCC


The linker will search for libyour_lib_name.a in the library search path provided and should find your library

HTH

Bernard (Ac6)

Hi Bernard
It is working now

Thank you for your help

Gregorio


Sir

I’ve just created a new project and I’m having a lot of issues with it. When I tried to build it, a message appeared saying that ‘building is finished’.But lot of errors in console window. I figured out that binaries is missing under my file name in the project explorer. Please see the attachment showing the error message. Please reply.



I am using STM32 AC6 software system workbench & STM32F3 DISCOVERY Board. Please do the needful

Please reply then only i can start my research work. I am a new learner of this software.

Hi,

It looks like you can’t run the compiler program (arm-none-gnueabi-gcc.exe). No project can compile on your system.
I’m not sure if it is due to an other software or if your installation directory path is not supported.

Do you have unix-like environment installed in your system (such as cygwin or msys) ? Do you run System Workbench from this environment ?
Can you verify that your installation path does not contains special character or space ? (maybe there is a bug on this)

Regards,
Kevin


I’ve had the same problem. When I tried to compare to a project that would both compile and link with the same library - I noticed that in the project that would link in the library the library name was prefixed with : so in the properties the correct library name was :-STemWin_CM7_GCC_ARGB.a instead of STemWin_CM7_GCC_ARGB.a ! Notice also, that I kept the .a suffix - otherwise the linker can not find the library!

 

Newest Forum Posts

  1. Можно ли установить камин на балконе или лоджии? by Grand3kpdErorb, 03:38
  2. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  3. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  5. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  6. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  7. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  8. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05

Last-Modified Blogs