Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

Atmega 88 programming using usbasp / avrdude
Moderators: adafruit_support_bill, adafruit

Atmega 88 programming using usbasp / avrdude

by avo3 on Mon May 14, 2012 2:21 pm

Hello,
First of all I`m new guy so sorry for some mistake which I will surely do.
I almost build the working wavebubble. But when I check the usart communication nothing work.
I use usbasp programmer and avrdude software.
First I burn the fuses like here:
http://www.ladyada.net/make/wavebubble/tuning.html
and evey test work geat except uart test.
I use putty for the comunication with board.
I the boadr with ft232 work`s great I checked.
There is some interestin think about programing using avrdude.
First as I sad program the fuses then I download to ucontroler program with uncommented test uart.
At the last line of software avr dude ask me that the fuses have been changed and if I would like to re-program it back.
So I choose yes I try to stay in this which program suggested but it just go worse because it block my u controller.
Thank You for help me.
avo3
 
Posts: 5
Joined: Mon May 14, 2012 2:11 pm

Re: Atmega 88 programming using usbasp / avrdude

by spacedoggy on Wed May 16, 2012 2:28 pm

take a load of screen shots or list the output you get when programming.

post screen shots of your terminal settings and screen too.
spacedoggy
 
Posts: 46
Joined: Fri Apr 22, 2011 3:45 pm

Re: Atmega 88 programming using usbasp / avrdude

by avo3 on Wed May 23, 2012 2:04 pm

hello,
thank You for Your fast answer I attached screen shot
Attachments
avrdude.JPG
avrdude.JPG (87.56 KiB) Viewed 2452 times
avo3
 
Posts: 5
Joined: Mon May 14, 2012 2:11 pm

Re: Atmega 88 programming using usbasp / avrdude

by spacedoggy on Thu May 24, 2012 4:04 pm

here's the notes I used when programming my rev 1.0a

Code: Select all | TOGGLE FULL SIZE
cd C:\WinAVR-20100110\bin\WB_firmwarev1

edit main.c parameters, uncomment out calls to individual test functions...
notepad main.c

set fuses... (may require configuration of command line from default)
make burn-fuse

compile make.c...
make

test programmer connection...
avrdude -p atmega88 -P usb -F -c avrispmkii

write EEPROM...
avrdude -p atmega88 -P usb -F -c avrispmkii -u -U eeprom:w:wavebubble.eep

Write flash...
avrdude -p atmega88 -P usb -F -c avrispmkii -u -U flash:w:wavebubble.hex



and my WB2010...

Code: Select all | TOGGLE FULL SIZE
cd C:\WinAVR-20100110\bin
previous version located here: C:\WinAVR-20100110\bin\WB2010_Firmware

set fuses... (varify values before re-running fuse programming should be E2 D5 F9 on fusecalc)
avrdude -c avrispmkii -p atmega168 -P usb -U lfuse:w:0xe2:m -U hfuse:w:0xd5:m -U efuse:w:0xf9:m

test programmer connection...
avrdude -c avrispmkii -p atmega168 -P usb

test firmware...
cd C:\WinAVR-20100110\bin\WB2010_Hardware_Test
avrdude -c avrispmkii -p atmega168 -P usb -U flash:w:main.hex

build firmware...
cd C:\WinAVR-20100110\bin\WB2010_Firmware
avrdude -c avrispmkii -p atmega168 -P usb -U flash:w:main.hex

spacedoggy
 
Posts: 46
Joined: Fri Apr 22, 2011 3:45 pm

Re: Atmega 88 programming using usbasp / avrdude

by avo3 on Mon May 28, 2012 12:43 pm

hello, thank You for Your answer I have big request for You,
could You send me this .eep and .hex files for v1.0a (RC1a) with runing normal program as should be.
my e-mail avo3@poczta.onet.pl
THANK YOU
avo3
 
Posts: 5
Joined: Mon May 14, 2012 2:11 pm