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?