View Single Post
Old 06-04-2008, 11:00 AM   #73 (permalink)
jimboradley
EcoModding Lurker
 
Join Date: May 2008
Posts: 7

LMGDM - '97 Nissan Sentra
Thanks: 0
Thanked 0 Times in 0 Posts
Wow, thanks for the response. Shoulda done this first time around, but here's what I posted at the arduino site. I think it's got all the info I could scrounge up. Let me know if there's any other pertinent info I can gather. I'd really like to get this going.

Hi everyone. Like many people, it seems, I'm having trouble uploading sketches to my board. Here's what I'm using:
Windows XP SP2
Freeduino Serial v1.0 Diecimila compatible (from nkcelectronics.com)
a USB to serial converter cable set to
19200 baud
8 data bits
no parity
1 stsop bit
no flow control
using Arduino0011 (tried 009 also, but didn't work)

I've never been able to upload a sketch to my board. I tried all the tips in the troubleshooting section. Here is the output from when I try to load my sketch:

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Binary sketch size: 1096 bytes (of a 14336 byte maximum)
C:\Documents and Settings\OD\Desktop\arduino-0011\hardware/tools/avr/bin/avrdude
-CC:\Documents and Settings\OD\Desktop\arduino-0011\hardware/tools/avr/etc/avrd
ude.conf -v -v -v -v -pm168 -cstk500v1 -P\\.\COM1 -b19200 -D -Uflash:w:C:\Docume
nts and Settings\OD\Desktop\arduino-0011\examples\Digital\Blink\applet\Blink.hex
:i


avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "C:\Documents and Settings\OD\Desktop
\arduino-0011\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM1
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done. Thank you.

I've tried wiring my serial connector up to itself, and it echoes the characters I transmit from the serial monitor perfectly, so I don't think my cable is a problem. I also tried tieing my rx and tx pins together and transmitting stuff using the serial monitor. The stuff that comes back on the serial monitor is usually slightly garbled, sometimes every character comes back wrong. I transmitted the English alphabet several times and maybe one time in 5 it came back with all 26 letters the same. Not sure if this behavior is expected or not.

I do get LED 13 to flash when I reset, but it doesn't look like a triple flash. Seems like it just flashes every one second constantly. When I try to upload something, it looks like the LED flashes an extra time or two when avrdude first does ser_open() and stk500_getsync(), but keeps flashing every one second.

Anyone have any insight into what I'm doing wrong? Thanks in advance.
  Reply With Quote