Question
STM32F4Discovery OTG HS in FS Mode with DMA does not enumerate
Posted on January 15, 2013 at 20:49
Hy STM32 friends,
I am trying to implement an isochronous USB Audio Device with the USB OTG HS Core on the STM32F4Discovery with embedded FS PHY in DMA mode. I recieve the setup telegram over EP0 with DMA but when i try to send the device descriptor the OTG HS core does not send the Data over USB (tested with Logic Analyser). If i switch of the DMA the device enumerates ok. I tested if there is enough free space in the EP0 TxFifo.txstatus.d32 = USB_OTG_READ_REG32( &pdev->regs.INEP_REGS[ep->num]->DTXFSTS) == 64<br>
<br>deptsiz.b.xfersize == 8
Does anybody have an idea?
The fifo configuration is as below:
#ifdef USB_OTG_HS_CORE<br>#define RX_FIFO_HS_SIZE 512<br>#define TX0_FIFO_HS_SIZE 64//128<br>#define TX1_FIFO_HS_SIZE 0//372<br>#define TX2_FIFO_HS_SIZE 372<br>#define TX3_FIFO_HS_SIZE 0<br>#define TX4_FIFO_HS_SIZE 0<br>#define TX5_FIFO_HS_SIZE 0<br>
Regards,
Hans Herbert
#stm32-usb-hs-embedded-phy-dma