Hi,
I recently bought one of [these Sparkfun ADXL 345 evaluation boards.
I’ve recompiled the program to change the default g scale, but am having problems getting the code onto the board.
I’ve not used AVR / Arduino before (some programming of PICs) and don’t have an AVR ISCP programmer. If I’m reading the development board user guide right, I should just be able to take advantage of the Adruino bootloader to upload my files via USB / Virtual Com port using avrdude.
I’ve got the latest VCOM drivers - and can use PUTTY to connect to the accelerometer to read / write the registers - so I can communicate via the USB / VCOM - so far so good.
If I try to upload the simple blink sketch (my idea is to use the avrdude format displayed in the debugging to then upload the real .hex file I want on there) from the Arduino IDE (with the board set to Lilypad/mega328 as per the user guide) I get the following:
Binary sketch size: 920 bytes (of a 30720 byte maximum)
C:\Documents and Settings\raistrim\Desktop\arduino-0018\hardware/tools/avr/bin/avrdude -CC:\Documents and Settings\raistrim\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\.\COM4 -b57600 -D -Uflash:w:C:\DOCUME~1\raistrim\LOCALS~1\Temp\build5205186713608508249.tmp\Blink.cpp.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\raistrim\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf”
Using Port : \.\COM4
Using Programmer : stk500v1
Overriding Baud Rate : 57600
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=0x4e
avrdude done. Thank you
I’ve tried permuations with the board powered off / memory card out and the only difference it makes is to sometimes change the resp value.
All of this is done on XP - though I have also tried with Vista 32 bit and get the same results.
Anybody any clues? Is there something I’m doing that’s fundamentally stupid here?
Cheers
Mike](https://www.sparkfun.com/commerce/product_info.php?products_id=9364)