Search This Blog

Thursday, June 4, 2015

Set up debugger for BeagleBoneBlack and Eclipse

Today, I would like to show you how to set up debugger for development BeagleBoneBlack with Eclipse IDE. Let's see ...

1. First, install gdb-server on BBB

     $ sudo apt-get install gdb-server

2. install cross gdb on PC,
     2.1)  get it with apt-get
       $ apt-get install gdb-arm-linux-gnueabi
     2.2) If you can not install cross gdb package you can download sourcecode and build it from sourcecode instead.
http://www.gnu.org/software/gdb/download/
     
extract sourcecode and make cross gdb with ... 
       $  ./configure --target=arm-linux-gnueabi
       $ ./make -j4
       $ ./make install


3. open Eclipse and setup remote debugger


4. On BBB, set no asking password for the user. It was because the board always asking permission to run your application. This setting will prevent that.
  
   $ sudo visudo

   Then add this line at the bottom of the file
   
   username ALL=NOPASSWD: ALL



5. Now try to connect with gdb server on the BBB board. If all configurations were right, you should see the debug view like this ...

That is. Hope this tutorial could be useful for you. See you next time :)