tutorials/http/uart-bridge/esp32/README.md
You can flash a pre-built firmware to the ESP32 device using the following instructions:
cd PATH/TO/esputil to go into the unzipped esputil/ directory. After that, run
the following command (change COMPORT to the board's serial port):| OS | Command |
|---|---|
| Windows | <pre><code class="language-bash">.\windows\esputil -p COMPORT flash uart-bridge.hex</code></pre> |
| Linux | <pre><code class="language-bash">./linux/esputil -p COMPORT flash uart-bridge.hex</pre> |
| MacOS | <pre><code class="language-bash">./macos/esputil -p COMPORT flash uart-bridge.hex</code></pre> |
Next step is to monitor and follow the instructions.
esputil -p COMPORT monitor
Note: if monitor command shows constant restarts, the flash parameters
settings can be wrong. Reflash your device with -fp ... flash parameters
settings. For example, WROOM-32 based boards use -fp 0x220:
esputil -p COMPORT -fp 0x220 flash uart-bridge.hex
For more on possible options for flash parameters, see https://github.com/cpq/esputil#flash-parameters