Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: rox2007 on January 08, 2008, 07:59:57 PM

Title: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 08, 2008, 07:59:57 PM
I am designing the photovore robot and got stuck while writing to the mcu. i am using a usb to serial cable to connect my avr serial dongle to the mcu but every time i try to write i get the common error 

"device missing or unknown device error"

can anyone help me please .
The connection to the mcu is correct. I dont know what i am doing wrong
Title: Re: Writing hex file with usb to serial and pony prog
Post by: airman00 on January 09, 2008, 07:10:02 AM
using Vista?
Title: Re: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 09, 2008, 09:01:10 AM
nope, i'm using XP and using a usb to serial cable.
Title: Re: Writing hex file with usb to serial and pony prog
Post by: Admin on January 09, 2008, 11:59:12 AM
http://www.societyofrobots.com/robotforum/index.php?topic=1116.0
Title: Re: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 09, 2008, 03:22:09 PM
i am using the cheap programmer you suggested. and i looked aT th at post
Title: Re: Writing hex file with usb to serial and pony prog
Post by: Admin on January 09, 2008, 04:37:08 PM
http://www.societyofrobots.com/robot_faq.shtml#circuit_debug

let us know the voltage results . . .

and if that still checks out . . . I suspect your usb to serial adaptor is causing the problem. I had problems with it and others have commented it is probably the cause of those problems.
Title: Re: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 09, 2008, 05:52:21 PM
I. Checked the voltages, the voltages are correct the programmer is getting the right voltage, 5v. I think the cable is bad.  I might just get the expensive one
Title: Re: Writing hex file with usb to serial and pony prog
Post by: gamefreak on January 09, 2008, 09:06:38 PM
wait, check your reset wire, mine broke(took me a while to notice) and it said that error with a -24 after it.
Title: Re: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 09, 2008, 10:52:46 PM
I guess I could try that. But what do you mean by rest wire. Thank you for your help.
Title: Re: Writing hex file with usb to serial and pony prog
Post by: gamefreak on January 10, 2008, 08:35:44 PM
sorry I mean reset wire
Title: Re: Writing hex file with usb to serial and pony prog
Post by: Trumpkin on January 11, 2008, 08:50:17 AM
mine said error -24 and i just had a bridge on the programmer header.
Title: Re: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 11, 2008, 11:43:53 AM
i checked the reset wire and it was ok. i wanted to ask if the reset pin, on the atmega, should be connected to the ground if you dont have a reset button?
Title: Re: Writing hex file with usb to serial and pony prog
Post by: rox2007 on January 14, 2008, 11:29:56 AM
Good News,
I got it to work.
i got a desktop and used the comport on it. i guess you cant use usb to rs322 cables. i read somewhere that it is best to use a pcmia card.
thanks for your help.
Title: Re: Writing hex file with usb to serial and pony prog
Post by: paulstreats on January 14, 2008, 11:41:32 AM
most usb to serial adapters only emulate the rx and tx pins of a serial port so if atmega programmers require the other pins then youre stuck :(