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 https://bitbucket.org/nuttx/nuttx $ git clone https://bitbucket.org/nuttx/apps $ cd 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>
Thanks for this post. I played with Nuttx a while back on the inexpensive ARM Cortex-M3 STM32F103R8T6 MINI STM32 Development Board, aka “Cortex Study Board” by LC STUDIO. I have way too many irons in the fire but I need to really try to get back to Nuttx
http://dzrmo.wordpress.com/2013/01/13/arm-development/
Hi celem,
I think the best way to get used to nuttx is developing some project with it.
In above example, what command is the “ddd nuttx &” implementing? thanks in advance.
I now know what ddd is… and have installed it on my computer (graphical debugger)
Hi Carol,
Exact! DDD is a graphical interface to communicate with GDB. []’s, Alan
I had to install: sudo apt install zlib1g-dev and sudo apt install ddd