uisp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Uisp-dev] Bug in uisp?


From: Jason Kyle
Subject: Re: [Uisp-dev] Bug in uisp?
Date: Wed, 03 Mar 2004 08:39:39 +1300

At 13:29 02/03/2004 +0100, Joakim Arfvidsson wrote:
I will try to find another adapter...

I can send an entire program of any size before it fails. Also, sometimes I can actually do a second transfer before failing... about 1 time in 10.

If the timeout is more than a #define in the source I won't have any chance trying to change it:)

It's fairly embedded into the code, isn't just a define but is quite visible.


Send data routine (Serial.C):
int TSerial::Send(unsigned char* queue, int queue_size, int rec_queue_size,
                  int timeout)

There is a timeout parameter and it's set according to the operation, although it appears to be in seconds so my theory is probably not valid.

For a laugh, and maybe a result?, edit the file uisp/src/AvrAtmel.C and -everywhere- you see something -like- Send(set_device, 2, 1) change the *last* number to 1 or 2 more i.e. Send(set_device, 2, 2) then recompile and see what happens.

Jason


Thanks,
Joakim Arfvidsson



On 2004-03-01, at 21.51, Jason Kyle wrote:

At 08:51 29/02/2004 +0100, Joakim Arfvidsson wrote:
I'm using uisp (version 20030618) with Mac OS X 10.3.2 and an Aten USB-serial converter. I do not know the chipset of that converter. I have a home-made AVR910 programmer connected to the serial port.

The problem I'm having is that I need to pull and reconnect the USB-serial converter to the mac between almost every transfer! Sometimes it works for several transfers. Even a small chat with the programmer getting the list of programmable chips counts in this respect.

The error message is "Programmer not responding". I can always do echo

All USB-Serial adapters won't send received serial data back to the host for some period of ms (minimum is 1ms, some are as high as 16ms), or when the FIFO buffer is full. What this means for AVR910 programmers is the response characters are often delayed and uisp may have some fixed timimg parameters which only work properly with real UARTs. Probably something that could be tweeked.

Try a different USB-Serial adapter and/or check carefully that the "send not-full FIFO delay" is as short as possible. Failing that switch to an STK500 compatiable programmer.

Jason Kyle




_______________________________________________
Uisp-dev mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/uisp-dev



_______________________________________________
Uisp-dev mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/uisp-dev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]