mBlock and Arduino: upload errors and mBot fixes
Fix mBlock and Arduino upload errors on mBot: stk500_getsync(), a missing COM port, a reversed motor, a stuck ultrasonic sensor, and Linux permission denied.
Getting started
Home Assistant
Buying
Fix mBlock and Arduino upload errors on mBot: stk500_getsync(), a missing COM port, a reversed motor, a stuck ultrasonic sensor, and Linux permission denied.

This guide collects the error messages and symptoms you see most often when you upload an mBlock program to an mBot (or to an Arduino board / CyberPi). Each section shows difficulty, time, cost and tools before the steps.
Costs below stay in US dollars, as listed in this guide on 24 October 2026.
Related guides: install mBlock 5 on Windows, mBlock Bluetooth troubleshooting, and the wider error-code catalog.
Disclaimer: diagnostics and fixes here are for guidance only. Swapping RJ25/mBuild cables, batteries or USB work is your responsibility — power off, remove batteries or unplug USB before changing a sensor. No mains (230 V) work applies to a battery/USB mBot, mBot2 or CyberPi. Robot Éducatif accepts no liability for misuse, voided warranty or damage. When unsure, contact Makeblock support.
If in doubt, contact Makeblock official support (support.makeblock.com) or the brand warranty service — do not open the main board (mCore, CyberPi) yourself.
Software setup, swapping a USB cable or an add-on sensor can be done at home. For defective or in-warranty hardware (hub, failed Shelly/Sonoff module, mCore board), use the manufacturer’s official warranty service — do not bypass it.
A filterable catalog sits on this page (device category, brand, product or model, error code or symptom, and a free-text search). It opens on educational robots. The five cases in the sections below are the main mBot and Arduino cards. Three further cards in that same robot category are written out here as well.
OSError ENOSPCSymptom: the firmware update is stuck. On the Makeblock forum, the usual cause is a full CyberPi storage.
What to do: delete unused CyberPi projects in mBlock, restore the factory firmware, then flash it again. Free disk space on the PC if the mBlock cache is full.
If in doubt, contact Makeblock official support (support.makeblock.com) or the brand warranty service — do not open the main board (mCore, CyberPi) yourself.
bossac upload errorSymptom: the upload fails in bossac mode. The IDE asks you to double-tap Reset to enter DFU (Device Firmware Update). A double-click on RESET does nothing useful, or the port is wrong, or the Renesas core is out of date.
What to do:
If in doubt, contact Makeblock official support (support.makeblock.com) or the brand warranty service — do not open the main board (mCore, CyberPi) yourself.
stk500_getsync()Symptom: the IDE upload reports stk500_getsync(): not in sync, resp=0x00.
What to do: close the serial monitor. Pick the correct COM port, and install the CH340 driver if the board is a clone. Press reset just before the upload. Try another cable or a rear USB port.
If in doubt, contact Makeblock official support (support.makeblock.com) or the brand warranty service — do not open the main board (mCore, CyberPi) yourself.
Symptom: at the end of the upload, mBlock or the Arduino IDE shows avrdude: stk500_getsync(): not in sync or “programmer not responding”.
Common causes: the wrong COM port is selected, the USB cable only charges (no data), another program is holding the port (the serial monitor is open), or the robot is off or the battery is low.
What to do:
Caution. An mCore board or a USB port damaged while under warranty: contact Makeblock support (support.makeblock.com). Do not open the mBot chassis to repair the main board yourself.
Symptom: no serial port in mBlock. The robot does not appear.
Windows 11: install the CH340/CP2102 driver for your board, and allow the installer in your antivirus. Unplug and plug back into a rear USB port on the PC.
macOS: grant USB permission to the browser if you use mBlock Web. In the native app, check Privacy → USB.
Chromebook: mBlock Web plus the extension. Not every model is supported. Prefer the Windows/macOS app for class.
Symptom: the robot goes backward when the program asks it to go forward.
What to do: in mBlock, reverse the speed value (negative) on the motor block in question, or swap the left and right motor connectors if you rewired them. Also check that the “motor” block really targets M1/M2 on your mBot revision.
Symptom: the distance variable stays at 0 or 400 (out of range) all the time.
What to do:
Caution. Replacing an RJ25 cable or a compatible ultrasonic sensor is fine to do yourself. A failed motor or mCore board: official Makeblock support only.
Add your user to the dialout group (sudo usermod -aG dialout $USER), log in again, and retry. Do not run mBlock as root.
Makeblock (mBot / mBlock)
Go further: first steps in mBlock, 10 free mBot projects, mBot vs mBot2.
Was this page helpful?
Thank you!
What should we improve?
Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.
Cookies and analytics
We use Google Analytics 4 to understand how the site is used (page views, navigation). It is only switched on if you accept. Declining does not stop you using the site. More: cookie settings and privacy policy (in French).