cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F042F4 USB cannot be enabled within CubeMX

harris
Associate II
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
3 REPLIES 3
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 Venmo Up vote any posts that you find helpful, it shows what's working..
T J
Lead
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
Associate II
Posted on June 26, 2018 at 09:19

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