From: Gibson Justian <[email protected]> Reply-To: <[email protected]> Date: Sunday, March 9, 2014 at 7:41 AM To: <[email protected]> Subject: [beagleboard] Debugging Remote C/C++ application with Eclipse and Beaglebone black
> Hi, > I am new in using the Eclipse IDE and the Beaglebone Black. I run a > debian distribution in the beaglebone black (built from Robert C Nelson's git > )and the host machine is the debian gnu linux in Vmware , apparently the > application is cross compiled with arm-linux-gnueabihf using the linaro > toolchain. I have written a sample C/C++ code to flash the user led3 and it > works perfectly. > > Problem: > > 1). How to debug the code using the FTDI cable as suggested in the SRM and I > intend to use a gdb debugger along with eclipse to step-in the program and see > how it works. > > Has anyone succeeded in setting up the debug environment in eclipse especially > with the beaglebone black using the FTDI cable. You can only use gdbserver to debug user applications, not kernel mode code. If you want to use a USB100V2 FTDI based JTAG, you have to use Code Composer Studio from TI. Search Google for CCSV5. If you are using gdbserver, you simply start it on your BBB and specify the port that GDB will connect to. Then you can use any GDB based GUI to connect to the BBB using something like "gdb remote <ip address> <port>". I haven¹t used this in a while, so you may want to check the exact form of the command. GDB is built into Eclipse, so you only have to setup a debug configuration and it will execute the same command. There are plenty of example on the net to show you how this is done. Remember to use the -g option when compiling to include the debug symbols. Regards, John > > Thanking you, > Gibson.J > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
