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


SWSTM32 make error 1

I am a newbie in stm32 programming and I am using stm32 in Linux. I could build my first project without any error. but when I added some new parts into my code which requires one new source file and header file (which I also added). The IDE started giving these two errors:

recipe for target ‘STM32L4xx-SensorTile.elf’ failed makefile /STM32L4xx-SensorTile/Release line 45 C/C++ Problem
make: *** STM32L4xx-SensorTile.elf Error 1 STM32L4xx-SensorTile C/C++ Problem

And this is the console output from the build:

09:43:02 **** Incremental Build of configuration Release for project STM32L4xx-SensorTile ****
make all
Building target: STM32L4xx-SensorTile.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L../Lib/ -specs=nosys.specs -T”../LinkerScript.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “STM32L4xx-SensorTile.elf” @”objects.list”
MotEnv1_ST/User/main.o: In function `main’:
main.c:(.text.startup.main+0x518): undefined reference to `EnableHWDoubleTap’
collect2: error: ld returned 1 exit status
makefile:45: recipe for target ‘STM32L4xx-SensorTile.elf’ failed
make: *** STM32L4xx-SensorTile.elf Error 1

I checked online, saw some linker-related solution suggestions but could not make them work. Can someone help me with this, taking into account that I am a newbie so I need simple explanations?

 

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