Skip to content

SAME5x support - #585

Closed
crabel99 wants to merge 4 commits into
adafruit:masterfrom
crabel99:same5x-support
Closed

SAME5x support#585
crabel99 wants to merge 4 commits into
adafruit:masterfrom
crabel99:same5x-support

Conversation

@crabel99

Copy link
Copy Markdown

Summary

Adds TinyUSB support for SAME5x SAM E-series devices, while preserving the existing SAMD21 and SAMD51 paths.

This change:

  • maps SAME53/SAME54 Arduino core symbols to OPT_MCU_SAME5X
  • adds a private SAME5x USB support header for the SAMD TinyUSB driver
  • wires SAME5x USB interrupt handlers to TinyUSB
  • enables SAME5x device and host IRQ setup in the SAMD portable driver
  • uses TinyUSB TU_CHECK_MCU(...) checks consistently after CFG_TUSB_MCU is established
  • adjusts MAX3421 SAMD SPI clock limits so SAMD21 stays at 12 MHz while SAMD51/SAME5x can request 25 MHz

Limitations

This follows the SAMD51 USB peripheral shape with SAME5x register naming support. It has been hardware tested on SAME54, but not across every SAME5x package/variant.

Testing

  • Ran pre-commit run --all-files
  • Ran the TinyUSB Arduino CI board matrix locally in an isolated Arduino CLI environment
  • Ran SimIO SAME54 control hub hardware smoke tests:
    • TinyUSB device controller initializes
    • USB task runs

@crabel99 crabel99 changed the title Same5x support SAME5x support Jun 22, 2026
@crabel99

Copy link
Copy Markdown
Author

Superseded by #589, which carries the current SAME5x direct CDC branch and passes pre-commit plus the full platform matrix.

@crabel99 crabel99 closed this Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants