arch/arm/src/stm32h5: Add support for USB host#18748
arch/arm/src/stm32h5: Add support for USB host#18748xiaoxiang781216 merged 2 commits intoapache:masterfrom
Conversation
81aa990 to
22199fe
Compare
|
Hi @dlizewski, please align the CMake with the Make file. |
22199fe to
627f18f
Compare
|
Updated to include missing Cmake |
acassis
left a comment
There was a problem hiding this comment.
@dlizewski Amazing work! Kudos!!! Please update the Documentation to include info about USBHost support: https://nuttx.apache.org/docs/latest/platforms/arm/stm32u5/index.html
Suggestion: please copy the Peripheral Support table from https://nuttx.apache.org/docs/latest/platforms/arm/stm32f7/index.html to use as reference
Added stm32_usbdrdhost.c which adds USB FS host mode support using the embedded PHY. Added Kconfig to select Device or Host. Example config nucleo-h563zi:usbmsc added to test functionality Signed-off-by: daniellizewski <daniellizewski@geotab.com>
627f18f to
9aac578
Compare
Added missing #ifdef to avoid compiler warning when DMA is not used. Signed-off-by: daniellizewski <daniellizewski@geotab.com>
9aac578 to
b394769
Compare
|
@acassis updated to include doc. I updated the peripheral table and added a small section on the prerequisites of using USB HOST. I also added another commit adding an ifdef around "stm32serial_dmarxcallback" in stm32_serial.c |
Added stm32_usbdrdhost.c which adds USB FS host mode support using the embedded PHY. Added Kconfig to select Device or Host.
Example config nucleo-h563zi:usbmsc added to test functionality
Note: Please adhere to Contributing Guidelines.
Summary
Impact
Testing
I have provided a test config nucleo-h563zi:usbmsc which enables the USB host with the mass storage class.
The attached logs shows a Nucleo-h563zi with a USB thumb drive connected and full USB_INFO prints.
In the logs I loaded NSH, mounted the drive, and printed a file. Commands run:
The example correctly prints the contents of the file.
stm32h5_usblogs.txt
I have also tested on a custom board connected to a USB CDC-ECM device.
I am splitting the USB CDC-ECM to another ticket.