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


undefined reference to `HAL_TIM_Base_Init'

Hi I’ve added

  1. include “stm32f4xx_hal_tim.h”

to my main.c and effectively file has been compiled as I can see in the log:


Building file: C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c
Invoking: MCU GCC Compiler
C:\en.X-CUBE-53L1A1\STM32CubeExpansion_53L1A1_V2.1.0\Projects\STM32F401RE-Nucleo\Examples\53L1A1\SimpleRanging\SW4STM32\VL53L1X_SimpleRanging\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 ‘-Dweak=attributeweak’ ‘-Dpacked=attributepacked’ -DUSE_HAL_DRIVER -DSTM32F401xE -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Projects/STM32F401RE-Nucleo/Examples/53L1A1/SimpleRanging/Inc” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/STM32F4xx_HAL_Driver/Inc” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Projects/STM32F401RE-Nucleo/Examples/53L1A1/SimpleRanging/SW4STM32/VL53L1X_SimpleRanging/Drivers/STM32F4xx_HAL_Driver” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/BSP/Components/vl53l1x” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/CMSIS/Include” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/CMSIS/Device/ST/STM32F4xx/Include” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/BSP/X-NUCLEO-53L1A1” -I”C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/STM32F4xx_HAL_Driver/Inc” -Og -g3 -Wall -fmessage-length=0 -fno-builtin-fputc -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.d” -MT”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o” -o “Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal_tim.o” “C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c”
Finished building: C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c

But Linker stop with ERROR

Building target: VL53L1X_SimpleRanging_F401.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -specs=nosys.specs -specs=nano.specs -u _printf_float -T”../STM32F401RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “VL53L1X_SimpleRanging_F401.elf” @”objects.list” -lm
Application/User/main.o: In function `MX_TIM11_Init’:
C:/en.X-CUBE-53L1A1/STM32CubeExpansion_53L1A1_V2.1.0/Projects/STM32F401RE-Nucleo/Examples/53L1A1/SimpleRanging/Src/main.c:295: undefined reference to `HAL_TIM_Base_Init’
collect2.exe: error: ld returned 1 exit status

The HAL_TIM_Base_Init func. is in stm32f4xx_hal_tim.c!

Why?

 

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