Society of Robots - Robot Forum

Software => Software => Topic started by: Crunchy Theory on December 01, 2010, 09:25:09 AM

Title: $50 robot UART upgrade and fuses on Mac OS X
Post by: Crunchy Theory on December 01, 2010, 09:25:09 AM
Couldn't find any threads on how to tackle the fuses part of the tutorial without WinAVR. Is this possible if I am just using the USBtinyISP programmer from ladyada.net and avrdude in Terminal command-line on OS X?

Here is the command I am currently using to flash programs through my programmer (which works):

avrdude -c usbtiny -p atmega8 -U flash:w:Photovore_v1.hex


Thanks!
Title: Re: $50 robot UART upgrade and fuses on Mac OS X
Post by: Crunchy Theory on December 02, 2010, 10:33:57 AM
Problem solved, had to look deeper into avrdude options (type avrdude in Terminal) and found out that I can write directly to the fuse registers provided that I know what to write. Which leads to...

This handy life-saver calculator whose link appears at the bottom of the SoR calculators page: http://www.engbedded.com/fusecalc/ (http://www.engbedded.com/fusecalc/)
Hopefully it won't be going anywhere anytime soon.

So the full command ended up being: avrdude -c usbtiny -p m8 -U lfuse:w:0xe4:m -U hfuse:w:0xd9:m

No errors from the programmer, and the robot still runs.