Skip to content

turbo mpy import fix for p4 - #11681

Merged
mikeysklar merged 5 commits into
adafruit:mainfrom
FoamyGuy:p4_turbo_module_fix
Oct 28, 2026
Merged

mikeysklar merged 5 commits into
adafruit:mainfrom
FoamyGuy:p4_turbo_module_fix

Conversation

@FoamyGuy

Copy link
Copy Markdown
Collaborator

Importing compiled turbo .mpy files on the Metro P4 is causing a hard fault.

This change fixes it and allows the modules to be imported and used successfully.

@tannewt
tannewt requested a review from mikeysklar October 28, 2026 16:22
@mikeysklar

Copy link
Copy Markdown
Collaborator

@FoamyGuy -

Looks safe. ESP32-P4 only effected.

Just running a test on my side to see if anything comes up.

@mikeysklar mikeysklar 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.

@FoamyGuy -

I tested this on a P4 GPIO.

It fixes the hard fault (which I was able to reproduce).

One small style issue.

#if preferred over #ifdef

Comment thread ports/espressif/supervisor/port.c Resolved
Comment thread ports/espressif/supervisor/port.c Resolved
Comment thread ports/espressif/supervisor/port.c Resolved
FoamyGuy and others added 3 commits October 28, 2026 14:14
if instead of ifdef

Co-authored-by: Mikey Sklar <mikeysklar@gmail.com>
if instead of ifdef

Co-authored-by: Mikey Sklar <mikeysklar@gmail.com>
if instead of ifdef

Co-authored-by: Mikey Sklar <mikeysklar@gmail.com>
@FoamyGuy

Copy link
Copy Markdown
Collaborator Author

Thank you! suggested changes are brought in with the latest commits.

@mikeysklar

Copy link
Copy Markdown
Collaborator

Retested latest commit on the P4 GPIO.

Looking good.

Thank you @FoamyGuy

@mikeysklar
mikeysklar merged commit d49d06c into adafruit:main Oct 28, 2026
287 checks passed
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