-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware support for: ESP32-S3-USB-OTG #2
Comments
I’m a bit out of my depth here but I think the idea is that I would implement |
Hey @paulyoung, that sounds like an interesting device to try.
Yes, ideally that is all you need to do. In practice it may turn out to be hard or impossible -- in that case we would need to change the HostBus trait a bit. |
I took a peek at the docs for esp32-s3, unfortunately the registers aren't documented: When I wrote the code for the rp2040, the register docs were a huge help. This SVD file has a list of all the registers & their fields though, so that can be a start: https://raw.githubusercontent.com/esp-rs/esp-pacs/main/esp32s3/svd/esp32s3.base.svd What I would do is go through the registers, and try to guess what they might do, skipping those where I have no clue. Like this one, I guess could mean "Embedded Host ENable"? 🤷 Or it might not. Then I would write a sketch to log some register fields to see if they change, and maybe mess with some of them to see if it changes anything:
There's a bunch of registers that start with "HC", maybe that means "Host Controller"? Another good source could be the esp-hal code for device mode support in embassy: If nothing else, those sources can tell you what not do to as a host, like force device mode. For the record, I'm out of my depth here too 😄 |
I specifically have a ESP32-S3-USB-OTG board that I would like to use as a USB host.
I think
esp-rs/esp-idf-sys
and these USB host examples could be useful.The text was updated successfully, but these errors were encountered: