OpenNuvoton / NuMicro-M4-Family

BSP / Sample code for NuMicro M4 MCUs
20 stars 7 forks source link

NuMaker-M471R1 in USB Host mode #2

Open jeromeDms opened 1 year ago

jeromeDms commented 1 year ago

Hi I'm trying to run your example code For USB Host, using the NuMaker-M471R1 evaluation board. But nothing works, no device detected. What are the required changes to do on the NuMaker-M471R1 board to be able to use the MCU in USB Host mode ? I soldered 0R resistors on R23 and R24 to enable the pull down resistors on D+/D- lines. Any other thing to change ? Crystal frequency for instance ? Is there any documentation somewhere relating to USB Host mode for the M471 series ? Thanks

FTHGL commented 3 months ago

Hi,

I'm experiencing a similar issue while working with the M480 series. I successfully compiled the example code without any errors, but when it comes to establishing a USB connection, the device is not detected by the chip. I suspect that the problem might be related to the USB descriptors not being correctly defined or configured.

I've tried rewriting the descriptor file, including the vendor ID and product ID, and configuring the USB memory properties for projects that involve USB storage. However, the result is still the same. Additionally, I am not receiving any interrupts from the USBD20_IRQHandler, which further complicates the issue.

Should the properties defined in the descriptor relate to the USB connection or the features of the chip itself? Or are there standard descriptors that should be used according to the specific features we're implementing, like a DFU, for example?

Have you managed to resolve your issue, or do you have any insights or recommendations on this matter?

Thanks!