Skip to content

Commit

Permalink
V2.6.0 and new PCBs
Browse files Browse the repository at this point in the history
  • Loading branch information
felias-fogg committed Sep 5, 2024
1 parent 5f20319 commit c344b16
Show file tree
Hide file tree
Showing 22 changed files with 5,638 additions and 5,589 deletions.
415 changes: 3 additions & 412 deletions README.md

Large diffs are not rendered by default.

33 changes: 22 additions & 11 deletions RescueAVR.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
new, using ideas und snippets from Jeff Keyzer's sketch HVRescue_Shield.
In addition, the program can also be run on an Arduino Uno, Nano, or Pro.
The program can beither compiled for Arduino Uno, Nano, or Pro usage (when
The program can be either compiled for Arduino Uno, Nano, or Pro usage (when
ARDUINO_AVR_UNO ARDUINO_AVR_NANO is defined), or for Fusebit Doctor
boards (in all other cases). If you want to compile it for the
Fusebit Doctor board, I recommend to use the MiniCore.
Expand All @@ -29,24 +29,26 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
Version 2.3 (21.1.2021)
- added support for ATtiny1634
- corrected the code for reading the OSCCAL value
- added 'R - Restart' to all menus (and changed resurrect to 'T')
- added: support for ATtiny1634
- fixed: corrected the code for reading the OSCCAL value
- added: 'R - Restart' mow in all menus
- changed: resurrect to 'T')
Version 2.3.1 (25.1.2022)
- added some explanantion
- made compile mode dependend on target board specification
- added: some explanantion
- changed: made compile mode dependend on target board specification
- fixed a few warnings
- added Github actions
- added: Github actions
Version 2.4.0 (20.8.2024)
- added a few MCUs: ATtiny22, ATtiny43U, ATtiny87, ATtiny167, ATmega48PB,
ATmega88PB, ATmega168PB, ATmega328PB,
ATmega640, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega8U2, ATmega16U2,
ATmega32U2, ATmega16U4, ATmega32U4,
AT90S2333, ATtiny441, ATtiny841, ATtiny828
- renamed ATMEGA -> HVPP and TINY2313 -> TINYHVPP
- added ARDUINO_AVR_PRO to the list of boards that can execute the Arduino version of the RescueAVR sketch
- renamed: ATMEGA -> HVPP and TINY2313 -> TINYHVPP
- added: ARDUINO_AVR_PRO is now in the list of boards that can execute
the Arduino version of the RescueAVR sketch
Version 2.5.0 (28.8.2024)
- fixed: handling of MCUs that read lock and fuse bits into one byte
Expand All @@ -64,8 +66,11 @@ Version 2.5.0 (28.8.2024)
Version 2.6.0
- fixed: handling of MCUs that read fuse and lock bits in one byte (AT90S2323 etc.)
- fixed: ATtiny11 & 12 handling
*/



/* Uncomment one of the following two lines, if you do not want to
leave the decision on which board the sketch is executed to the
specification of the target board
Expand Down Expand Up @@ -806,7 +811,11 @@ void resurrection(byte dlf, byte dhf, byte def) {
#ifdef FBD_MODE
ec_allowed = (digitalRead(ECJUMPER) == LOW);
#endif
if (lk != 0xFF && ec_allowed) {
if (ec_allowed &&
(lk != 0xFF &&
(mcu_signature != 0x1E9005) && // if not ATtiny12,
(mcu_signature != 0x1E9004)) || // and not ATTiny11
((lk&0x06 ) != 0x06)) {
Serial.println(F("Lock byte needs to be cleared. Erase chip ..."));
eraseChip(mcu_mode);
showLed(true,true,400);
Expand Down Expand Up @@ -840,7 +849,7 @@ void resurrection(byte dlf, byte dhf, byte def) {
ef,def) ||
(((mcu_signature == 0x1E9005) || // if ATtiny12,
(mcu_signature == 0x1E9004)) && // or ATTiny11
((lk&0x06 ) == 0x06) && // if LB1 & LB2 are unprogrmmed
((lk&0x06 ) == 0x06) && // if LB1 & LB2 are unprogrammed
verifyFuses(mcu_fuses,
0xFF,0xFF,
lf,dlf,
Expand Down Expand Up @@ -943,6 +952,8 @@ byte readFuse(int mode, int selection, boolean read_fuse_and_lock) {
if (read_fuse_and_lock) selection = LOCK_SEL;
if (mode == HVSP) fuseval = readHVSPFuse(selection);
else fuseval = readHVPPFuse(mode,selection);
if (selection == LFUSE_SEL && mcu_signature == 0x1E9004) // read fuse of ATtiny11
return (fuseval | 0x80);
if (!read_fuse_and_lock) return fuseval;
else {
if (locsel == LFUSE_SEL) return (fuseval | 0xC0);
Expand Down
File renamed without changes.
438 changes: 438 additions & 0 deletions docs/manual.md

Large diffs are not rendered by default.

Binary file removed pcb/RescueAVR-Board.pdf
Binary file not shown.
Loading

0 comments on commit c344b16

Please sign in to comment.