8 years, 3 months ago.

USB Device Library support for STM32F429 Disco

Is someone able to use the USB Device Library for the STM32F429 Disco board? As far as I see, the target type ist added, but the connection to the user USB connector is not yet implemented correct. Any hints to run the lib?

Question relating to:

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

1 Answer

8 years, 1 month ago.

The base address for the USB_FS peripheral seems to be wrong. Check USBRegs_STM32.h and replace the #define OTG_FS_BASE (AHB2PERIPH_BASE + 0x0000) with something like #define OTG_FS_BASE ((uint32_t )0x50000000U) or #define OTG_HS_BASE ((uint32_t )0x40040000U). I haven't tested this yet, make this change and try again. Or you may use the USB-VCP in the debugger. Simply use USART2.