This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Slow serial transfer to redboot


I had a similar problem when trying to download to an edb7111-2 board.
It wasn't quite that severe, but here was my problem.

The tool I was using had too much of a delay for the uspin () function
which was used for a delay in between each byte sent.  The function is
below.  I modified the 2000 to a much smaller value, and now I don't
have any problems.  If you have the source code for your download tool
you might be able to find a similar solution.

static void
uspin(int len)
{
    volatile int cnt;
    while (--len >= 0) {
        for (cnt = 1;  cnt < 2000;  cnt++) ;
    }
}

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Peter Blair
Sent: Friday, August 17, 2001 12:40 PM
To: ecos-discuss@sourceware.cygnus.com
Subject: [ECOS] Slow serial transfer to redboot


Regards All,

I've been experiencing extremely slow transfer rates when downloading my
srec applications to an i386 target from both NT4 & 2000 machines.

I've tested with multiple cables to numerous target hosts from multiple
source hosts with no change.  I've been using the pre-compiled redboot
.BIN image from the sources.redhat.com site, and was wondering if this
build of redboot has given anyone else any trouble.

The strange part is that the first burst is quite quick, and I am able
to transfer 2k with no trouble, but after that initial transfer, the
rate drops dramatically.  I left the download to run overnight, and
checked the next morning to see that it had taken 5 hours to transfer
the file (while running at 38400 baud.

Thanks for you time,
Peter Blair


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]