[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. 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Debugging Remote C/C++ application with Eclipse and Beaglebone black
On 09/03/2014 15:41, Gibson Justian wrote: 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. Thanking you, Gibson.J If you want to debug remotely then the easiest way to do it is through the ethernet connection and using gdbserver. There are plenty of tutorials online about how to do this. Once you have figured out how to start and connect to gdbserver, then I would progress onto getting it working in eclipse, that is a bit harder and requires some eclipse specific knowledge, again there will be tutorials online if you search google. Good Luck! Jack. -- 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Debugging Remote C/C++ application with Eclipse and Beaglebone black
To get started with BBB and Eclipse have a look at the blog of Derek Molloy. There you can find some video tutorials like this one. http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone -for-c-development/ 2014-03-09 17:59 GMT+01:00 Jack Mitchell m...@communistcode.co.uk: On 09/03/2014 15:41, Gibson Justian wrote: 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. Thanking you, Gibson.J If you want to debug remotely then the easiest way to do it is through the ethernet connection and using gdbserver. There are plenty of tutorials online about how to do this. Once you have figured out how to start and connect to gdbserver, then I would progress onto getting it working in eclipse, that is a bit harder and requires some eclipse specific knowledge, again there will be tutorials online if you search google. Good Luck! Jack. -- 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 beagleboard+unsubscr...@googlegroups.com. 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [beagleboard] Debugging Remote C/C++ application with Eclipse and Beaglebone black
From: Gibson Justian gibson@gmail.com Reply-To: beagleboard@googlegroups.com Date: Sunday, March 9, 2014 at 7:41 AM To: beagleboard@googlegroups.com 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 beagleboard+unsubscr...@googlegroups.com. 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.