Skip to main content
tdarlic
Associate II
Dec 10, 2018 3:38 PM UTC
Solved

How to enable CAN on STM32F042F4P6 CubeMX?

I was searching for smaller and cheaper MCU with CAN network. I have chosen the STM32F042F4P6 trough CubeMX but now when I try to enable CAN in CubeMX I cannot because it's grayed. What am I doing wrong?

This topic has been closed for replies.
tdarlic
tdarlicBest answer
Associate II
Dec 10, 2018 4:40 PM UTC

I found it.

You need to swap the pins under SYS: "Pins PA11/12 instead of pins PA9/10"

Answer is also in question below

https://community.st.com/s/question/0D50X00009sWUBjSAO/use-can-in-stm32f042f4-can-not-config-in-cubemx

1 reply

tdarlic
tdarlicAuthorBest answer
Associate II
Dec 10, 2018 4:40 PM UTC

I found it.

You need to swap the pins under SYS: "Pins PA11/12 instead of pins PA9/10"

Answer is also in question below

https://community.st.com/s/question/0D50X00009sWUBjSAO/use-can-in-stm32f042f4-can-not-config-in-cubemx