Skip to content

turbo: SAMx5x boards loader enable native .mpy default - #11356

Open
mikeysklar wants to merge 1 commit into
adafruit:mainfrom
mikeysklar:load-native-samx5x
Open

turbo: SAMx5x boards loader enable native .mpy default#11356
mikeysklar wants to merge 1 commit into
adafruit:mainfrom
mikeysklar:load-native-samx5x

Conversation

@mikeysklar

Copy link
Copy Markdown
Collaborator

What

Enables the turbo loader (CIRCUITPY_LOAD_NATIVE) by default on SAMx5x.

32 of 42 boards fit. The other 10 opt out in mpconfigboard.mk.

Follow-up to #11332 (RP2) and #11355 (STM32F4).

Hardware tested

Metro M4 AirLift Lite

10.3.0-66-g55984e753c, which includes this commit.

Board vsum bytecode vsum viper .mpy pixels viper .mpy pixels @native .mpy
Metro M4 AirLift Lite 156.1 ms 10.1 ms 463 ms 3,570 ms

How I tested it

All 42 SAMx5x boards built in their tightest CI language with GCC 15.2.1.

Hardware used vsum.py from #11332 plus pixels.py.

Tightest boards with the loader Language Flash free with the loader
metro_m4_express fr 300 B
feather_m4_express fr 316 B
pygamer fr 1,892 B
pybadge fr 2,176 B
feather_m4_can fr 2,260 B
other 27 boards 3.9 to 631 KB
Opt-outs Language Over by with the loader
pewpew_m4 pl 20 B
monster_m4sk ja 48 B
mini_sam_m4 ja 156 B
hallowing_m4_express ja 484 B
uartlogger2 ja 1,284 B
openbook_m4 ja 1,556 B
silicognition-m4-shim ja 1,756 B
kicksat-sprite ru 1,804 B
circuitbrains_deluxe_m4 ja 1,856 B
datalore_ip_m4 ja 1,880 B

Scope

nRF52 and Xtensa loader support will be separate PRs. SAMD21 does not currently fit.

AI assistance

Claude Code was used.

Turn on CIRCUITPY_LOAD_NATIVE for SAMD51, SAME51 and SAME54 boards. It
fits on every board except these ten, which already have little flash to
spare and opt out in their own mpconfigboard.mk:

  circuitbrains_deluxe_m4, datalore_ip_m4, hallowing_m4_express,
  kicksat-sprite, mini_sam_m4, monster_m4sk, openbook_m4, pewpew_m4,
  silicognition-m4-shim, uartlogger2

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

@dhalbert dhalbert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I will work on some translation shrink stuff which may make a lot of these fit again.

@dhalbert

Copy link
Copy Markdown
Collaborator

merge conflicts

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