|
From: | vincent cui |
Subject: | Re: [lwip-users] lwip performance goes down if running with FreeRTOS |
Date: | Fri, 11 May 2012 06:46:43 +0000 |
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 ? From: lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden
On Behalf Of Krzysztof Weso?owski
I was working with STM32 Eth driver in last month, using manufacturer code as a starting point. Most performance issues was easy to track with LwIP debug configured on warning level - information about all pool and heap
running low are really useful. Also in code:
Lines in for should be in different order - changing descriptor after you released it to dma might cause extra problems. When in despeir i put ASSERTS in IRQ code to check all status bits and detet any problem. My driver used MTU sized RX buffers so i did not have to take care of linked descriptors with single frame. Regards, |
[Prev in Thread] | Current Thread | [Next in Thread] |