Skip to content

Tinygo flash does not reset c3 board #60

Description

@soypat

Some small programs will not trigger a reset of the board writing "wait for usb download" or just not write anything at all as seen in TinyGo hack sesssion :/

This is confusing since sometimes it does reset the board

tinygo flash -target=xiao-esp32c3 -monitor ./step1
Connecting to /dev/ttyACM0...
Connected.
Detected chip: ESP32-C3
Loading stub loader...
Stub running.
Erasing flash...
[##################################################]  100.0%
Flash erased.
Attaching SPI flash...
Configuring flash size...
Auto-detected flash size: 4MB
Flash params set to 0x022F
SHA digest in image updated
Attaching SPI flash...
Switching to 460800 baud...
Running at 460800 baud.
Compressed 70496 bytes to 51289 (73%)
Flash begin: 51289 bytes at 0x00000000 (4 compressed blocks)
[##################################################]  100.0%
Flash complete. Verifying...
MD5 verified: c98b40b1f7fd7c7e4cf42d59235cdccd

Device reset.
Connected to /dev/ttyACM0. Press Ctrl-C to exit.
wait usb download

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