question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting the fuses for the ATtiny85 (for example) seems to be a issue that emerges every now and then. I’ve been struggling with this and read the documentation and some issues here in Github but it just looks broken.

When I use pio run -t upload and the board is attiny85 the fuses set are: E:FF, H:D7, L:E2 and it does not matter what I change in the boards directory in the attiny85.json file. It will always use the same fuses.

But when I run the command pio run -t fuses the fuses are set. Sort of. avrdude errors with avrdude: verification error; content mismatch because while it sets the new fuses it looks like it also sets the old fuses and when it verifies the new fuses it gets confused (no pun intended).

In the background avrdude asks: Would you like this fuse to be changed back? [y/n] But this question is invisible to the user, only visible using verbose output. When I choose n the right fuses are set and verified! So this seems to be a small bug, you maybe need to force the changes here to avoid the question asked by avrdude.

Now I have the right fuses but when I upload my code the fuses are overwritten by the defaults! So I still cannot use it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Thijxxcommented, Mar 5, 2019

@stonehippo yes thank you

1reaction
stonehippocommented, Feb 25, 2019

@Thijxx @ivankravets one more thing: the fuses target needs to get the -u flag in main.py to disable the safemode warning if you really want to disable SPIEN (and I’d do that after programming, so switch the -t order above).

Read more comments on GitHub >

github_iconTop Results From Across the Web

AVR Fuse Calculator for ATtiny85
A javascript web-based Atmel AVR microcontroller fuse calculator tool. Apply chip features to see fuse bit settings or apply fuse bit settings to...
Read more >
Fuses ATtiny - SheepdogGuides
There are three "fuse bytes" in the ATtiny85. As "byte" suggests, each has 8 bits. Sometimes one of the fuse controlled features is...
Read more >
Removing a Curse from ATtiny85 Fuses
ATtiny chips (and in general, microcontrollers from the AVR family) have some configuration bytes called fuses. They control various aspects of ...
Read more >
The Mystery Of A Particular ATtiny85 Fuse - Hackaday
[Uri Shaked] shares his story of how his ATtiny85 got locked and became the subject of a lengthy investigation into fuse bit configurations....
Read more >
Setting and reading AtTiny85 fuses - dntruong's Arduino blog
I posted Q&A on Arduino.cc. Hardware setup To read fuses of an AVR chip (AtTiny85 in my case), you need an ISP. For...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found