timeout error on STK500

View: New views
4 Messages — Rating Filter:   Alert me  

timeout error on STK500

by Irving Ruan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After getting some things set up, I wrote some test code and assembled it to Intel Hex so I could write it to flash on my STK500. Unfortunately, I've been receiving these ReceiveMessage() timeout errors and did some research online but I honestly think the USB/RS-232 adapter is the culprit (from what I've heard, it doesn't work too well with AVRDUDE).

This is what I'm typing to verify that my STK500 is interfaced correctly: avrdude \-c stk500v2 \-p m324p \-P /dev/ttyUSB1 and this is what I receive:

avrdude: stk500_2_ReceiveMessage(): timeout


I have also tried ttyUSB0, which is the other tty device that shows up (my USB/RS-232 adapter operates as two RS-232 heades connected with one USB head, so could it be that?).

This is the error I also receive when I try ttyUSB0 device:
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_recv(): checksum error
avrdude: stk500v2_program_enable(): bad STK600 connection status: Unknown (0x64)
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.


Thoughts?

- Irving


--
Irving Y. Ruan
irvingruan@...

_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

RE: timeout error on STK500

by Weddington, Eric :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From: avr-chat-bounces+eric.weddington=atmel.com@...
> [mailto:avr-chat-bounces+eric.weddington=atmel.com@...]
>  On Behalf Of Irving Ruan
> Sent: Thursday, August 20, 2009 8:51 PM
> To: avr-chat@...
> Subject: [avr-chat] timeout error on STK500
>
> After getting some things set up, I wrote some test code and
> assembled it to Intel Hex so I could write it to flash on my
> STK500. Unfortunately, I've been receiving these
> ReceiveMessage() timeout errors and did some research online
> but I honestly think the USB/RS-232 adapter is the culprit
> (from what I've heard, it doesn't work too well with AVRDUDE).
>
> This is what I'm typing to verify that my STK500 is
> interfaced correctly: avrdude \-c stk500v2 \-p m324p \-P
> /dev/ttyUSB1 and this is what I receive:

Are you actually typing the backslashes (above) on the command line?


_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

Re: timeout error on STK500

by Irving Ruan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, Aug 20, 2009 at 7:58 PM, Weddington, Eric <Eric.Weddington@...> wrote:


> -----Original Message-----
> From: avr-chat-bounces+eric.weddington=atmel.com@nongnu.org
> [mailto:...=atmel.com@nongnu.org]
>  On Behalf Of Irving Ruan
> Sent: Thursday, August 20, 2009 8:51 PM
> To: avr-chat@...
> Subject: [avr-chat] timeout error on STK500
>
> After getting some things set up, I wrote some test code and
> assembled it to Intel Hex so I could write it to flash on my
> STK500. Unfortunately, I've been receiving these
> ReceiveMessage() timeout errors and did some research online
> but I honestly think the USB/RS-232 adapter is the culprit
> (from what I've heard, it doesn't work too well with AVRDUDE).
>
> This is what I'm typing to verify that my STK500 is
> interfaced correctly: avrdude \-c stk500v2 \-p m324p \-P
> /dev/ttyUSB1 and this is what I receive:

Are you actually typing the backslashes (above) on the command line?


No. I was also thinking if I should specify the baudrate in the verification, such as 115200..
--
Irving Y. Ruan
irvingruan@...

_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat

Re: timeout error on STK500

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Irving Ruan <irvingruan@...> wrote:

> I was also thinking if I should specify the baudrate in the
> verification, such as 115200..

Nope, the STK500 is hardwired to 115200 Bd, because the STK's firmware
cannot run at any other speed.

You could add -vvvv (for options "v") to the commandline, this will
show you the communications trace.  Perhaps you can get an idea what
actually happens on the RS232 adapter then.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-chat mailing list
AVR-chat@...
http://lists.nongnu.org/mailman/listinfo/avr-chat