The STM32F429 Discovery kit (STM32F429I-DISC1) allows users to easily develop applications with the STM32F429 high-performance MCUs with ARM®Cortex®-M4 core.

USB FS/HS

22 May 2018

Dear,

I found this code, https://github.com/ARM-software/mbed-beetle/blob/master/libraries/USBDevice/USBDevice/USBHAL_STM32F4.cpp

In the code, the pin of USB_OTG_* is defined like this, pin_function(PA_8, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG_FS)); pin_function(PA_9, STM_PIN_DATA(STM_MODE_INPUT, GPIO_PULLDOWN, GPIO_AF10_OTG_FS)); pin_function(PA_10, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_PULLUP, GPIO_AF10_OTG_FS)); pin_function(PA_11, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG_FS)); pin_function(PA_12, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG_FS));

But, the pinmap of DISCO-F429ZI shows /USB_OTG_HS GPIO Configuration PB12 --> USB_OTG_HS_ID PB13 --> USB_OTG_HS_VBUS PB14 --> USB_OTG_HS_DM PB15 --> USB_OTG_HS_DP

  • /

I would like to USB serial code in mbed environment. How can I modify ?

From J.Dan