Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cannot use isochronous endpoint with PluggableUSB.

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
embedded-iot

Research direction

Start in cores/arduino/USB/USBCore.cpp at USB_ISR and the call to UDD_InitEndpoints around line 784. Compare the EP_TYPE_ISOCHRONOUS_IN definition in system/libsam/include/uotghs_device.h, then reproduce the crash with a PluggableUSBModule endpoint using the 1024-byte setting. Done means the isochronous endpoint initializes and the program no longer crashes.

Written by the indexing model from the issue text.

Description

When I defined an endpoint to be EP_TYPE_ISOCHRONOUS_IN in the PluggableUSBModule constructor, I noticed that the program will crash in function USB_ISR when calls function UDD_InitEndpoints at line 784. However, in the definition of EP_TYPE_ISOCHRONOUS_IN if I change UOTGHS_DEVEPTCFG_EPSIZE_1024_BYTE to UOTGHS_DEVEPTCFG_EPSIZE_512_BYTE then the program runs fine. I could not figure out why.

Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from arduino/ArduinoCore-sam

All issues in arduino/ArduinoCore-sam

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.