Just started using a dev board for the esp32 and erased its flash. Then flashed it using the following command:
- esptool.py --port COM5 --baud 115200 write_flash --flash_size=detect 0 pathToYourFile/binaryFile
Afterwards connected it via Putty and got the following, just after erasing the flash and then flashing the esp32:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
Don't know why I get this error, help please.
Help with ESP32 micropython flashing!
Re: Help with ESP32 micropython flashing!
It depends a little on which board you're using but changing the '0' to '0x1000' (start of firmware address) is probably the main argument that looks incorrect. You may also need to add "--chip esp32" too, I can't recall if esptool detects the chipset.
This post covers, with a little more detail, how to write firmware for a handful of the Espressif boards, the pertinent part for the ESP32 is:
Hope that helps!
This post covers, with a little more detail, how to write firmware for a handful of the Espressif boards, the pertinent part for the ESP32 is:
Code: Select all
esptool.py --chip esp32 -p $(PORT) --baud $(BAUD) write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 $(MICROPYTHON_BIN)
Re: Help with ESP32 micropython flashing!
I wrote instructions on flashing M5Stack few days ago. TL;DR try erasing flash first and lower baud rate.
Code: Select all
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 --after no_reset erase_flash
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 esp32-20180127-v1.9.3-240-ga275cb0f.bin