'STM32F469-discovery CAN BUS configuration
I initialized the CAN2 via STM32CubeIDE (from .ioc file) but the stm32f4xx_hal_can.c file is not imported in the Drivers/STM32F4xx_HAL_Driver folder. So I have no way of running HAL_CAN_Init(&hcan2) even though it is code generated via IDE/MX. How do I get the correct stm32f4xx_hal_can.c file? Do I have to configure the CAN differently via the .ioc file?
Solution 1:[1]
SOLUTION : i used an old versione of CubeMX (v6.3.0) to configure the CAN, then i generated the code and edited it with CubeIDE. Thanks to @Ali Mirghasemi fot the hint.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nicola Gutierrez |