Skip to content

esp32s3 large modules/packages boot error #5876

Open

Description

@mikonova

It seems like calls to complex functions like

http.ListenAndServe(port, nil)

can cause a booting error, even though tinygo flashes the board without problems:

sudo tinygo flash -target=esp32s3-generic -opt=z -panic=print .
Connecting to /dev/ttyACM0...
Connected.
Detected chip: ESP32-S3
USB-JTAG/Serial interface detected, disabling watchdogs
Loading stub loader...
Stub running.
Erasing flash...
[##################################################]  100.0%
Flash erased.
Attaching SPI flash...
Configuring flash size...
Auto-detected flash size: 16MB
Flash params set to 0x024F
SHA digest in image updated
Attaching SPI flash...
Switching to 460800 baud...
Running at 460800 baud.
Compressed 1330096 bytes to 825068 (62%)
Flash begin: 825068 bytes at 0x00000000 (51 compressed blocks)
[##################################################]  100.0%
Flash complete. Verifying...
MD5 verified: 87707f5a4c36cad2f053504402c8abcf

Device reset.

yet, when watching the serial port we can see:

[20:07:55.605] tio 3.9
[20:07:55.605] Press ctrl-t q to quit
[20:07:55.605] Connected to /dev/ttyACM0
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x7 (TG0WDT_SYS_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40043ac8
SPIWP:0xee
mode:DIO, clock div:1
load:0x3c000020,len:0x2fb20
load:0x3fc90ab0,len:0x8ffc
load:0x40389c00,len:0xb3ac
load:0x42043f00,len:0x100c88
Invalid image block, can't boot.
ets_main.c 329

and this endlessly repeats.
This seems to be relevant only to tinygo v0.43.0, as the previous version launches the same program without any problems.
For the context, i use the tinygo net/http stack, via netlink and netdev packages

Activity

  1. rdon-key commented on Oct 13, 2026

    @rdon-key
    Contributor

    If the generated binary is larger than about 1 MB, #5567 might fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions