511 B
511 B
This procedure will remove the default micropython environment. Maybe you can undo that, but I have not tried that.
-
esptool.py erase_flash
-
pio run -e SHA2017-badge
-
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 ./.pio/build/ESP32-wemos/bootloader.bin
-
pio run -e SHA2017-badge -t upload
After this, you can connect a serial terminal to /dev/ttyUSB0 at 115k2 bps.