NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » Trouble loading the makefile

March 12, 2013
by PatchParamedic
PatchParamedic's Avatar

Whenever I try to load the makefile, it tells me

avrdude: ser_open(): can't open device "COM2": the system cannot fin the file specified

make: *** [initialload-upload] Error 1

Any help?

March 13, 2013
by Ralphxyz
Ralphxyz's Avatar

and your problem is?

The error message is literal usually they are rather obfuscated:

cant' open device "COM2":

Obviously your device is not using COM2 as your Makefile says.

So what COM port are you using?

Look in Device Manager under Ports.

Ralph

March 13, 2013
by scootergarrett
scootergarrett's Avatar

This is the error I get when I have the USB- serial cable plugged into the wrong port. You need to make sure you use port 2, or change the 3rd line in the make file to the com port you are using. To find out what com port you are go to device manager ‘Device manager’ by right clicking ‘my computer’ then ‘properties’ then the ‘hardware’ tab then ‘Device manager’. COM 1

March 13, 2013
by PatchParamedic
PatchParamedic's Avatar

It's in the right port. I also changed the part in the makefile to COM2.

March 13, 2013
by lnino
lnino's Avatar

Hi,

are the drivers in the device manager okay? No exclamation mark? What operating system are you using?

Are the wires of the serial cable (yellow, green and black) in the right slots on the breadboard?

greeting LNINO

March 13, 2013
by PatchParamedic
PatchParamedic's Avatar

I have Vista. I've double checked the USB cable connections.

March 13, 2013
by Ralphxyz
Ralphxyz's Avatar

Uplug and replug your USB. What error message to you get now?

Reboot, reboot and reboot again.

Ralph

March 13, 2013
by PatchParamedic
PatchParamedic's Avatar

Rebooted it quite a few times, but it finally worked. Thanks for the help!

March 13, 2013
by Ralphxyz
Ralphxyz's Avatar

I'll bet you touched a wire.

But it is not surprising if you look at other threads that was the solution, reboot , reboot and reboot again. Especially on a Windows machine, imagine that.

Ralph

March 14, 2013
by lnino
lnino's Avatar

Hi PatchParamedic,

if you can upload a photo of the wiring of your breadboard and the content of your makefile, we can maybe help.

Have you tried to use a different USB Port? Everytime you plug in the Nerdkit Serial Cable into a different USB Port you get a different COM Port Number. Have you checked that?

Post a Reply

Please log in to post a reply.

Did you know that you can connect a computer keyboard to your microcontroller? Learn more...