kcuzner / avrdude

avrdude with a Linux SPI programmer type
http://kevincuzner.com/2013/05/27/raspberry-pi-as-an-avr-programmer/
107 stars 68 forks source link

avrdude command weird #13

Closed wenhuizhang closed 7 years ago

wenhuizhang commented 7 years ago

Hi, I tried to write hfuse and lfuse, and it seems like there are something weird with mac version of avrdude.

It recognize H and L fuse in a way I could not understand. Do you mind if explain it a little bit please? "(H:DA, E:05, L:FF)" with "-Uhfuse:w:0x05:m -Uefuse:w:0xda:m -Ulfuse:w:0xff:m"


client-104-39-67-216:bootloader WenhuiZhang$ avrdude -p m2560 -c usbasp -P /dev/ttyUSB0 -B 115200 -Uhfuse:w:0x05:m  -Uefuse:w:0xda:m  -Ulfuse:w:0xff:m

avrdude: set SCK frequency to 0 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9801
avrdude: reading input file "0x05"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0x05:
avrdude: load data hfuse data from input file 0x05:
avrdude: input file 0x05 contains 1 bytes
avrdude: reading on-chip hfuse data:

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

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xda"
avrdude: writing efuse (1 bytes):

Writing |                                                    | 0% 0.00s ***failed;  
Writing | ################################################## | 100% 0.06s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xda:
avrdude: load data efuse data from input file 0xda:
avrdude: input file 0xda contains 1 bytes
avrdude: reading on-chip efuse data:

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

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xfa != 0xda
avrdude: verification error; content mismatch

avrdude: safemode: efuse changed! Was da, and is now fa
Would you like this fuse to be changed back? [y/n] n
avrdude: safemode: Fuses OK (H:DA, E:05, L:FF)

avrdude done.  Thank you.
kcuzner commented 7 years ago

This isn't a general repository for questions about avrdude. This is a special version with support for the linuxspi interface for use with the raspberry pi or beaglebone and any questions should be specific to that interface.

One issue I see is that your efuse value does not appear to be correct. You are trying to program bit 5, which the ATMega2560 does not support.

I suggest you ask this on a more general service such as https://electronics.stackexchange.com/

wenhuizhang commented 7 years ago

Got it, any idea which is the official repo for arduino on github please? Many Thanks !

On Mon, Apr 17, 2017 at 11:27 PM, Kevin Cuzner notifications@github.com wrote:

This isn't a general repository for questions about avrdude. This is a special version with support for the linuxspi interface for use with the raspberry pi or beaglebone and any questions should be specific to that interface.

One issue I see is that your efuse value does not appear to be correct. You are trying to program bit 5, which on the ATMega2560 does not support.

I suggest you ask this on a more general service such as https://electronics.stackexchange.com/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcuzner/avrdude/issues/13#issuecomment-294664734, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNMPeG87I_uLSdibYgIaDjN4e7GcbSJks5rxC29gaJpZM4M_y-K .

-- V/R,

Wenhui Zhang

Email: wenhui@gwmail.gwu.edu Telephone: 1-(703) 424 3193

kcuzner commented 7 years ago

There isn't one, actually. The official SVN repository is here: https://savannah.nongnu.org/projects/avrdude/

Communication is via a mailing list: https://lists.gnu.org/mailman/listinfo/avrdude-dev

wenhuizhang commented 7 years ago

Awesome source @kcuzner , I will post through the email list then:)