Simple flash and wifi config tool for the ESP32
Uses the ESPtool from Espressif under the hood with all required settings by default. It will look for the firmware.bin, partitions.bin and bootloader.bin files in the current directory, by creating a zip file that includes your bin files and the flasher executable for your Github Releases will give the user a convenient way to flash and setup the ESP with their Wifi credentials.
Flash!
esptool.py --port <COM#> --baud "115200 --before default_reset --after hard_reset write_flash --flash_mode qio --flash_size detect 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin
Erase!
esptool.py --port <COM#> --baud "115200 --before default_reset --after hard_reset erase_flash
Setup Wifi;
Sends WIFI configuration to flashed device via serial.
The program will send a JSON message to the device with the SSID and WIFI Password entered by the user when they enter and save Setup WIFI. When the ESP32 device is in AP mode, your ESP device must implemented the code to receive the wifi info JSON message and configure Wifi.
example JSON message from flasher;
{"ssid":"MyRouterSSID", "password":"myWifiPassword"}
Once received, the device should connect to wifi using these credentials and return the following JSON message back to the flasher.
example JSON message from ESP32 device;
{"IP":"192.168.0.20", "ApPassword":"DeviceAPPassword"}
Once the flasher receives the response from the device, it will open the default browser at the given IP address to allow the user to complete the device setup. The device's AP password can be displayed to the user in the flasher log window.