Reflash ESP32 on Mosaic X5

Hi @Agcopter ,

The RTK mosaic-X5 Repo contains the full firmware source code and the compiled binary for the ESP32.

On a Windows PC:

Download the RTK mosaic-X5 repo as a Zip file:

https://github.com/sparkfun/SparkFun_RTK_mosaic-X5/archive/refs/heads/main.zip

Unzip the Zip file (Extract All)

Navigate into the Firmware \ RTK_mosaic-X5_Firmware sub-folder

Connect the RTK mosaic-X5 “CONFIG ESP32” port to your PC using a USB-C cable. It should appear in Device Manager as a CH340 COM port.

Run ESP32_FLASH_ERASE.bat to completely clear the ESP32 memory. The .bat file should find the COM port number for you. If you need to run it manually, use the following replacing COM1 with your COM port:

esptool.exe --chip esp32 -p COM1 -b 460800 erase_flash

Then run ESP32_FLASHER.bat to upload the firmware. If you need to run it manually, use:

esptool.exe --chip esp32 -p COM1 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 build\bootloader\bootloader.bin 0x10000 build\RTK_mosaic-X5_Firmware.bin 0x8000 build\partition_table\partition-table.bin

I hope this gets you going again. Let us know if you need more help.

Best wishes,
Paul

1 Like