Git Product home page Git Product logo

Comments (13)

nickgammon avatar nickgammon commented on June 2, 2024

I had a discussion with someone else about this recently. His solution was as follows:

if (strcmp (currentSignature.desc, "ATtiny85") == 0)
  {
  writeFuse (0xE2, writeLowFuseByte);
  writeFuse (0xD5, writeHighFuseByte);
  writeFuse (0xFF, writeExtendedFuseByte);
  } 

You could do something similar (of course, with a different board name ("ATmega2560"), and appropriate fuse byte values).

I think I would put that code around line 1371 of the sketch, eg. in your case:

  // now fix up fuses so we can boot    
  if (errors == 0)
    {
    updateFuses (true);

    if (strcmp (currentSignature.desc, "ATmega2560") == 0)
      {
      writeFuse (0xFF, writeLowFuseByte);
      writeFuse (0xD8, writeHighFuseByte);
      writeFuse (0xFC, writeExtendedFuseByte);
      } 

    }

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

Thats it!

thank you very much for your help!
everything runs now greatful

Wolfram.

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

nickgammon avatar nickgammon commented on June 2, 2024

Does a chiperase clear everything?

Yes.

Also eeprom?

No.

Since you have changed the fuse to require a 16 MHz clock, do you in fact have a 16 MHz external clock when you try to reflash?

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

nickgammon avatar nickgammon commented on June 2, 2024

But If i flash the same Board again it doesnt Run anymore.

You can't program it, or it programs OK (no error messages) but the board doesn't run?

And, to be clear, it runs when you program it the first time?

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

nickgammon avatar nickgammon commented on June 2, 2024

See:

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

from arduino_sketches.

mega-hz avatar mega-hz commented on June 2, 2024

Now i found the reason and the solution:

The HI Fuse must have D9 instead of D8 ! = BOOTRST
This doesn`t have to be set, because of no bootloader!
Now i can flash every board, even it was flashed before!

  • SOLVED -

from arduino_sketches.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.