Enter inside your NuttX Workspace, i.e.:
$ cd nuttxspace/
Enter inside /nuttx and update it:
$ cd nuttx/
$ git pull
Go to /apps directory and update it:
$ cd ../apps/
$ git pull
Return to /nuttx and clear the repository:
$ cd –
$ make distclean
Configure the stm32ldiscovery to use the chrono board profile:
$ ./tools/configure.sh stm32ldiscovery/chrono
Copy files
Refreshing…
Compile it:
$ make
Flash the Firmware:
$ openocd -f interface/stlink.cfg -f target/stm32l1.cfg -c init -c “reset halt” -c “flash write_image erase nuttx.bin 0x08000000”
Open other terminal and execute:
$ ./tools/ocdconsole.py
Return to previous terminal and execute:
$ openocd -f interface/stlink.cfg -f target/stm32l1.cfg
You should see the NuttX Shell starting in the other terminal:
$ ./tools/ocdconsole.py
==Link Activated
NuttShell (NSH)
nsh>
Just type “help” or “?” to see if chrono app is there if so run it:
nsh> ?
help usage: help [-v] []
? echo exit hexdump ls mh sleep xd
cat exec help kill mb mw usleep
Builtin Apps:
chrono slcd
nsh> chrono
Opening /dev/slcd0 for read/write access
Attributes:
rows: 1 columns: 6 nbars: 4
max contrast: 7 max brightness: 0
button_daemon: Running
button_daemon: Opening /dev/buttons
button_daemon: Supported BUTTONs 0x01