This repository was archived by the owner on Dec 11, 2021. It is now read-only.
This repository was archived by the owner on Dec 11, 2021. It is now read-only.
Infinite loop when trying Pi Pico example host_hid
and USB dongle from Logitech K400r #4
Closed
Description
Set up
[Mandatory] Provide details of your setup help us to reproduce the issue as quick as possible
- PC OS : "Raspbian GNU/Linux 10 (buster)"@ Pi Zero W connected with SWD, compilation and gdb on OSX.
- Board : Pi Pico
- Firmware: https://github.com/raspberrypi/pico-examples/tree/master/usb/host/host_hid
Describe the bug
When running unmodified example it gets stuck - led stops blinking. There is a USB dongle from Logitech K400r connected via usb-otg adapter.
After some debugging I see that execution loops in lines https://github.com/raspberrypi/tinyusb/blob/pico/src/host/usbh.c#L911-L917 :
while( p_desc < _usbh_ctrl_buf + desc_cfg->wTotalLength )
{
// skip until we see interface descriptor
if ( TUSB_DESC_INTERFACE != tu_desc_type(p_desc) )
{
p_desc = tu_desc_next(p_desc); // skip the descriptor, increase by the descriptor's length
}else {...}
}
with p_desc
having constant value.
Metadata
Metadata
Assignees
Labels
No labels