Skip to content

Search the documentation

Kit
Firmware

Flashing firmware

Flashing puts firmware on the robot’s board. You do it to update a robot, or to move a robot from firmware 2.x to 3.0. Which version means what is on Firmware versions.

There are three ways:

Way Where Needs
MoBot Flash in the browser flash.mobot.dz Chrome or Edge, a MoBot account
MoBot Flash on the desktop The MoBot Flash app A MoBot account, or a firmware .bin file from your computer
From the IDE Device ▸ Flash Firmware in the Blocks editor A connected robot, a MoBot account, an internet connection
  • Use a data USB cable, and connect the robot to the computer. See Connect your robot.
  • Close any other program that uses the robot’s USB port, such as a serial monitor or the IDE.
  • Do not unplug the robot while it is flashing.
  1. Open flash.mobot.dz in Chrome or Edge. In another browser the page says “Browser Not Supported”, because flashing needs Web Serial, the part of a browser that lets a web page talk to a USB device.
  2. Sign in. Until you do, Connect is greyed out and the big button says Sign in to Flash.
  3. Press Connect and choose the robot’s port in the list the browser shows. The tool detects the chip and shows Connected — and the chip. If it recognises your robot, it picks the product for you.
  4. Choose the product, if there is more than one. If the product has more than one hardware revision, choose the one that is printed on your board.
  5. Choose the Version. The tool offers the versions that are published for your robot, and it preselects one.
  6. Read the line that says what it will write. It names the model, the version and the revision.
  7. Press Flash Firmware.
  8. Watch the steps: Connect, Detect, Download, Erase, Write, Verify. The tool downloads and checks every part of the firmware before it erases anything. If a part fails the check, your robot is left as it was.
  9. When it says Flash complete, the robot has been reset. It starts on the new firmware.

Download MoBot Flash for Windows, macOS or Linux from the Software page of mobot.dz. The app has two tabs.

Official firmware. Sign in with your MoBot account. Press Connect, which scans the ports and lets you pick one. Choose your kit and the Version, then press Flash Firmware. Before it writes anything, the app checks the size and the checksum of the firmware. The checksum is a number that shows the file was not damaged on the way. When the firmware is a complete image, it tells you: “This target erases the whole chip — a WiFi-provisioned board will need setting up again in the app.”

Local .bin file. You do not need an account. Choose a firmware .bin file on your computer, and set the Chip and the Offset. The offset is the place in the flash memory where the file is written. The two pairs that MoBot uses are:

Board Chip Offset
Smart Car, Mini ESP32 0x1000
Smart Home ESP32-S3 0x0

The name of a MoBot firmware file also says the chip and the offset. For example, a file that ends in -esp32-0x1000.bin is for a robot, and one that ends in -esp32s3-0x0.bin is for a Smart Home. Flashing a file with the wrong chip or offset can leave a board that boots to nothing, so check both.

In the web IDE or the desktop IDE, open the Blocks editor and connect the robot. Choose Device ▸ Flash Firmware. Pick the Revision, if the product has more than one, and the Version, then press Flash Firmware. If there is no connection to the robot, the window says so, and you connect first. The steps are Downloading, Connecting, Writing and Resetting.

This way writes the firmware without erasing the whole memory. Your program, the robot’s name and its mode should stay, but save your program on your computer first, to be safe. The menu item is not there in the Code editor, and not while the IDE is linked to the simulator.

  • A robot that you flash from 2.x to 3.0 now uses the 3.0 names. Your old Python programs need the new names. See Firmware versions.
  • A Smart Home needs its Wi-Fi set up again in the app if you used MoBot Flash.
  • Check the version in the app’s Device screen, or in the IDE.
  • No port, or the chip is not detected. Use a data cable. If your board has a button marked BOOT, you can hold it while you press Connect, then let it go. That is the flash tool’s own advice for a chip it cannot detect.
  • The port is in use. Close the other program that uses it, and try again.
  • The write or the erase failed. Unplug the robot, plug it in again, and try again.

More messages and what to do are on Troubleshooting.