Code upload fails for mBot 2


#1

Hello everyone,

For my mbot 2 , I want to upload a code but it gives me this failure code.

I have attached the code image as well, which should be fine.

What to do about it? I need your help, please.

Thanks in advance

Jay


#2

@jheerens Can you send a screenshot of the block code as well? I’d like to see it. :slight_smile:


#3

I only have the python code for now…


#4

Try uploading this block code on the mBot Neo device (not CyberPi). You can use mBlock PC or online versions:

image

Then, try uploading your Python code again, but with the mBot Neo device. If it still doesn’t work, make sure you leave the block code in the block area, but write your custom Python code. This has resolved issues for me before.


#5

What to do about this?


#6

It’s connected now, thanks a lot.


#7

No malfunction this time… though it stays at 0%. What to do? I followed your steps.


#8

@jheerens make sure that you are connected to the correct port. Sometimes you may have to click ‘Show all connectable devices’, and not all ‘devices’ shown are necessarily a mBlock device. Sometimes it’s an internal computer thing, in which case the upload will fail.

Also try it on different devices (for example Windows, online IDE, macOS).