bugAVR In-System Programmer - Bugs: bug #15189, uisp somtimes fails to work in Mac...

 
 

bug #15189: uisp somtimes fails to work in Mac OS X due to a small bug in PL 2303 driver

Submitted by:  None
Submitted on:  Sun 11 Dec 2005 08:24:42 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 11 Dec 2005 08:24:42 PM UTC, original submission:

There seems to be a bug in the latest version of Prolific PL-2303 Mac OS X driver (V1.1.0b1), causing uisp not to be able to connect to Stk500 at first try. Retrying helps. This bug implements a retry around Stk500 initialisation.

--- uisp-20050207/src/Stk500.C 2004-12-28 15:54:11.000000000 +0100
+++ uisp.modified/src/Stk500.C 2005-12-11 21:20:15.000000000 +0100
@@ -625,8 +625,19 @@

TByte num_ext_parms = 3;

+#define MAXTRY 5
memcpy(buf, pSTK500, sizeof(pSTK500));
- Send(buf, sizeof(pSTK500), sizeof(pSTK500_Reply));
+ for (int i = 0; i < MAXTRY; i++) {
+ try {
+ Send(buf, sizeof(pSTK500), sizeof(pSTK500_Reply));
+ break;
+ } catch (Error_Device& errDev) {
+ errDev.print();
+ if (i < MAXTRY)
+ Info(0,"Retrying %d more times.\n", MAXTRY - i - 1);
+ }
+ }
+#undef MAXTRY
if (memcmp(buf, pSTK500_Reply, sizeof(pSTK500_Reply)) != 0) {
throw Error_Device ("[VP 1] Device is not responding correctly."); }

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Sun 11 Dec 2005 08:24:42 PM UTCNoneCarbon-Copy-=>Added pekka --DOT-- nikander --AT-- iki --DOT-- fi

Back to the top


Powered by Savane 3.1-cleanup