Skip to content

Commit a7ac827

Browse files
committed
Slowed down bit-banged programming slightly
1 parent 8f6c8e3 commit a7ac827

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: Atmega_Hex_Uploader/Atmega_Hex_Uploader.ino

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Atmega hex file uploader (from SD card)
22
// Author: Nick Gammon
33
// Date: 22nd May 2012
4-
// Version: 1.36 // NB update 'Version' variable below!
4+
// Version: 1.37 // NB update 'Version' variable below!
55

66
// Version 1.1: Some code cleanups as suggested on the Arduino forum.
77
// Version 1.2: Cleared temporary flash area to 0xFF before doing each page
@@ -44,6 +44,7 @@
4444
// Version 1.34: Added include for SPI.h, and various tidy-ups to correct some issues
4545
// Version 1.35: Got rid of compiler warnings in IDE 1.6.7
4646
// Version 1.36: Got rid of warning from cppcheck regarding scope of allFF variable
47+
// Version 1.37: Fixed bug re verifying combined sketch/bootloader on Atmega2560
4748

4849

4950
const bool allowTargetToRun = true; // if true, programming lines are freed when not programming
@@ -125,7 +126,7 @@ const bool allowTargetToRun = true; // if true, programming lines are freed whe
125126

126127
// #include <memdebug.h>
127128

128-
const char Version [] = "1.36";
129+
const char Version [] = "1.37";
129130

130131
const unsigned int ENTER_PROGRAMMING_ATTEMPTS = 50;
131132

@@ -228,7 +229,7 @@ const byte CLOCKOUT = 9;
228229
#endif
229230

230231
// control speed of programming
231-
const byte BB_DELAY_MICROSECONDS = 4;
232+
const byte BB_DELAY_MICROSECONDS = 6;
232233

233234

234235

Diff for: Atmega_Hex_Uploader_Fixed_Filename/Atmega_Hex_Uploader_Fixed_Filename.ino

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Atmega hex file uploader (from SD card)
22
// Author: Nick Gammon
33
// Date: 22nd May 2012
4-
// Version: 1.25d // NB update 'Version' variable below!
4+
// Version: 1.25h // NB update 'Version' variable below!
55

66
// Version 1.1: Some code cleanups as suggested on the Arduino forum.
77
// Version 1.2: Cleared temporary flash area to 0xFF before doing each page
@@ -38,6 +38,7 @@
3838
// Version 1.25e: Added support for Crossroads' standalone programming board with 2 x 7-segment LEDs
3939
// Version 1.25f: Added support for Crossroads' standalone programming board with 1 x 7-segment LEDs
4040
// Version 1.25g: Allowed for 256 file names (ie. hex file names)
41+
// Version 1.25h: Slowed down bit-banged programming slightly to improve reliability
4142

4243
/*
4344
@@ -171,7 +172,7 @@ typedef enum {
171172
#include <SdFat.h>
172173
#include <EEPROM.h>
173174

174-
const char Version [] = "1.25g";
175+
const char Version [] = "1.25h";
175176

176177
const unsigned int ENTER_PROGRAMMING_ATTEMPTS = 2;
177178

@@ -260,7 +261,7 @@ Other leg of LED goes to Gnd.
260261
#endif
261262

262263
// control speed of programming
263-
const byte BB_DELAY_MICROSECONDS = 4;
264+
const byte BB_DELAY_MICROSECONDS = 6;
264265

265266
// target board reset goes to here
266267
const byte RESET = MSPIM_SS;

0 commit comments

Comments
 (0)