Comments (13)
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.
Thats it!
thank you very much for your help!
everything runs now greatful
Wolfram.
from arduino_sketches.
from arduino_sketches.
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.
from arduino_sketches.
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.
from arduino_sketches.
from arduino_sketches.
See:
from arduino_sketches.
from arduino_sketches.
from arduino_sketches.
from arduino_sketches.
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)
- Can we program 8051 based MCU with these? HOT 2
- Atmega_Board_Detector.ino not compiling HOT 2
- Uploading .hex files - cannot obtain the directory listing off the SD card HOT 1
- Trying to program multiple target arduino chip at once HOT 2
- GSM Based FOTA Block Diagram HOT 4
- Atmega_Board_Programmer Compilation Error on IDE 1.8.13 HOT 1
- Atmega328p from Korea v Thailand HOT 1
- Arduino ATMega16u2
- Import error when running the code HOT 1
- Reset circuit HOT 2
- Changing SD card by external SPI flash memory HOT 5
- Programming multiple devices HOT 1
- Atmega_Hex_Uploader filenames HOT 3
- Atmega_Hex_Uploader_Fixed_Filename: How to change the fuse setting? HOT 8
- Cannot enter programming mode in target chip HOT 8
- Atmega_Hex_Uploader need old SdFat version to compile HOT 2
- Options for Hex uploader to use same SPI bit banged port as Board Programmer HOT 1
- Atmega_Hex_Uploader_Fixed_Filename: Cannot read file HOT 8
- Arduino 1.8.12 and Arduino 2.1 give ino file const error! Does not work! HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_sketches.