← index #18642Issue #16457
Off-topic · high · value 3.126
QUERY · ISSUE

main.mpy not run on boot

openby ancebferopened 2026-01-05updated 2026-01-05
bug

Port, board and/or hardware

ESP32-S3-WROOM-1-N16R2

MicroPython version

MicroPython v1.27.0

Reproduction

  • Compile main.py with mpy-cross.
  • Upload main.mpy to ESP32 filesystem.
  • Reset the ESP32.

Expected behaviour

Run of main.mpy on boot.

Can it be a documentation issue instead of a bug?:

"To fully optimise flash usage and memory consumption, you can copy pre-compiled main.mpy and/or boot.mpy files to the filesystem, or even freeze them into the firmware build instead."

Observed behaviour

main.mpy is ignored and REPL is started.

"import main" in the REPL executes main.mpy right.

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

1.24 breaks USB OTG support

openby dcmcshanopened 2024-12-19updated 2025-01-07
bugport-esp32

Port, board and/or hardware

ESP32S3

MicroPython version

1.23 / 1.24

Reproduction

Instll kernel, reset, see if it boots

Expected behaviour

Boots

Observed behaviour

Loading firmware 1.24 does not boot using USB-OTG. I don't have serial port. Just USB-OTG, so need kernel to default that on.

Loading firmware 1.23 works as expected.

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied