Skip to content
Discussion options

You must be logged in to vote

Starting boot.py with del machine will remove it. But of course, a command sequence like

sys.path=()
del machine
import machine

would restore the builtin machine module. The more robust way is to create a firmware without support for bootloader().

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@scruss
Comment options

scruss Feb 11, 2026
Author Sponsor

@scruss
Comment options

scruss Feb 14, 2026
Author Sponsor

@robert-hh
Comment options

Answer selected by scruss
Comment options

You must be logged in to vote
2 replies
@robert-hh
Comment options

@mungewell
Comment options

Comment options

You must be logged in to vote
2 replies
@scruss
Comment options

scruss Feb 11, 2026
Author Sponsor

@mungewell
Comment options

Comment options

You must be logged in to vote
1 reply
@scruss
Comment options

scruss Feb 11, 2026
Author Sponsor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants