Local development and gdb debugging with NetBeans, a step by step guide

Please see this post for the layout of the board: