2019-02-08 04:24 AM
Hi,
I'm trying to implement CAN on the STM32F072RB and I think I have added all the neccesary files. In stm32f0xx_hal_conf.h I have defined HAL_CAN_MODULE_ENABLED, but in stm32f0xx_hal_can.c it is not recognized. The question is that when compiling everything is OK but whe debugging it stuck on "if (HAL_CAN_Init(&CanHandle) != HAL_OK)" but it does not appear as an error. I think that the problem is that the file stm32f0xx_hal_can.h is not called or not achieved but I don´t kwon how to solve that. In main when I press the right button in CAN_HandleTypeDef and Go To Declaration it says "Could not find symbol CAN_HandleTypeDef". Sorry for my English.