Hi kir: I enable LWIP debug for detect memory and heap problem. Both are ok .
The code is used found the current received frame, then release it to DMA. From: [email protected] [mailto:[email protected]] On Behalf Of Krzysztof Weso?owski Sent: 2012年5月11日 15:10 To: Mailing list for lwIP users Subject: Re: [lwip-users] lwip performance goes down if running with FreeRTOS On Fri, May 11, 2012 at 8:46 AM, vincent cui <[email protected]<mailto:[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
