Skip to main content
harris
Associate II
June 25, 2018
Question

STM32F042F4 USB cannot be enabled within CubeMX

  • June 25, 2018
  • 3 replies
  • 5056 views
Posted on June 26, 2018 at 00:49

Hi,

I'm trying to enable the USB device peripheral for the STM32F042F4 in STM32CubeMX but it is greyed out and I don't seem to be able to enable it. I've checked the datasheet for this part and it seems to support USB so is there a reason for this?

0690X0000060BscQAE.png

#stm32f042f4 #usb #stm32cubemx
This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
June 25, 2018
Posted on June 26, 2018 at 01:06

You'd need to check for settings that remap the PA9/PA10 pins to PA11/PA12 (USB_DM/DP via SYSCFG_CFGR1)

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
T J
Senior III
June 25, 2018
Posted on June 26, 2018 at 01:54

Did you find it ?

under SYS you can swap the PA9/10 with PA11/12 as described by Clive.

then the USB selection becomes enabled.

harris
harrisAuthor
Associate II
June 26, 2018
Posted on June 26, 2018 at 09:19

I see now, that's sorted it! Thanks guys.