Search found 2 matches

by ADobrynin
Thu May 05, 2016 1:51 pm
Forum: Bug Reports
Topic: Bug in os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c
Replies: 3
Views: 5520

Bug in os/hal/ports/STM32/STM32F4xx/hal_ext_lld_isr.c

Hi,

Code at lines 214-215 is

Code: Select all

  pr = EXTI->PR;
  pr = EXTI->IMR & (1U << 16);

should be

Code: Select all

  pr = EXTI->PR;
  pr &= EXTI->IMR & (1U << 16);


The same issue is at lines 233-234.

Alex.
by ADobrynin
Wed Jan 27, 2016 2:55 pm
Forum: STM32 Support
Topic: RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2
Replies: 2
Views: 2164

RT-STM32F429-DISCOVERY demo in ChibiOS 16.1.2

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.