120 lines
3.2 KiB
Diff
120 lines
3.2 KiB
Diff
--- uisp-20050207/src/MotIntl.C.orig 2004-12-28 15:39:38.000000000 +0100
|
|
+++ uisp-20050207/src/MotIntl.C 2005-05-01 18:03:24.000000000 +0200
|
|
@@ -104,6 +104,7 @@
|
|
TAddr hash_cnt=0;
|
|
TByte byte;
|
|
struct timeval t1, t2;
|
|
+ int err_count = 0;
|
|
|
|
device->ResetMinMax();
|
|
|
|
@@ -174,9 +175,14 @@
|
|
if (verify){
|
|
TByte rbyte = device->ReadByte(addr);
|
|
if (rbyte != byte){
|
|
- Info(0, "%s error at address 0x%x: file=0x%02x, mem=0x%02x\n",
|
|
- device->TellActiveSegment(), addr,
|
|
- (int) byte, (int) rbyte);
|
|
+ if (++err_count < 15)
|
|
+ {
|
|
+ Info(0, "%s error at address 0x%x: file=0x%02x, mem=0x%02x\n",
|
|
+ device->TellActiveSegment(), addr,
|
|
+ (int) byte, (int) rbyte);
|
|
+ }
|
|
+ else if (err_count == 15)
|
|
+ Info(0, "...\n");
|
|
}
|
|
}
|
|
p+=2; addr++;
|
|
@@ -218,6 +224,11 @@
|
|
}
|
|
|
|
} while(fgets(line_buf, MI_LINEBUF_SIZE, fd)!=NULL);
|
|
+
|
|
+ if (err_count)
|
|
+ {
|
|
+ Info(0, "%d errors.\n", err_count);
|
|
+ }
|
|
}
|
|
|
|
void TMotIntl::UploadIntel(){
|
|
@@ -230,6 +241,7 @@
|
|
TByte byte;
|
|
TByte rec_type;
|
|
struct timeval t1, t2;
|
|
+ int err_count = 0;
|
|
|
|
InfoOperation("", device->TellActiveSegment());
|
|
|
|
@@ -277,9 +289,14 @@
|
|
if (verify){
|
|
TByte rbyte = device->ReadByte(addr);
|
|
if (rbyte != byte){
|
|
- Info(0, "%s error at address 0x%x: file=0x%02x, mem=0x%02x\n",
|
|
+ if (++err_count < 15)
|
|
+ {
|
|
+ Info(0, "%s error at address 0x%x: file=0x%02x, mem=0x%02x\n",
|
|
device->TellActiveSegment(), addr,
|
|
(int) byte, (int) rbyte);
|
|
+ }
|
|
+ else if (err_count == 15)
|
|
+ Info(0, "...\n");
|
|
}
|
|
}
|
|
p+=2; addr++;
|
|
@@ -327,6 +344,11 @@
|
|
|
|
|
|
} while(fgets(line_buf, MI_LINEBUF_SIZE, fd)!=NULL);
|
|
+
|
|
+ if (err_count)
|
|
+ {
|
|
+ Info(0, "%d errors.\n", err_count);
|
|
+ }
|
|
|
|
if (upload){device->FlushWriteBuffer();}
|
|
|
|
--- uisp-20050207/src/Avr.C.orig 2005-02-07 23:55:08.000000000 +0100
|
|
+++ uisp-20050207/src/Avr.C 2005-05-01 19:37:11.000000000 +0200
|
|
@@ -175,6 +175,8 @@
|
|
if (vendor_code == 0x1e) {
|
|
if ((part_family == 0x51) || (part_family == 0x52))
|
|
vendor = "Atmel AT89";
|
|
+ else if (part_family == 0x91)
|
|
+ vendor = "Atmel AVR 2k";
|
|
else
|
|
vendor = "Atmel AVR";
|
|
}
|
|
@@ -214,6 +216,7 @@
|
|
}
|
|
if (parts[i].part_family == 0x0) {
|
|
throw Error_Device ("Probably the AVR MCU is not in the RESET state.\n"
|
|
+ "Maybe powersupply is off?\n"
|
|
"Check it out and run me again.");}
|
|
|
|
if (!GetCmdParam("--download", false))
|
|
@@ -280,7 +283,12 @@
|
|
|
|
t_wd_flash = CALC_FLASH_T_wd(voltage);
|
|
t_wd_eeprom = CALC_EEPROM_T_wd(voltage);
|
|
+ Info(3, "Voltage %.1f V\n", voltage);
|
|
}
|
|
+ else
|
|
+ {
|
|
+ Info(3, "Voltage %.1f V\n", AVR_DEFAULT_VOLTAGE);
|
|
+ }
|
|
|
|
Info(3, "FLASH Write Delay (t_wd_flash): %ld us\n"
|
|
"EEPROM Write Delay (t_wd_eeprom): %ld us\n",
|
|
--- uisp-20050207/ChangeLog.orig 2005-02-07 23:15:47.000000000 +0100
|
|
+++ uisp-20050207/ChangeLog 2005-05-01 19:42:15.000000000 +0200
|
|
@@ -1,3 +1,8 @@
|
|
+2005-04-30 Juergen Weigert <jw@suse.de>
|
|
+
|
|
+ * truncate verify error printing
|
|
+ * My ATtiny2313 requires page mode
|
|
+
|
|
2005-02-07 Margarita Manterola <margamanterola@gmail.com>
|
|
|
|
Release version 20050207
|