RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2
Posted: Wed Jan 27, 2016 2:55 pm
It uses OTG1 (pins PA9-12), which is incorrect. OTG2 (pins PB12-15) should be used instead.
Fix:
1. In mcuconf.h enable STM32_USB_USE_OTG2 instead of STM32_USB_USE_OTG1.
2. In usbcfg.c replace all occurrences of USBD1 with USBD2.
BTW, the same demo in ChibiOS 3.0.5 correctly uses OTG2.
Fix:
1. In mcuconf.h enable STM32_USB_USE_OTG2 instead of STM32_USB_USE_OTG1.
2. In usbcfg.c replace all occurrences of USBD1 with USBD2.
BTW, the same demo in ChibiOS 3.0.5 correctly uses OTG2.