On Fri, May 11, 2012 at 8:46 AM, vincent cui <[email protected]>wrote:

>  ** **
>
> HI :****
>
> ** **
>
> You use MTU SIZE as RX buffer,  in ST code, it define RX buffer like
> uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE];****
>
> ** **
>
> So, you only set ETH_RXBUFNB to 1 ?****
>
> **
>
No, as in ST code i use ETH_RX_BUF_SIZE >= MTU size and multiple buffers.
Hovewer in RX interrupt i can assume that only current buffer has been
filled.

It might be useful if you to attach ISR code and ETH_Get_Received_Frame_
interrupt();

Can you explain what this code do:

>   /* Check if received frame with multiple DMA buffer segments */
>   if (DMA_RX_FRAME_infos->Seg_Count > 1)
>   {
>     DMARxNextDesc = DMA_RX_FRAME_infos->FS_Rx_Desc;
>   }
>   else
>   {
>     DMARxNextDesc = frame.descriptor;
>   }


Regards,
Krzysztof
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to