Comments (9)
I'm not sure I follow, so pinging @hathach as he probably has a better understanding of what's going on.
from pico-examples.
I am having the same issue. Could you solve it? I have observed that when you flash the *.uf2 file present in pico-examples, it works just fine.
from pico-examples.
Huh? https://github.com/raspberrypi/pico-examples/search?q=dev_hid_generic_inout&type=code
😕
from pico-examples.
Huh? https://github.com/raspberrypi/pico-examples/search?q=dev_hid_generic_inout&type=code 😕
The link is broken. It says "We couldn’t find any code matching 'dev_hid_generic_inout' in [raspberrypi/pico-examples]"
from pico-examples.
Yeah, exactly. Could you explain where the dev_hid_generic_inout
you're talking about is located, because according to GitHub it's not in this repo? I'm also unclear what you mean by "I have observed that when you flash the *.uf2 file present in pico-examples, it works just fine." ?
from pico-examples.
I should have been more clear.
When you build the whole example directory, in the build directory of pico examples, the *.UF2 file of this particular example as well as other examples is built, as mentioned on the pico-examples github page in USB Device section:
Most of the USB device examples come directly from the TinyUSB device examples directory here. Those that are supported on RP2040 devices are automatically included as part of the pico-examples build as targets named tinyusb_dev_<example_name> e.g. https://github.com/hathach/tinyusb/tree/master/examples/device/hid_composite is built as tinyusb_dev_hid_composite
I flashed the tinyusb_dev_hid_generic_inout.uf2 file located at pico-examples\build\usb\device\tinyusb_device_examples\hid_generic_inout\ and it worked as expected with the python script that is provided with the example on TinyUSB's github page.
from pico-examples.
Ahh! Thanks for the extra explanation 👍
tinyusb_dev_hid_generic_inout comes from the tinyusb repo, so that's indeed why I couldn't find it in pico-examples
.
it worked as expected
That's great to hear!
So has this problem been solved, or could you explain what you meant with "I am having the same issue." ?
from pico-examples.
The problem is not solved yet.
When I copy the source code of the example from tinyUSB and keep other files like tusb_config.h, usb_descriptors.c and usb_descriptors.h 'as it is' as they are in the example code of dev_hid_composite(which also comes with pico-examples), I am having the issue where the python script will take the input, but it just hangs there. It won't loop back the sent string.
But the python script works fine when I simply flash the *.uf2 file which is built from TinyUSB source.
I thought there must be some USB driver issues (just a guess), so I tried it on Linux and the problem remained.
Also, when I copy paste the tusb_config.h file that comes with TinyUSB examples, I get errors in the macros.
from pico-examples.
I wish I had written more about this in-depth when I first posted about it, because now I remember nothing about the circumstances around it.
I'll see if I can once again reproduce it on my end.
from pico-examples.
Related Issues (20)
- LCD1602_I2C Example does not work HOT 26
- PicoW Peripheral Secure Connection HOT 7
- Make sure there's an example of using stdio_set_chars_available_callback HOT 2
- Flashing pico fails HOT 4
- Add example of using TinyUSB CDC with extra stdio_usb iface
- Modify the pio uart examples to use DMA HOT 1
- ping examples hardcode an IP address
- Recommended launch.json is slow to connect due to no "adapter speed" setting
- No key press detected for pending in [iperf server] example HOT 1
- stdio_usb input available callback can't call other stdio functions, and pico-examples iperf assumes it can. HOT 4
- UART RX Garbage data recived HOT 5
- Pico-W to Pico-W STALL while sending UDP HOT 2
- Bug in BME280 SPI example when reading compensation parameters for humidity HOT 3
- Out-of-Memory Errors When Publishing MQTT Messages HOT 1
- host_cdc_msc_hid: incorrect len parameter in tuh_hid_report_received_cb HOT 1
- Bug in pio/uart_rx /uart_rx_intr.c HOT 6
- ir_nec variable length commands HOT 8
- How to do multiple TLS requests with changing request string HOT 2
- Example of starting and stopping btstack needed
- What does example iperf.c HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-examples.