Reflash ESP32 on Mosaic X5

Hi, I was trying some things with the ESP32 using Arduino IDE and I think I kind of bricked it. I can still reach the Mosaic via Ip address but only the red power light is on and no other lights and the display is dark. I think I need to reflash the ESP32 with the SparkFun Firmware. Can someone please layout the most simple way for me to do that? I can do it on Mac or Windows. Is it possible to do it with Arduino IDE? Thanks in advance for any help you can give.

The firmware for the RTK mosaic-X5 is here - “RTK_mosaic-X5_firmware.bin” is what you need. Have a look at one folder up - it contains esptool and a batch file that should get you going. If you need more help, let us know.

1 Like

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