cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401 USB CDC Middleware and PA10 as GPIO

ACome
Associate

Dear all,

I've been struggling trying to configure an F401 device in USB CDC mode and at the same time use PA10 as GPIO. For all the configuration I used the STM32CubeIDE and everything in my project is working fine except this part. IDE does not complain when USB is configured as CDC and PA10 as output.

It looks to me than when PA11/PA12 are configured as alternate function (USB OTG) PA10 also follows them.

I am sure there is a workaround since in the bootloader it is used as UART1, but I did not manage to get it working.

Any suggestion?

1 REPLY 1

Read out and check GPIOA registers with regard to PA10.

JW