0

right way to burn firmware ?
Moderators: altitude, adafruit_support_bill, adafruit, phono, hamburgers

Please be positive and constructive with your questions and comments.

right way to burn firmware ?

by janvanvolt on Wed May 28, 2008 12:45 pm

Hi,

can anybody provide the rights steps on burning new/the firmware using a avr programmer ?

i got the option for EEPROM or FLASH on the 162 CPU burner, so what needs to go where ?
janvanvolt
 
Posts: 17
Joined: Fri May 23, 2008 9:08 pm

by guest on Wed May 28, 2008 11:46 pm

the program goes in the flash
i dont think anything goes in the eeprom

you need to set the fuse bits correctly
there should be a post somewhere
with the correct settings
guest
 
Posts: 3155
Joined: Fri Feb 17, 2006 5:35 am

by janvanvolt on Thu May 29, 2008 3:21 pm

i searched all archives forth and back and do not find a info about the right fuse settings.

anybody else able to assist me ?
janvanvolt
 
Posts: 17
Joined: Fri May 23, 2008 9:08 pm

by guest on Thu May 29, 2008 7:05 pm

it took some digging
but here is the information

its always frustrating how much useful info
gets lost forever in these forums

the following fuses are set
and anything else is not set

brown out detection at 4.3v
preserve eeprom through chip erase cycle
boot size equals 256
boot reset vector enabled
external oscillator greater than 8mhz 16k clock plus 65ms
guest
 
Posts: 3155
Joined: Fri Feb 17, 2006 5:35 am

by janvanvolt on Thu May 29, 2008 9:12 pm

Thank you for the excellent information. My x0xb0x is now reachable by USB as well as fully functional (some other issues, will do seperate thread).

i will write down the fuse settings and publish on my blog as well.

many many thanks "guest" !

##THREAD CLOSED##
janvanvolt
 
Posts: 17
Joined: Fri May 23, 2008 9:08 pm

by phono on Fri May 30, 2008 3:31 am

guest wrote:its always frustrating how much useful info
gets lost forever in these forums


thats why i just added this to the troubleshooting faq, will also try to add any other useful tidbits that surface in time :)
Image
x0x #733 Image SH-101 MC-202 TB-303 TR-606 TR-808 TR-909 MKS-50 Juno-106 A-100 Virus-B E-6400 SX-150 Monotron
phono
 
Posts: 1502
Joined: Wed May 02, 2007 4:01 pm
Location: forum whore aka 2Cv

by janvanvolt on Sun Jun 08, 2008 6:25 pm

My x0x is now working. I received the original firmware from Ladyada last saturday and after putting it in, all works fine. So i assume i did something wrong with the fuses. I will check this later this week.
janvanvolt
 
Posts: 17
Joined: Fri May 23, 2008 9:08 pm

Re: right way to burn firmware ?

by Sasha on Sun Oct 26, 2008 4:56 am

I finished my box but having trouble with chip.
I`m using usbtiny.
Burning the chip passed OK, but after instaling the chip, sequencer acts like it is partially working and at the wrong speed. I figured out it must be the fuses.

I calculated fuses for atmega162 acording to guest info:
brown out detection at 4.3v
preserve eeprom through chip erase cycle
boot size equals 256
boot reset vector enabled
external oscillator greater than 8mhz 16k clock plus 65ms

so the result from calculator was this: http://www.engbedded.com/cgi-bin/fc.cgi ... _BOOTRST=P
After I tried to wright any of following fuses I get The system cannot find the file specified
Code: Select all | TOGGLE FULL SIZE
avrdude -c usbtiny -p atmega162 -U lfuse:w:<0xFD>:m
avrdude -c usbtiny -p atmega162 -U hfuse:w:<0xB4>:m
avrdude -c usbtiny -p atmega162 -U efuse:w:<0xF9>:m

Are the fuses locked somehow or am I doing something wrong?
Sasha
 
Posts: 69
Joined: Wed Aug 15, 2007 8:29 am
Location: Belgrade, Serbia

Re: right way to burn firmware ?

by Sasha on Wed Nov 12, 2008 4:35 am

Problem with fuses solved. (It takes external crystal to burn the all fuses.)
Sasha
 
Posts: 69
Joined: Wed Aug 15, 2007 8:29 am
Location: Belgrade, Serbia

Please be positive and constructive with your questions and comments.