cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with CAN on STM32F072RB

pfc1
Associate

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. 

0 REPLIES 0