RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
ADobrynin
Posts: 2
Joined: Wed Jan 27, 2016 2:47 pm

RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2

Post by ADobrynin »

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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2

Post by Giovanni »

Hi,

Thanks for finding, will be fixed in next release.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2

Post by Giovanni »

Hi,

Fixed in repository: https://sourceforge.net/p/chibios/bugs/703/

Giovanni
Post Reply