Cannot send BULK vendor response (rp2040) #706
Unanswered
GiantNuker
asked this question in
Q&A
Replies: 1 comment 6 replies
-
|
try to build tinyusb with CFG_TUSB_DEBUG=2 and have your printf() output to uart, then post the tinyusb debug log here. I could have a hint where thing failed. Also make sure you build with tinyusb latest code, there are lots of fixes lately for rp2040 port. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to send a bulk transfer in response to a control transfer. So far I've managed to send and recieve a control and bulk transfer from the host, however I cannot send the transfer from the device.
In the following example, The
Bulk xferline should sayOKand theWrite bufferline should be back at64on the second time i runrefresh.simplescreenrecorder-2021-03-04_17.48.08.mp4
From what I can tell, The transfer never happens, as the write buffer size dosen't return to
64. Since usb is based on the host polling the device, first I tried running something else on the device, with very similar host code. It worked perfectly fine using The Pi Pico low level usb example when I sent a 64 byte array to it, and it repeated it back. However when I usedtud_vendor_n_write_strI wasn't able to recieve the bulk response.The relevant host code:
The relevant device code:
Anyone have a clue?
I looked at the webusb example and picoprobe, which both appear to use it exactly the same way without any issues.
Beta Was this translation helpful? Give feedback.
All reactions