mongoose/examples/esp32/uart-bridge
2024-04-19 10:47:16 -03:00
..
main move Mongoose options to mongoose_config 2024-04-19 10:47:16 -03:00
CMakeLists.txt Add examples/esp32/uart-bridge 2022-06-19 18:27:37 +01:00
make Add examples/esp32/uart-bridge 2022-06-19 18:27:37 +01:00
Makefile Fix for new mg_iobuf API 2022-08-02 14:46:27 -03:00
partitions.csv Add examples/esp32/uart-bridge 2022-06-19 18:27:37 +01:00
README.md update 2023-03-08 11:44:34 -03:00
sdkconfig.defaults Add examples/esp32/uart-bridge 2022-06-19 18:27:37 +01:00

A UART to network bridge for ESP32

Flash pre-built firmware

You can flash a pre-built firmware to the ESP32 device using the following instructions:

  1. Connect your ESP32 device to the workstation. It should be accessible via a serial port
  2. Download and unzip ESP32 flashing tool from https://mongoose.ws/downloads/esputil.zip
  3. Download a prebuilt firmware https://mongoose.ws/downloads/uart-bridge.hex into the unzipped directory
  4. Start command prompt (or terminal on Mac/Linux). Run 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
.\windows\esputil -p COMPORT flash uart-bridge.hex
Linux
./linux/esputil -p COMPORT flash uart-bridge.hex
MacOS
./macos/esputil -p COMPORT flash uart-bridge.hex

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