This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: CS8900: Tx interrupt lost
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>,"'Todd Malsbary'" <toddm at iobjects dot com>
- Subject: RE: [ECOS] CS8900: Tx interrupt lost
- From: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Date: Tue, 14 Aug 2001 14:08:56 -0600
- Cc: "'Peter Graf'" <p dot graf at itknet dot de>,<ecos-discuss at sourceware dot cygnus dot com>
Thanks Todd.
I commented out the following line
// CS8900_TxCMD = PP_TxCmd_TxStart_5; // Start more-or-less
immediately
and uncommmented the following line.
CS8900_TxCMD = PP_TxCmd_TxStart_Full; // Start only when all data
sent to chip
These came from devs\eth\arm\edb7xxx\current\src\if_edb7xxx.c
It now works. I think because I'm sending 30K+ in a very short time
that sending immediately was not a good thing. I had tried breaking up
my message into chunks of 1040 bytes, but that didn't change anything.
Now with the new setting I can send a full 30K+ in one write () command!
I think this was partially caused by the fact that I'm running at
18.432MHz rather than 74.728MHz.
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[mailto:ecos-discuss-owner@sources.redhat.com] On Behalf Of Jonathan
Larmour
Sent: Tuesday, August 14, 2001 10:56 AM
To: Todd Malsbary
Cc: Peter Graf; ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] CS8900: Tx interrupt lost
Todd Malsbary wrote:
>
> i had this problem and i believe it was caused by transmit underruns
> (which come in the form of a buffer event). having the transmit
> underrun event handler release the buffer instead of the other code
> eliminated having to wait for a timeout. you can also change the
> transmit command to wait until more bytes have been written to the
> controller before starting packet transmission.
If you think this change would be useful for everyone, could you make a
patch?
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223)
271062
Maybe this world is another planet's Hell -Aldous Huxley ||
Opinions==mine