cancel
Showing results for 
Search instead for 
Did you mean: 

ST10FLASHER_API

Posted on May 15, 2007 at 12:01

ST10FLASHER_API

3 REPLIES 3
Posted on May 14, 2007 at 17:27

I'm having some trouble with a ST10 API function, specificly the one defined as ST10FLASHER_API unsigned int PASCAL InitMonitor(char *target); (in our code). Once an attempt has been made to update our product's firmware, without powering it on, which is an accident that is very imaginable for a consumer to make, the commport seems to get stuck on this function from that point on. It never works for this function again, even after reinstalling the application and restarting the PC. The only thing we haven't tried is reinstalling the OS. When this function is called in this condition, this error is gotten:

InitMonitor failed.

Monitor: BSL: No acknowledge recieved.

Please reset your application and reload the monitor.

Com: Recieve: Timeout or Loss of data

The error gives the error code 0x0012f158. Does anyone have any idea if anything in the dll could be locking the comm port up?

Jonathan

raffaele
Associate II
Posted on May 15, 2007 at 07:48

Hi,

you use a call like :

void main(void)

{

char info_target[256];

InitMonitor(info_target);

}

?

Posted on May 15, 2007 at 12:01

Yes, similar to that. Here is what I have:

void main(void)

{

char target[128] = '''';

unsigned int Flag = 1;

Flag &= (unsigned int)InitMonitor(target);

if(0 == Flag)

{

Flag &= (unsigned int)GetError(error);

if(0 == Flag)

{

AfxMessageBox(error);

}

return;

}

}