cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Nucleo-u5a5zj USB host

GhostVVS
Associate II

I have a Nucleo-u5a5zj board and I want to connect a NewLand FM430 scanner that works as a virtual COM port. In the example, I only saw the USB CDC ACM device, but I only need the configuration for the host. Can you give me more explanation of what I should do? I tried using sources from other examples like USBX USB_HOST_CDC_ACM for STM32H7 and didn't get good results. Maybe someone can find me an example of how I can get a USB host in this configuration. Early thanks.

PS. I am trying to use AzureRTOS (ThreadX) and USBX

7 REPLIES 7
AScha.3
Chief II

Maybe look at Tomasz USB host on Nucleo-u5a5 , how to do;  and adapt for CDC .

USB-C Host with MSC

https://github.com/tdjastrzebski/Nucleo-U5A5ZJ-USBX

If you feel a post has answered your question, please click "Accept as Solution".

What should I do to adapt for CDC?

Mohamed_AYED
Associate III

Hi @GhostVVS

Can you please enumerate your device with windows and share with us the descriptor of your device to see exactly what class and other informations to help you.

I recommande your thesycon tools or an usb analyzer.

https://www.thesycon.de/eng/usb_descriptordumper.shtml

Regards.

I don't use Windows.

and didn't get good results

What you got ? 

If you feel a post has answered your question, please click "Accept as Solution".

Do, do you have an USB trace that you can share with us or more information?? 

Nothing worked as I planned) I connected the scanner which is a VCP device and after trying to read the code it should return a ribbon with a link to the site (this is how it works when I connect it to a PC and open a connection in a terminal program). I thought that probably not everything is so simple and you can't just use the sources from the example for the host on the H7 series microcontroller