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


collect2.exe: error: ld returned 1 exit status

I met this issue building SMARTMIC project for Bluecoin in Eclipse Oxygen with SW4STM32 plugin. I was able to build this project in the same configuration and environment, but after a few days this issue appeared. Installed Eclipse Photon and SW4STM32 plugin, issue disappeared, but after a few days reappeared again. There is the same issue with other of the shelf ST projects as well (eg STSW-SPIN3201). Could anyone help please?
Also, there is a warning:

  1. warning “Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)”


This wasn’t there before. It is strange, because the target MCU has FPU.

There is a build log.

        • Build of configuration Debug for project STM32F446ME-BlueCoin ****

make all
Building file: D:/workspace/STM32CubeFunctionPack_SMARTMIC1_V1.1.1/Middlewares/ST/STM32_AcousticDB_Library/Lib/Acoustic_DB100.c
Invoking: MCU GCC Compiler
D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Projects\Multi\Applications\FP-AUD-SMARTMIC1\SW4STM32\STM32F446ME-BlueCoin\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DARM_MATH_CM4 -DUSE_HAL_DRIVER -DSTM32_BLUECOIN -DSTM32F446xx -DUSE_COMPOSITE_VCP_AUDIO

...

Building target: STM32F4xx-Nucleo.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_Audio\Addons\PDM\Lib” -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_AcousticBF_Library\Lib” -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_AcousticEC_Library\Lib” -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_AcousticSL_Library\Lib” -specs=nosys.specs -specs=nano.specs -T”..\STM32F446RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “STM32F4xx-Nucleo.elf” @”objects.list” -l:libPDMFilter_CM4_GCC.a -l:libAcoustic_BF_CM4F_GCC_ot.a -l:libAcoustic_EC_CM4F_GCC_ot.a -l:libAcoustic_SL_CM4F_GCC_ot.a -lm
c:/programs/photon/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crti.o: No such file or directory
c:/programs/photon/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crtbegin.o: No such file or directory
c:/programs/photon/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crt0.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
makefile:44: recipe for target ‘STM32F4xx-Nucleo.elf’ failed
make: *** STM32F4xx-Nucleo.elf Error 1

Didn’t find an actual cause. Uninstalled SW4STM32 in Eclipse plugins installer and removed all fr.ac6* folders and files + artifacts.xml in Eclipse folder . Then installed again and problem gone.
Anyone who’s looking for this error might want to know that Windows can remove these .o files during updates. Reinstall might be the only recourse.

 

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