Cannot use isochronous endpoint with PluggableUSB.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from arduino/ArduinoCore-sam
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
arduino/ArduinoCore-sam#129 ·
-
Type: Bug USB: CDC serial
Difficulty 4/5 3-5 days Newbie friendliness 52/100
arduino/ArduinoCore-sam#153 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
arduino/ArduinoCore-sam#151 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
arduino/ArduinoCore-sam#147 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
arduino/ArduinoCore-sam#146 ·
All issues in arduino/ArduinoCore-sam
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
joleys/niko-home-control-II#321 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
stlink_probe._get_board_id() raises TypeError, not KeyError, when mbed.htm exists but has no TargetIDPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
problem
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Koenkk/zigbee2mqtt#33373 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 70/100
microsoft/cheriot-ibex#99 ·