Does the Raspberry Pi Pico (RP2040) PIO USB work in device mode? #2754
-
@hathach Have you ever tested the PIO USB code for USB Device mode ( I am trying to build a USB device that will let me inject data toggle errors. I thought the Pico PIO USB might be a good way to do this because I have access to the low level bus behavior in software. I have tried to build the The beginning of the trace I get using usb-sniffer-lite shows the host repeatedly trying to enumerate the device, but the device does not respond.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
it should be tested when adding pio_usb, but lots of changes and I haven't tested it since then. device with pio is much harder to work with, since we have to response within the strict timing. While in host we are the one controlling the timing (SOF, token in/out). There is no wonder if that didn't work right away. I have no time to fix this, since it has limited usage for me. Maybe you can go back to code (and pio-usb commit) where PR is merged to get it running (but it may still have some hippcup though) |
Beta Was this translation helpful? Give feedback.
-
Further notes: One problem is that 0.6.0 release of Pico PIO USB. The |
Beta Was this translation helpful? Give feedback.
-
@rppicomidi I possibly found the root cause for 0.6.0 -Os issue, sekigon-gonnoc/Pico-PIO-USB#131 |
Beta Was this translation helpful? Give feedback.
-
Thank you, @hathach! Nice job finding it. |
Beta Was this translation helpful? Give feedback.
it should be tested when adding pio_usb, but lots of changes and I haven't tested it since then. device with pio is much harder to work with, since we have to response within the strict timing. While in host we are the one controlling the timing (SOF, token in/out). There is no wonder if that didn't work right away.
I have no time to fix this, since it has limited usage for me. Maybe you can go back to code (and pio-usb commit) where PR is merged to get it running (but it may still have some hippcup though)