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

samx7x dcd: apply errata 2.20.4 workaround on high-speed detach

Open
#4,273 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start with src/portable/microchip/samx7x/dcd_samx7x.c, focusing on dcd_disconnect(), and check section 2.20.4 of errata DS80000767M for the exact workaround conditions. Determine whether disabling USBHS_CTRL.USBE after detach is required, then validate the behavior on a SAM E70 board; the issue notes that no board is available on the rig.

Written by the indexing model from the issue text.

Description

followup Prio 📌

SAM E70/S70/V70/V71 errata DS80000767M, section 2.20.4 (USBHS), describes a high-speed detach issue whose workaround is to disable the USBHS controller (USBHS_CTRL.USBE = 0) after a detach. src/portable/microchip/samx7x/dcd_samx7x.c dcd_disconnect() sets DEVCTRL.DETACH but leaves CTRL.USBE set.

Found during the #4028 co-fix review; deferred as a separate behaviour change. Check the erratum text and its exact conditions before changing the driver, then validate on a SAM E70 board (none on the rig).

Dominant language
C
Stars
7.2k
Forks
1.6k
Avg merge
1d 12h
Merged PRs (30d)
96

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 hathach/tinyusb

All issues in hathach/tinyusb

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.