Skip to content

Stop printing the MAC address in boot_out.txt on Pico W boards - #11936

Merged
dhalbert merged 2 commits into
adafruit:mainfrom
mikeysklar:rp2-drop-boot-mac
Nov 20, 2026
Merged

dhalbert merged 2 commits into
adafruit:mainfrom
mikeysklar:rp2-drop-boot-mac

Conversation

@mikeysklar

Copy link
Copy Markdown
Collaborator

What

Pico W boards no longer print a MAC line in boot_out.txt.

Why

The WiFi chip can still be off when that line is written, so it showed all zeros (#10777).

This undoes #11890, which turned the chip on early and cost about half a second of boot time.

Tested

Pico 2 W running the ide_tudelft_realpicoexpander build, no WiFi in settings.toml, 10 cold boots each. boot.py prints supervisor.ticks_ms().

Build MAC line Reached boot.py wifi.radio.mac_address
main 10/10 1766 ms correct
this PR 0/10 1207 ms correct

Pico W, raspberry_pi_pico_w build, WiFi in settings.toml, 5 cold boots: no MAC line, correct radio MAC, joined WiFi 5/5.

Not tested: other CYW43 boards.

AI assisted (Claude). Test runs and results checked by me on the boards.

Fixes #10777

🤖 Generated with Claude Code

mikeysklar and others added 2 commits November 20, 2026 12:52
…t-mac"

This reverts commit 173d22c, reversing
changes made to 0dcb267.

Powering up the CYW43 just to read its MAC added ~560 ms of boot time
and left the chip powered on boards whose status LED is not on CYW0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CYW43 may not be powered up yet when boot_out.txt is written, so
the MAC can read as all zeros. Drop the line instead of powering the
chip up early. Fixes adafruit#10777.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mikeysklar

Copy link
Copy Markdown
Collaborator Author

@dhalbert ready for review. This backs out #11890 and drops the MAC line on Pico W boards, as you suggested there.

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

I think this is the right thing to do. Thanks.

@Jerzeek The MAC address is easily available later, but putting it in boot_out.txt lengthens the board start-up time, so I don't think it is such a great idea. We are only doing this on co-processor boards, where we have to start the co-processor to get the MAC address.

@dhalbert
dhalbert merged commit 1e9c567 into adafruit:main Nov 20, 2026
171 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.

No MAC address in boot_out.txt

2 participants