diff --git a/arch/arm/src/lpc17xx/lpc17_emacram.h b/arch/arm/src/lpc17xx/lpc17_emacram.h index 7d98106b12..5e8df85b31 100644 --- a/arch/arm/src/lpc17xx/lpc17_emacram.h +++ b/arch/arm/src/lpc17xx/lpc17_emacram.h @@ -132,8 +132,9 @@ * * 16384 <= ntx * (pktsize + 8 + 4) + nrx * (pktsize + 8 + 8) * - * If ntx == nrx and pktsize == 590, then you could have ntx = nrx = 13. In this - * case, you would need only 15,704 bytes of EMAC RAM (but be careful with alignment!). + * If ntx == nrx and pktsize == 590+2, then you could have ntx = nrx = 13. In this + * case, you would need only 15,756 bytes of EMAC RAM (but be careful with alignment! + * 15,756 is not well aligned.). */ #define LPC17_TXDESCTAB_SIZE (CONFIG_NET_NTXDESC*LPC17_TXDESC_SIZE) diff --git a/arch/arm/src/lpc17xx/lpc17_ethernet.c b/arch/arm/src/lpc17xx/lpc17_ethernet.c index b2fa43a4d6..6f684d3844 100644 --- a/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -1983,7 +1983,6 @@ static inline void lpc17_txavail_process(FAR struct lpc17_driver_s *priv) } net_unlock(state); - return OK; } /**************************************************************************** diff --git a/configs/olimex-lpc1766stk/ftpc/defconfig b/configs/olimex-lpc1766stk/ftpc/defconfig index adbacca26d..1072bba8b0 100644 --- a/configs/olimex-lpc1766stk/ftpc/defconfig +++ b/configs/olimex-lpc1766stk/ftpc/defconfig @@ -205,7 +205,7 @@ CONFIG_LPC17_SSP1=y # Ethernet driver options # CONFIG_PHY_AUTONEG=y -CONFIG_NET_EMACRAM_SIZE=8480 +CONFIG_NET_EMACRAM_SIZE=8512 CONFIG_NET_NTXDESC=7 CONFIG_NET_NRXDESC=7 # CONFIG_NET_WOL is not set diff --git a/configs/olimex-lpc1766stk/nettest/defconfig b/configs/olimex-lpc1766stk/nettest/defconfig index f53fe63f12..73c32b754e 100644 --- a/configs/olimex-lpc1766stk/nettest/defconfig +++ b/configs/olimex-lpc1766stk/nettest/defconfig @@ -206,7 +206,7 @@ CONFIG_LPC17_UART0=y # Ethernet driver options # CONFIG_PHY_AUTONEG=y -CONFIG_NET_EMACRAM_SIZE=7264 +CONFIG_NET_EMACRAM_SIZE=7296 CONFIG_NET_NTXDESC=6 CONFIG_NET_NRXDESC=6 # CONFIG_NET_WOL is not set diff --git a/configs/olimex-lpc1766stk/nsh/defconfig b/configs/olimex-lpc1766stk/nsh/defconfig index 0081588672..ef69f217c4 100644 --- a/configs/olimex-lpc1766stk/nsh/defconfig +++ b/configs/olimex-lpc1766stk/nsh/defconfig @@ -206,7 +206,7 @@ CONFIG_LPC17_SSP1=y # Ethernet driver options # CONFIG_PHY_AUTONEG=y -CONFIG_NET_EMACRAM_SIZE=7264 +CONFIG_NET_EMACRAM_SIZE=7296 CONFIG_NET_NTXDESC=6 CONFIG_NET_NRXDESC=6 # CONFIG_NET_WOL is not set diff --git a/configs/olimex-lpc1766stk/thttpd/defconfig b/configs/olimex-lpc1766stk/thttpd/defconfig index b8804d6b06..9846b7f232 100644 --- a/configs/olimex-lpc1766stk/thttpd/defconfig +++ b/configs/olimex-lpc1766stk/thttpd/defconfig @@ -206,7 +206,7 @@ CONFIG_LPC17_UART0=y # Ethernet driver options # CONFIG_PHY_AUTONEG=y -CONFIG_NET_EMACRAM_SIZE=15712 +CONFIG_NET_EMACRAM_SIZE=15776 CONFIG_NET_NTXDESC=13 CONFIG_NET_NRXDESC=13 # CONFIG_NET_WOL is not set diff --git a/configs/olimex-lpc1766stk/zmodem/defconfig b/configs/olimex-lpc1766stk/zmodem/defconfig index dc4d6bfd06..969d8d37b3 100644 --- a/configs/olimex-lpc1766stk/zmodem/defconfig +++ b/configs/olimex-lpc1766stk/zmodem/defconfig @@ -207,7 +207,7 @@ CONFIG_LPC17_SSP1=y # Ethernet driver options # CONFIG_PHY_AUTONEG=y -CONFIG_NET_EMACRAM_SIZE=7264 +CONFIG_NET_EMACRAM_SIZE=7296 CONFIG_NET_NTXDESC=6 CONFIG_NET_NRXDESC=6 # CONFIG_NET_WOL is not set