Question
AFR settings for USB pins using CubeMX
Posted on November 10, 2014 at 19:46
I am using the CubeMX interface to setup MSC class USB device software for my STM32L1 device.
I notice that as part of USB initialization nowhere in the code are the GPIO AFR settings corresponding to USB DM and USB DP pins (PA11 & PA12) being set. Isn't this an issue? The reset value for the AFR registers are listed in the datasheet as 0, which certainly isn't associating these pins with USB. Thanks Ben #usb-afr-gpio