Author Topic: $50 robot UART upgrade and fuses on Mac OS X  (Read 2239 times)

0 Members and 1 Guest are viewing this topic.

Offline Crunchy TheoryTopic starter

  • Full Member
  • ***
  • Posts: 80
  • Helpful? 0
  • "Well great is ok, but amazing would be great."
$50 robot UART upgrade and fuses on Mac OS X
« 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!
« Last Edit: December 01, 2010, 04:19:30 PM by Crunchy Theory »
The only way to top an upright screen, keyboard, and mouse is to eliminate the need for humans to touch a PC at all. Oh, hello there Mr. Robot... what would I like you to do, you ask?

Offline Crunchy TheoryTopic starter

  • Full Member
  • ***
  • Posts: 80
  • Helpful? 0
  • "Well great is ok, but amazing would be great."
Re: $50 robot UART upgrade and fuses on Mac OS X
« Reply #1 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/
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.

The only way to top an upright screen, keyboard, and mouse is to eliminate the need for humans to touch a PC at all. Oh, hello there Mr. Robot... what would I like you to do, you ask?

 


Get Your Ad Here

data_list