@dpgeorge, Micropyhton uses stm32_hal_legacy.h definitions for CAN and CAN3 definitions are missing, eg it has #define __CAN2_CLK_ENABLE __HAL_RCC_CAN2_CLK_ENABLE but not #define __CAN3_CLK_ENABLE __HAL_RCC_CAN3_CLK_ENABLE
There are two ways to fix this. Either update stm32_hal_legacy.h or change MicroPython to directly use the definitions in stm32f4xx_hal_rcc_ex.h
Second option means no change to stm32lib. Which do you prefer?
@dpgeorge, Micropyhton uses
stm32_hal_legacy.h
definitions for CAN and CAN3 definitions are missing, eg it has#define __CAN2_CLK_ENABLE __HAL_RCC_CAN2_CLK_ENABLE
but not#define __CAN3_CLK_ENABLE __HAL_RCC_CAN3_CLK_ENABLE
There are two ways to fix this. Either update
stm32_hal_legacy.h
or change MicroPython to directly use the definitions instm32f4xx_hal_rcc_ex.h
Second option means no change to stm32lib. Which do you prefer?