Pico-PIO-USB: PIO USB v0.6.0 no longer enumerates devices
After upgrading the PIO USB library to version 0.6.0 the callback for a HID device mounting (void tuh_hid_mount_cb) no longer works.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 16 (2 by maintainers)
I am experiencing something similar. I tried running the
capture_hid_reporton an “Adafruit RP2040 Feather with USB host” (so I had to adapt the pins to 16 and 17 and also add code to drive GPIO 18 high since that enables power on the DFP. With commit 0f747aaa0c16f750bdfa2ba37ec25d6c8e1bc117 the example works and the connected device (some USB RAW HID device that can be bought online) enumerates fine:However, with latest main (fe9133fc513b82cc3dc62c67cb51f2339cf29ef7) and exactly the same changes done by me, the enumeration fails:
Same results here: v0.5.3
v0.6.1 / master
@sekigon-gonnoc please can you reopen this issue?
@sekigon-gonnoc (with CC: to @hathach ) , is it possible to apply a local area “no-optimize” effect by using
#pragma GCC optimizefeature https://gcc.gnu.org/onlinedocs/gcc/Function-Specific-Option-Pragmas.html with the PIO USB library and/or Adafruit Tiny USB library while keeping the rest of source codes (a sketch, Arduino Core, other libraries) compiled with-Osflag ?In the Arduino IDE it’s under “Tools->Optimize”