Can't upload code to Arduino


#1

I have successfully connected MBot via Bluetooth, but I am unable to upload to Arduino:

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
_ Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/_
_ Copyright © 2007-2009 Joerg Wunsch_

_ System wide configuration file is “C:\mBlock\Arduino\hardware\tools\avr/etc/avrdude.conf”_

_ Using Port : Makeblock_
_ Using Programmer : arduino_
_ Overriding Baud Rate : 115200_
avrdude: ser_open(): can’t open device “Makeblock”: The system cannot find the file specified.

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

As an alternative, I have already also tried with USB connection, no success either:
arduino can’t open device “\.\com5”

Any help will be greatly appreciated.

Thanks


#2

You need to connect through USB to upload a program. Read this page, especially the guide pdf the the tutorials: http://learn.makeblock.com/getting-started-programming-with-mblock/


#3

To add to @Andreas reply, the avrdude programmer is only available via USB. The WiFi and Bluetooth serial connections do not have access to it. With the USB connection, make sure that the status bar at the top of mBlock says that it is connected. It doesn’t do that automatically, so you’ll have to go into the Connect->Serial Port menu and select the COM port associated with the robot.

Hope this helps. :slight_smile:

Chuck


#4

Clarified, thanks