LowPowerLab Forum

Hardware support => Moteino => Topic started by: davegravy on April 27, 2016, 12:39:54 PM

Title: Stock Fuse Settings Incorrect? [solved]
Post by: davegravy on April 27, 2016, 12:39:54 PM
I hooked up my stock moteino to my rpi via the GPIO pins as per this guide:

https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/configuration (https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/configuration)

avrdude is telling me the fuse settings are

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: safemode: lfuse reads as DE
avrdude: safemode: hfuse reads as DC
avrdude: safemode: efuse reads as 5

avrdude: safemode: lfuse reads as DE
avrdude: safemode: hfuse reads as DC
avrdude: safemode: efuse reads as 5
avrdude: safemode: Fuses OK (E:05, H:DC, L:DE)

avrdude done.  Thank you.


The extended fuse is supposed to be FD however. Is avrdude lying to me, or does my moteino have incorrect fuse settings?
Title: Re: Stock Fuse Settings
Post by: Felix on April 27, 2016, 01:28:27 PM
It's not lying. The 0x05 is equivalent to 0xFD. When the fuses are set via AVRISP the extended fuse might actually be read as 0x05. In fact if if I write 0x05 it reads back as 0xFD in avrstudio. So what you see is ok.
Title: Re: [SOLVED] Stock Fuse Settings Incorrect?
Post by: steve v on November 19, 2016, 04:36:33 PM
Any recommendations for a fuse programmer Device  ( Bus Pirate or others ?  )   that works well with a 3 Volt Moteino ?,  I want to change the BOD from 2.7 to 1.8V  probably using AVRDUDE
Title: Re: [SOLVED] Stock Fuse Settings Incorrect?
Post by: jhoward88 on November 20, 2016, 01:00:03 PM
I'm also looking for a way to change the fuse settings on a moteino.  I tried it with a raspberry pi using the gpio pins, but haven't been able to get a new setting to stick using avrdude.  It seems to change it  and then says it is verifying and changes the setting back to the original.

Avrdude works fine to upload a compiled sketch via the gpio pins so I do have a connection to the Moteino.

Is there a way to use an Arduino uno to change the Moteino fuse settings ?  I see breadboard examples to program the ATMega328 DIP chip, but no examples of programming an actual Moteino or other mini board.

-Jerry
Title: Re: [SOLVED] Stock Fuse Settings Incorrect?
Post by: gurari on November 20, 2016, 03:38:56 PM
Quote from: steve v on November 19, 2016, 04:36:33 PM
Any recommendations for a fuse programmer Device  ( Bus Pirate or others ?  )   that works well with a 3 Volt Moteino ?,  I want to change the BOD from 2.7 to 1.8V  probably using AVRDUDE

I'm using this programmer: https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/open-source-hardware (https://www.olimex.com/Products/AVR/Programmers/AVR-ISP-MK2/open-source-hardware) with Atmel Studio and all is working pretty well.
I wan't able to find AVRISP mkII in my country so I bought an alternative and I'm very happy with it.