EmbDev.net

Forum: ARM programming with GCC/GNU tools Ethernet ISR problem in AT91SAM7x256


Author: Ramesh Kumar (kpcta)
Posted on:

Rate this post
0 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.

Author: Giovanni Di sirio (gdisirio)
Posted on:

Rate this post
0 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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.