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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.