Problem with uploading sketch to Arduino Micro

Hi,

I've searched the internet for a while now and have seen similar problems to mine. However, I haven't found a solution yet.

I am trying to upload a sketch to an Arduino Micro, and I am using Mac OS X with a USB-B connected to the Arduino Micro. When I tried uploading the sketch onto an Arduino Uno, the code worked perfectly, but when I try to upload it to the Arduino Micro, I get the error message:

processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected.  If it is correct, try pressing the board's reset button after initiating the upload.
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:152)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
	at processing.app.Sketch.upload(Sketch.java:1671)
	at processing.app.Sketch.exportApplet(Sketch.java:1627)
	at processing.app.Sketch.exportApplet(Sketch.java:1599)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
	at java.lang.Thread.run(Thread.java:680)

It says that it can't find a Leonardo even when I have "Arduino Micro" selected in Tools > Board. I have also tried uploading the code using different versions of the Arduino program as suggested in another thread (1.0.2, 1.0.3, 1.0.4, 1.0.5), but they all give the same error message.

Is there any way I can upload a sketch onto an Arduino Micro using what I have? If not, do I need a USBtinyISP or other accessories to do this?

Any help is appreciated. Thanks in advance!

yao_adrian:
It says that it can't find a Leonardo even when I have "Arduino Micro" selected in Tools > Board.

Okay, what serial port are you selecting?

It's funny because on the bottom right hand corner of the IDE window, it says:

"Arduino Micro on /dev/cu/usbmodem411"

However, in Tools > Serial Port, there are only the four options:

/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
/dev/tty.Bluetooth-PDA-Sync
/dev/cu.Bluetooth-PDA-Sync

I don't know how to detect a usbmodem port.

Thanks again!

That means the Mac isn't detecting the board. (usbmodem411 is probably left over from your Uno.)

Make sure your Micro-USB cable isn't a power-only cable, which is very common for the Micro-USBs.

It worked!

Thank you so much!

Hello,

I have the same problem with an Arduino micro.

So how can I understand if my usb is a power only cable?

Thank you

allamma:
So how can I understand if my usb is a power only cable?

Maybe you could tell by looking at the pins.

Same problem here. I am using Ubuntu 12.04 64bit, MiniUSB B Cable to connect Computer to Arduino Micro. The port is
/dev/ttyACM0
The Tools/Serial Port was greyed out. So I did the following,
sudo chmod a+rw /dev/ttyACM0
The menu gets activated, and I click upload arrow. The menu is again greyed out. Plus it says,

Couldn't find a Leonardo.....

Binary sketch size: 4,830 bytes (of a 28,672 byte maximum)
processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:153)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1671)
at processing.app.Sketch.exportApplet(Sketch.java:1627)
at processing.app.Sketch.exportApplet(Sketch.java:1599)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
at java.lang.Thread.run(Thread.java:701)

push
Exactly the same problem here:
The board is detected properly and it loads some stuff (LED blinking) but when finishing it spawns the error:
Couldn't find a Leonardo.....
Binary sketch size: 4,830 bytes (of a 28,672 byte maximum)
processing.app.debug.RunnerException: Couldn’t find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.

  • at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:153)*
  • at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)*
  • at processing.app.Sketch.upload(Sketch.java:1671)*
  • at processing.app.Sketch.exportApplet(Sketch.java:1627)*
  • at processing.app.Sketch.exportApplet(Sketch.java:1599)*
  • at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)*
  • at java.lang.Thread.run(Thread.java:701)*
    The usb cable connects is good.

Any ideas?

I can't upload sketch to micro board via Bluetooth, but ok with USB pc.
Can show me the correct schematic diagram for Bluetooth upload?
Thank

yaptimmy:
I can't upload sketch to micro board via Bluetooth, but ok with USB pc.

A Arduino Micro can only be uploaded via the native USB port or ICSP; the latter requires a programmer Did you try to do it via the RX1 and TX1 pins? That is not going to work unless you hack the boot loader.