Day: November 1, 2014

Running NuttX in the simulator

If you don’t have a board supported by NuttX or if you want to debug an application without resource limitation of embedded boards, then running NuttX in the simulator is a nice idea.

All you need to do is:

$ git clone
$ git clone
$ cd nuttx/tools
$ ./ sim/nsh
$ cd ..
$ make
$ ddd nuttx &

(gdb) b main
Breakpoint 1 at 0x4015ab: file up_head.c, line 74.

(gdb) r
Starting program: /comum/workspace/Basic/nuttx-git/nuttx/nuttx 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
Breakpoint 1, main (argc=1, argv=0x7fffffffe2f8, envp=0x7fffffffe308) at up_head.c:74

(gdb) c
[New Thread 0x7ffff75fa700 (LWP 26105)]

NuttShell (NSH)