Skip to content
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
@matemaciek

Description

@matemaciek

Set up
[Mandatory] Provide details of your setup help us to reproduce the issue as quick as possible

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions