Page 1 of 1

STM32P407: usbStart() not working

Posted: Tue Dec 18, 2012 11:49 am
by jeremie.delaitre
Hi,

I'm trying to use the USB OTG (HS) of my Olimex STM32P407 board but calling usbStart(&USBD2, &myconf) never returns.

In otg_core_reset() (ChibiOS/os/hal/platforms/STM32/OTGv1/usb_lld.c, line 137), the core reset loop never ends:

Code: Select all

while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0)


Any idea?

(to be noted that I've modified the board to use SDIO instead of the SPI for the SDCard, but it doesn't seem to conflict with the USB OTG HS stuff)

Re: STM32P407: usbStart() not working

Posted: Tue Dec 18, 2012 11:55 am
by Giovanni
It could be something in the board configuration, the driver does not exit from the SW reset procedure, the OTG could be stuck because some signal. Verify on the board schematic if there is something conflicting with the HS port.

Giovanni

Re: STM32P407: usbStart() not working

Posted: Thu Jan 24, 2013 10:53 am
by jeremie.delaitre
Thank you for the hint, and sorry for the late response :)
I've finally got some time to work on this and the problem was elsewhere... I just forgot to initialize properly some event sources...