From 5ff45ea1e05bab9bbb36eeab2bacaea3bea783a2 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 28 Nov 2010 14:13:58 +0000 Subject: [PATCH] nettest now uses only 8Kb for packet buffers git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3143 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 7 ++++++- Documentation/NuttX.html | 8 +++++++- configs/olimex-lpc1766stk/nettest/defconfig | 4 ++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8db65a1e1fb..2fad0a5f7f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1367,6 +1367,11 @@ * net/send.c -- Check if the destination IP address is in the ARP table. If not, then don't consider the packet sent. It won't be, an ARP packet will go out instead. - + * arch/arm/src/lpc17xx/lpc17_emacram.h and lpc17_allocateheap.c -- The Ethernet + logic was using all of AHB SRAM Bank0 for Ethernet packet buffers (16Kb). An + option was added to limit the amount of SRAM used for packet buffering and to + re-use any extra Bank0 memory for heap. configs/olimex-lpc1766stk/nettest + now uses only 8Kb at the beginning of Bank0; the 8Kb at the end of Bank0 is + included in the heap diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index b150f99d628..9709a8fd842 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: November 27, 2010

+

Last Updated: November 28, 2010

@@ -1988,6 +1988,12 @@ nuttx-5.15 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> * net/send.c -- Check if the destination IP address is in the ARP table. If not, then don't consider the packet sent. It won't be, an ARP packet will go out instead. + * arch/arm/src/lpc17xx/lpc17_emacram.h and lpc17_allocateheap.c -- The Ethernet + logic was using all of AHB SRAM Bank0 for Ethernet packet buffers (16Kb). An + option was added to limit the amount of SRAM used for packet buffering and to + re-use any extra Bank0 memory for heap. configs/olimex-lpc1766stk/nettest + now uses only 8Kb at the beginning of Bank0; the 8Kb at the end of Bank0 is + included in the heap pascal-2.1 2010-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr> diff --git a/configs/olimex-lpc1766stk/nettest/defconfig b/configs/olimex-lpc1766stk/nettest/defconfig index be6fb996037..2520b4737f4 100755 --- a/configs/olimex-lpc1766stk/nettest/defconfig +++ b/configs/olimex-lpc1766stk/nettest/defconfig @@ -206,7 +206,11 @@ CONFIG_PHY_KS8721=y CONFIG_PHY_AUTONEG=y CONFIG_PHY_SPEED100=n CONFIG_PHY_FDUPLEX=y +CONFIG_NET_EMACRAM_SIZE=8192 +CONFIG_NET_NTXDESC=9 +CONFIG_NET_NRXDESC=9 CONFIG_NET_REGDEBUG=n + # # General build options #