Ethernet ISR problem in AT91SAM7x256

OP #1174011
Rate this post
useful
not useful
Hello All,
                   I'm using ATMEL evaluation board using the chip
AT91SAM7x256.

                       There i downloaded sample code for Emac (
Ethernet) given by ATMEL. It is working . In that packet reception as
polling . But i want to do that in EMAC Interrupt. So i called the same
Emac_poll ( ) function in EMAC RxISR.

                       I'm transmitting pkt per 20msec and pkt size is
214 bytes. From that i'm facing the problem of BNA ( Buffer Not
Available) continuously , also i cleared the BNA bit in rx register ,
but it happens continuously.

No of Rx Buffers - 16
size of each Rx Buff - 128 bytes

                        Please anyone give me your suggesion or the code
used for EMAC ISR.

Waiting for reply,
kpcta.
#1174012
Rate this post
useful
not useful
Ramesh Kumar wrote:
Hello, within my project I created a web demo using the AT91SAM7x256,
the demo uses an EMAC driver not related to the ATMEL code and it uses
both the transmit and receive interrupt sources.

I hope this can help.
http://chibios.sourceforge.net

The driver is under ./ports/ARM7-AT91SAM7x256

The demo works on an Olimex board that uses a Micrel PHY, the driver may
require small changes if your board uses a different PHY.

regards,
Giovanni

> Hello All,
>                    I'm using ATMEL evaluation board using the chip
> AT91SAM7x256.
>
>                        There i downloaded sample code for Emac (
> Ethernet) given by ATMEL. It is working . In that packet reception as
> polling . But i want to do that in EMAC Interrupt. So i called the same
> Emac_poll ( ) function in EMAC RxISR.
>
>                        I'm transmitting pkt per 20msec and pkt size is
> 214 bytes. From that i'm facing the problem of BNA ( Buffer Not
> Available) continuously , also i cleared the BNA bit in rx register ,
> but it happens continuously.
>
> No of Rx Buffers - 16
> size of each Rx Buff - 128 bytes
>
>                         Please anyone give me your suggesion or the code
> used for EMAC ISR.
>
> Waiting for reply,
> kpcta.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now