Home > other >  STM32 __HAL_TIM_SetCompare function error
STM32 __HAL_TIM_SetCompare function error

Time:11-16

Recently for a lesson in STM32 tracking car, useless CUBEMX similar before, this time a lot of problems with CUBEMX
__HAL_TIM_SetCompare (& amp; Htim3 TIM_CHANNEL_1, 100); This is an error code
Wk \ a moter. C (57) : error: # 20: identifier "htim3 is undefined" this is an error
TIM3 in CUBEMX configuration
But after define the function in the main file header file without error, but would be an error in the motor program, is there anything that's not defined statement or no such thing as reference what is the header file
For big solutions

CodePudding user response:

Inside the motor program plus the header file

CodePudding user response:

Htim3 is not defined

CodePudding user response:

TONG + 1
  • Related