Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4825

General • Minimal USB Host and USB Device example, without TinyUSB

$
0
0
I need the Raspberry Pi Pico/W to operate as a USB Host so that I can connect it to a third party USB Device (which happens to be an FTDI 232 chip) that operates like a USB CDC device. We've made a lot of progress using TinyUSB for this, but its configuration has to be defined up front and any changes require the code to be recompiled.

In looking at options, I cannot find a good USB Host library for the Pico/W boards that does not use TinyUSB. I see there is an example in the pico-examples repository that shows how to implement USB Device support using low-level USB support, without using any TinyUSB at all. Here's a link to that repository:

https://github.com/raspberrypi/pico-exa ... v_lowlevel

This USB Device example is great because the code uses vanilla pico-sdk code and is purely interrupt driven.

I would like to see an example of something very similar to for USB Host, that also does not use TinyUSB.

I've taken the code from dev_lowlevel (above) and have tried to shrink it down to the barebones and have called it dodo.c, with "d" for device. I'd like to create a minimal version for USB Host (called hoho.c, with "h" for host). I've only started with the device side (dodo) for now, but would like to create the host side (hoho) next.

Is there anyone with USB Host experience that could help to create a working minimal non-TinyUSB USB Host example?

The repo is here: https://github.com/shreeve/pico-usb

Anyone able to offer some assistance?

Thanks!

Statistics: Posted by shreeve — Wed Jan 17, 2024 4:08 am



Viewing all articles
Browse latest Browse all 4825

Trending Articles