Update README files

This commit is contained in:
Gregory Nutt 2015-05-25 13:54:17 -06:00
parent 9c939cd519
commit f15ed79456
2 changed files with 40 additions and 26 deletions

View File

@ -696,42 +696,52 @@ Where <subdir> is one of the following:
2015-5-23 2015-5-23
The nuttx.bin minnsh firmware file size: The nuttx.bin minnsh firmware file size:
$ ls -l nuttx.bin $ ls -l nuttx.bin
-rwxr-xr-x 1 alan alan 17409 May 23 11:01 nuttx.bin -rwxr-xr-x 1 alan alan 17409 May 23 11:01 nuttx.bin
$ arm-none-eabi-size nuttx $ arm-none-eabi-size nuttx
text data bss dec hex filename text data bss dec hex filename
16367 193 704 17264 4370 nuttx 16367 193 704 17264 4370 nuttx
This is serial console output (and input) : This is serial console output (and input) :
NuttShell (NSH) NuttShell (NSH)
nsh> ls /dev nsh> ls /dev
nsh: ls: command not found nsh: ls: command not found
No filesystem, no "ls" command :-) No filesystem, no "ls" command :-)
nsh> ? nsh> ?
help usage: help [-v] [<cmd>] help usage: help [-v] [<cmd>]
? exec free mb mw xd ? exec free mb mw xd
echo exit help mh ps echo exit help mh ps
nsh> free nsh> free
total used free largest total used free largest
Mem: 6464 1816 4648 4648 Mem: 6464 1816 4648 4648
nsh> echo "NuttX is magic!" nsh> echo "NuttX is magic!"
NuttX is magic! NuttX is magic!
nsh> nsh>
Replace NSH with apps/examples/hello: Replace NSH with apps/examples/hello:
$ ls -l nuttx.bin $ ls -l nuttx.bin
-rwxr-xr-x 1 alan alan 12873 May 23 11:05 nuttx.bin -rwxr-xr-x 1 alan alan 12873 May 23 11:05 nuttx.bin
$ arm-none-eabi-size nuttx $ arm-none-eabi-size nuttx
text data bss dec hex filename text data bss dec hex filename
11829 193 704 12726 31b6 nuttx 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: nsh:
--- ---

View File

@ -495,20 +495,24 @@ Atmel Studio 6.1
Loading Code into FLASH: Loading Code into FLASH:
----------------------- -----------------------
Tools menus: Tools -> Device Programming. Tools menus: Tools -> Device Programming.
Debugging the NuttX Object File Debugging the NuttX Object File
------------------------------- -------------------------------
1) Rename object file from nutt to nuttx.elf. That is an extension that 1) Rename object file from nutt to nuttx.elf. That is an extension that
will be recognized by the file menu. will be recognized by the file menu.
2) File menu: File -> Open -> Open object file for debugging 2) File menu: File -> Open -> Open object file for debugging
- Select nuttx.elf object file - Select nuttx.elf object file
- Select AT91SAML21J18 - Select AT91SAML21J18
- Select files for symbols as desired - Select files for symbols as desired
- Select debugger - Select debugger
3) Debug menu: Debug -> Start debugging and break 3) Debug menu: Debug -> Start debugging and break
- This will reload the nuttx.elf file into FLASH - This will reload the nuttx.elf file into FLASH
JTAG JTAG