Skip to main content
tdarlic
Associate II
December 10, 2018
Solved

How to enable CAN on STM32F042F4P6 CubeMX?

  • December 10, 2018
  • 1 reply
  • 686 views

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.
Best answer by tdarlic

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
tdarlicAuthorAnswer
Associate II
December 10, 2018

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