Nicola Gutierrez
Nicola Gutierrez

Reputation: 11

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?

Upvotes: 0

Views: 372

Answers (1)

Nicola Gutierrez
Nicola Gutierrez

Reputation: 11

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.

Upvotes: 1

Related Questions