From 736e5224b878e6dfd296f2eafa5220de30360926 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 17 Jan 2016 08:11:59 -0600 Subject: [PATCH] Update README --- configs/arduino-mega2560/README.txt | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/configs/arduino-mega2560/README.txt b/configs/arduino-mega2560/README.txt index 25f339d7a7..7194f4e5a1 100644 --- a/configs/arduino-mega2560/README.txt +++ b/configs/arduino-mega2560/README.txt @@ -86,19 +86,20 @@ Configurations 1. As of 2015-01-16, the default static memory usage is: - $ size nuttx.elf - text data bss dec hex filename - 34348 2117 944 37409 9221 nuttx.elf + $ size nuttx.elf + text data bss dec hex filename + 34348 2117 944 37409 9221 nuttx.elf And dynamic, heap usage: - nsh> free - total used free largest - Mem: 4736 1768 2968 2968 + nsh> free + total used free largest + Mem: 4736 1768 2968 2968 - There is plenty of FLASH space, so many additional NSH featurs - could be enabled. There is, however, not a lot of free SRAM. + There is plenty of FLASH space but not a lot of free SRAM. This + SRAM usage is due primarily to constant strings defined by NSH. - NOTE: There is partial support for the MEMX pointer in apps/nshlib. - If that support were completed then some reduction of the static - .data allocation could be achieved by enabling the MEMX pointer. + NOTE: I investigated the possibility of adding IPTR/IOBJ + qualifiers in the NSH library and moving the strings to FLASH. + This is still a possibility but would requires some extensive + changes to NSH.