Loading...
Pages: [1]   Go Down
Author Topic: Upload Issue: avrdude: ser_open(): can't set com-state  (Read 177 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi! I have problems uploading my Arduino Leonardo, the message I'm getting is:

avrdude: ser_open(): can't set com-state for "\\.\COMXX"
avrdude: ser_send(): write error: sorry no info available

I'm under Windows 7, I am sure that the COM port is correct and everything used to work. I also tried to remove the device driver and reinstall it several times... but it's the same

The last important change I made, that might had affected it, was at the HID.cpp file in the hardware core. I added a new device other than the mouse and the keyboard, everything compiles fine. I know other people were able to make similar changes with no problems (http://blog.qwertymodo.com/2012/11/arduino-hid-gamepad-part-2.html, I'm actually trying to implement a touchscreen not a gamepad). Yet it is the only thing that might have affected it.

Any idea on how I may get it back to work?
« Last Edit: January 14, 2013, 04:39:17 pm by fisch » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the problem is really inside the sketch I uploaded, may I be able to reprogram the Leonardo with an Arduino uno as ISP?

EDIT: I wasn't able to use an Arduino UNO to reprogram the Leonardo, but I think the problem is the same affecting CDC upload: auto-reset is disabled. As stated in the Leonardo guide I was able to upload new sketches. As for the reasons this may be happening (that might be useful for other people), I completely forgotten that I also modified the WInterrupts.c file in order to use Leonardo interrupt on digital pin 7. Only some of the sketches that use this interrupt actually disable the auto-reset. So I'm still curious if anyone knows why...
« Last Edit: January 17, 2013, 12:59:00 pm by fisch » Logged

Pages: [1]   Go Up
Print
 
Jump to: