Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumWiring HardwareTroubleshooting › Using avrdude with the Wiring board...

Page Index Toggle Pages: 1
Using avrdude with the Wiring board... (Read 8326 times)
03/09/08 at 20:08:29

pepper_bg   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 4
*
 
Can't get avrdude to work with the board through the USB (well can't get it work from the ISP port either but for that see my other posting). Neither from the GUI (selecting Tools/FirmwareVersion/v2.x) nor from the command line:
Code:
iii@iii:$ avrdude -cstk500v2 -P/dev/ttyUSB0 -pm128
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
 



Is this a matter of upgrading the firmware? My current version is 1.15.
And the board works fine through the USB when I use it with uisp...

Appreciate your help...
 
IP Logged
 
Reply #1 - 03/10/08 at 03:11:04

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
uisp works well with version 1.15, avrdude works fine with version 2.x. That´s the issue. That´s why when using version 1.x the uisp command is invoked from the wiring environment, when firmware version 2.x is selected, avrdude command is invoked instead.
 
IP Logged
 
Reply #2 - 03/12/08 at 19:59:51

pepper_bg   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 4
*
 
Thanks for the reply!

Here is a silly question - can I upgrade the firmware? I assume I can. If so, where do I get v2.0 from?

And do I need to use the ISP port for that (because I have trouble using it - http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1205092456) or can I use the USB port? Can you post the uisp command line which does it?

Appreciate your help!
 
IP Logged
 
Reply #3 - 03/12/08 at 20:48:51

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
Yes definitely, here it is: http://wiring.uniandes.edu.co/source/trunk/wiring/bootloader/
The file is stk500boot.hex
 
IP Logged
 
Reply #4 - 03/12/08 at 22:09:41

Vaccumdiode2   Offline
Full Member
chicago, IL USA

Posts: 120
***
 
Hey the link does not seem to work for me.

is it me or do we have a site issue?

Vaccumdiode2
 
IP Logged
 
Reply #5 - 03/12/08 at 22:23:41

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
http://wiring.uniandes.edu.co/source/trunk/wiring/bootloader/stk500boot.hex?view=log press right click and save as source.
 
IP Logged
 
Reply #6 - 03/13/08 at 03:08:19

pepper_bg   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 4
*
 
So can I just upload the file with uisp? I get:
Code:
iii@iii:$ uisp -dprog=stk500 -dserial=/dev/ttyUSB0 -dspeed=115200 -dpart=atmega128 --upload if=stk500boot.hex
[VP 1] Device is not responding correctly.
 


All is connected OK because I can download from it:
Code:
iii@iii:$ uisp -dprog=stk500 -dserial=/dev/ttyUSB0 -dspeed=115200 -dpart=atmega128 --download of=ttt.hex
Firmware Version: 1.15
Atmel AVR ATmega128 is found.
Firmware Version: 1.15
Downloading: flash
 



I see people writing the lock first using --wr_lock

Sorry if this has already been answered but couldn't find it...
Thanks...
 
IP Logged
 
Page Index Toggle Pages: 1