2021-01-21 07:37 PM
mcu: STM32H743IITx
hardware: USB_HS1 + usb3300 phy
software: usb host mode with all classes
All code are generated by cubemx 6.1.1, and I trace the usb data on wire with usb data analyzer.
if OTG's internal DMA disabled, full speed usb device works ok, but high speed device can not transfer setup command while enumeration.
if OTG's internal DMA enabled, all full and high speed devices can not enumertaion.
Are there some success cases?
Solved! Go to Solution.
2021-04-03 03:05 AM
Hi,
I'm back after finished another project and waiting for a new layout. And I'm lucky this time, the new board works ok on high speed usb phy. Nothing is wrong in software but layout problem.
Thanks for all friends trying to help me.
2021-01-26 05:52 AM
Hi shark,
When DMA is disabled, normally there is no restrictions for the memory range used and you have to get your USB Host working. You can refer to the STM32CubeH7 for USB applications made by ST. I hope this can help solve your first issue.
For your second point, when enabling DMA you have to make sure that you are putting your code in the memory range accessible by DMA. Since for H7 products, the default memory range used while generation which is DTCM is not accessible by DMA USB. You can refer to this FAQ for more details.
Best Regards,
Ons.
2021-02-05 11:39 PM
I study it for several days, the problem has nothing to do with dma. I disabled the dma and insert a high speed usb device, the program always get USB_OTG_HCINT_TXERR in isr code when sending 8 byte setup command.
The existing FATFS demo in external-phy mode for STM32H743I-EVAL get the same error.
2021-03-02 01:32 AM
Hi shark,
Can you give more details abot your issue to help us find a solution for you, and report it internally if necessary:
Best Regards,
Ons.
2021-04-02 03:21 AM
Hi shark,
Any updates ?
Best Regards,
Ons.
2021-04-03 03:05 AM
Hi,
I'm back after finished another project and waiting for a new layout. And I'm lucky this time, the new board works ok on high speed usb phy. Nothing is wrong in software but layout problem.
Thanks for all friends trying to help me.