programming error
Moderators: adafruit_support_bill, adafruit

programming error

by prayag2010 on Sun Apr 24, 2011 7:13 am

Can anyone please help with the programming the minipov3 ???
I followed the instructions on the website.I am using a USB-serial converter and I looked under device manager and my com port is com29.I changed it in the "makefile" i typed in make program-minipov and tis is the error displayed -


avrdude -p attiny2313 -P com29 -c dasa -U flash:w:minipov.hex
avrdude: ser_open() : can't open device "com29": The system could not find the file
specified.

avrdude done. Thank you.

make: ***[program-minipov] Error 1
prayag2010
 
Posts: 22
Joined: Thu Apr 29, 2010 7:44 am

Re: programming error

by mtbf0 on Sun Apr 24, 2011 8:40 am

i think i'd reboot to get rid of some of those com devices, then plug the minipov back in see what device it gets assigned to and edit the Makefile again. seems like windows users have had trouble with really high com port numbers in the past.

i also think there's a way to go into the device manager and delete some of the older ones if you'd rather not reboot.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
mtbf0
 
Posts: 1645
Joined: Fri Nov 09, 2007 11:59 pm
Location: oakland ca

Re: programming error

by prayag2010 on Sun Apr 24, 2011 11:48 am

Well, I only have these ports -
Communications Port(COM1)
ECP printer port(LPT1)
Intel active management technology - SOL (COM3)
USB - SERIAL banned (COM29)
prayag2010
 
Posts: 22
Joined: Thu Apr 29, 2010 7:44 am

Re: programming error

by prayag2010 on Sun Apr 24, 2011 11:51 am

Well, I only have these ports -
Communications Port(COM1)
ECP printer port(LPT1)
Intel active management technology - SOL (COM3)
USB - SERIAL banned (COM29)
prayag2010
 
Posts: 22
Joined: Thu Apr 29, 2010 7:44 am

Re: programming error

by adafruit on Sun Apr 24, 2011 6:10 pm

you cannot use a banned type converter, it should be PL2303 or FT232
User avatar
adafruit
 
Posts: 11669
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: programming error

by prayag2010 on Mon Apr 25, 2011 7:42 am

well......I guess I have to buy a new one........
prayag2010
 
Posts: 22
Joined: Thu Apr 29, 2010 7:44 am

Re: programming error

by tastewar on Mon Apr 25, 2011 9:28 am

re: high COM port numbers in Windows.

The actual Windows API call to open a COM port is CreateFile, and while normally you just call CreateFile passing a name like COM1 or COM3 or COM9, once you get past 9, that method doesn't work. You must prepend a special string to the name, \\.\, so that for COM29, you'd pass \\.\COM29 to create file. And of course, if you're writing this in C source, you must double your backslashes, so it becomes \\\\.\\COM29.

Don't know if that's what's in play here (sounds like NOT if you don't have the "correct" type of adapter), but since someone mentioned a problem with high com port numbers and Windows, I thought I'd pass along one piece of information. And of course, if that were the problem, whoever wrote (or maintains) the software would have to fix it, it wouldn't be an end-user fixable problem.

Finally, in my experience, once you plug something in, Windows wants to keep it at whatever COM port number it originally assigned. I don't know how to "reset" this, but probably only because I've never had to.
tastewar
 
Posts: 351
Joined: Thu Mar 17, 2011 9:16 am

Re: programming error

by eventhorizon on Tue Jul 12, 2011 9:40 am

I remembered buying those banned type adapters. I think I got mine *almost* working, because sometimes it can read my AVRs, but with the wrong signature, sometimes it just can't read the chip.
-----------------------------------------------------------------------------------------------
Out of one hole, and into another.
eventhorizon
 
Posts: 114
Joined: Tue Jan 25, 2011 5:09 pm
Location: Quezon City, Philippines