From 3f249bf3854ebb4d7045dc7276888e804d20305a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 25 May 2015 13:54:17 -0600 Subject: [PATCH] Update README files --- configs/lpcxpresso-lpc1115/README.txt | 62 ++++++++++++++++----------- configs/saml21-xplained/README.txt | 4 ++ 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/configs/lpcxpresso-lpc1115/README.txt b/configs/lpcxpresso-lpc1115/README.txt index 60d1205e4c..60ee8e9925 100644 --- a/configs/lpcxpresso-lpc1115/README.txt +++ b/configs/lpcxpresso-lpc1115/README.txt @@ -696,42 +696,52 @@ Where is one of the following: 2015-5-23 The nuttx.bin minnsh firmware file size: - $ ls -l nuttx.bin - -rwxr-xr-x 1 alan alan 17409 May 23 11:01 nuttx.bin + $ ls -l nuttx.bin + -rwxr-xr-x 1 alan alan 17409 May 23 11:01 nuttx.bin - $ arm-none-eabi-size nuttx - text data bss dec hex filename - 16367 193 704 17264 4370 nuttx + $ arm-none-eabi-size nuttx + text data bss dec hex filename + 16367 193 704 17264 4370 nuttx - This is serial console output (and input) : + This is serial console output (and input) : - NuttShell (NSH) - nsh> ls /dev - nsh: ls: command not found + NuttShell (NSH) + nsh> ls /dev + nsh: ls: command not found - No filesystem, no "ls" command :-) + No filesystem, no "ls" command :-) - nsh> ? - help usage: help [-v] [] + nsh> ? + help usage: help [-v] [] - ? exec free mb mw xd - echo exit help mh ps - nsh> free - total used free largest - Mem: 6464 1816 4648 4648 + ? exec free mb mw xd + echo exit help mh ps + nsh> free + total used free largest + Mem: 6464 1816 4648 4648 - nsh> echo "NuttX is magic!" - NuttX is magic! - nsh> + nsh> echo "NuttX is magic!" + NuttX is magic! + nsh> - Replace NSH with apps/examples/hello: + Replace NSH with apps/examples/hello: - $ ls -l nuttx.bin - -rwxr-xr-x 1 alan alan 12873 May 23 11:05 nuttx.bin + $ ls -l nuttx.bin + -rwxr-xr-x 1 alan alan 12873 May 23 11:05 nuttx.bin - $ arm-none-eabi-size nuttx - text data bss dec hex filename - 11829 193 704 12726 31b6 nuttx + $ arm-none-eabi-size nuttx + text data bss dec hex filename + 11829 193 704 12726 31b6 nuttx + + 2015-05-25: + Some additional commits from Alan reduce this FLASH size by + about another kilobyte. That changes: (1) disable stack + dumping on assertions,and (2) make some FLASH data structures + smaller. + + Almost 2Kb of the remaining size is due to some arithmetic + functions drawn from libgcc.a. Alan is currently looking + into ways to eliminate thost libgcc.a objects from the link. nsh: --- diff --git a/configs/saml21-xplained/README.txt b/configs/saml21-xplained/README.txt index dca433e33a..709a93794c 100644 --- a/configs/saml21-xplained/README.txt +++ b/configs/saml21-xplained/README.txt @@ -495,20 +495,24 @@ Atmel Studio 6.1 Loading Code into FLASH: ----------------------- + Tools menus: Tools -> Device Programming. Debugging the NuttX Object File ------------------------------- + 1) Rename object file from nutt to nuttx.elf. That is an extension that will be recognized by the file menu. 2) File menu: File -> Open -> Open object file for debugging + - Select nuttx.elf object file - Select AT91SAML21J18 - Select files for symbols as desired - Select debugger 3) Debug menu: Debug -> Start debugging and break + - This will reload the nuttx.elf file into FLASH JTAG