267 / 5.000 Resultados de tradução Sorry for the English, but I'm trying to compile a simple code and it's giving an error of "undefined reference to `HAL_TIM_Base_Init'".
My code:
#include "main.h"
#include "rf_driver_hal_tim.h"
TIM_HandleTypeDef htim1;
static void mxtim1(void);
/**
 * @brief  The application entry point.
 * @retval int
 */
int main(void) {
    /* System initialization function */
    if (SystemInit(SYSCLK_64M, BLE_SYSCLK_NONE) != SUCCESS){
        /* Error during system clock configuration take appropriate action */
        while (1);
    }
    HAL_Init();
    IRQHandler_Config();
    MX_GPIO_Init();
    MX_USART1_UART_Init();
    mxtim1();
    while (1) {
    }
}
static void mxtim1(void){
    HAL_TIM_Base_Init(&htim1);  //error: undefined reference to `HAL_TIM_Base_Init'
}
I already called the Timer library in the main file, but even so the error persists, I expected that if I called this library all the files that would be in it would be seen by main.c.
