Loading...
 

STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

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?