Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avrdude command weird #13

Closed
wenhuizhang opened this issue Apr 18, 2017 · 4 comments
Closed

avrdude command weird #13

wenhuizhang opened this issue Apr 18, 2017 · 4 comments

Comments

@wenhuizhang
Copy link

wenhuizhang commented Apr 18, 2017

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
Copy link
Owner

kcuzner commented Apr 18, 2017

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/

@kcuzner kcuzner closed this as completed Apr 18, 2017
@kcuzner kcuzner changed the title avrdude command wired avrdude command weird Apr 18, 2017
@wenhuizhang
Copy link
Author

wenhuizhang commented Apr 18, 2017 via email

@kcuzner
Copy link
Owner

kcuzner commented Apr 18, 2017

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants