cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable CAN on STM32F042F4P6 CubeMX?

tdarlic
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
tdarlic
Associate II

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

View solution in original post

1 REPLY 1
tdarlic
Associate II

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