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


static library link error with STM32L4

static library is added in project folder with path STM32_display/Lib/libSTM32display.0.0_CM4_GCC.a

Same path is updated under “Properties->C/C++ General->Paths and Symbols->Libraries” and “Properties->C/C++ General->Paths and Symbols->Library Path”

__Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: cannot find -l/home/sachin/workspace/UnitTest/STM32_display/Lib/libSTM32display.0.0_CM4_GCC.a
collect2: error: ld returned 1 exit status
make: *** UnitTest.elf Error 1
makefile:37: recipe for target ‘UnitTest.elf’ failed__

Please help if anything is not appropriate to link static library.

Hi,

With GCC in Eclipse, to link a static library :
In “Properties->C/C++ General->Paths and Symbols->Library Path”, add “Lib/”
In “Properties->C/C++ General->Paths and Symbols->Libraries”, add “STM32display.0.0_CM4_GCC” (the “lib” prefix and the extension are not required)

Hope it works,
Kevin.


Thanks for information. Now it is giving error for “uses VFP register arguments, ” any suggestion

16:09:07 **** Incremental Build of configuration Debug for project UnitTest ****
make all
Building target: UnitTest.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L”/home/sachin/workspace/UnitTest/STM32_display/Lib” -T”/home/sachin/workspace/UnitTest/LinkerScript.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “UnitTest.elf” @”objects.list” -lSTM32displayV3.0.0_CM4_GCC -lSTM32displayV3.0.0_CM4_GCC_ot -lm
/home/sachin/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: error: UnitTest.elf uses VFP register arguments, /home/sachin/workspace/UnitTest/STM32_display/Lib/libSTM32displayV3.0.0_CM4_GCC.a(display.o) does not
/home/sachin/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /home/sachin/workspace/UnitTest/STM32_display/Lib/libSTM32displayV3.0.0_CM4_GCC.a(display.o)
collect2: error: ld returned 1 exit status
make: *** UnitTest.elf Error 1
makefile:37: recipe for target ‘UnitTest.elf’ failed


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs