µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: twoerner on July 09, 2007, 11:08:35 PM

Title: USE_IP_STATS
Post by: twoerner on July 09, 2007, 11:08:35 PM
platform: M5223x
app: uTasker sample app V1.3 with SP1-4

I just wanted to point out that simply commenting out '#define USE_IP_STATS' causes the compile to fail. There are 4 places in Hardware\M5223X.c that call fnIncrementEthernetStats(), only one of which is protected by the required '#ifdef USE_IP_STATS'.
Title: Re: USE_IP_STATS
Post by: mark on July 09, 2007, 11:54:13 PM
Hi

You are correct, I can confirm this and have corrected it so that all occurances of fnIncrementEthernetStats() in the M5223X hardware module are removed when USE_IP_STATS is not defined.

I also verified that the other processor projects are not affected.

This counter was added some time back to verify the overrun rate in particular networks when reducing the rx buffer count and with/without the use of smaller rx buffer chaining (configurable by NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE (6 recommended) and USE_MULTIPLE_BUFFERS (not generally used))

Thanks again.

Mark