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://git.code.sf.net/p/nuttx/git nuttx
$ cd nuttx/nuttx/tools
$ ./configure.sh 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/libthread_db.so.1".
Breakpoint 1, main (argc=1, argv=0x7fffffffe2f8, envp=0x7fffffffe308) at up_head.c:74

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

NuttShell (NSH)
nsh> 
Advertisements

5 thoughts on “Running NuttX in the simulator

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s