| Cannot use Remote Debugging in Eclipse CDT Luna with Beaglebone black [message #1638882]
||Fri, 27 February 2015 10:42
| Raj Bharath RB
Registered: February 2015
I am newbie and am facing problem with remote debugging in both automatic and manual remote launch while I am able to build project in Eclipse and execute it in my Beaglebone black Rev C. I have gone through many posts but nothing worked out after several days of trying.
I have installed Eclipse CDT Luna in Windows 7 (64 bit) PC and debian wheezy (dated 2014-05-14) in BBB. Kernel version is 3.8.13-bone50. I followed the link (Http link: jkuhlm.bplaced.net/hellobone/). As in the last part of step 7, when I configure 'Run configurations' to execute the binary in BBB by creating new configuration under 'C/C++ Remote application', 'hellobone Debug'comes in default. So, I had to change the name as 'hellobone Default' and make sure the field 'C/C++ Application' has "Debug/TestARM5" or else it says that program does not exist. But in the end, I am able to run the file successfully in the BBB as the output in the link.
1) Next is the Automatic Remote Debugging. I followed the step 8 in the link and when I debug, I get the following output in the console:
chmod ugo+x /home/debian/BBBTest/TestARM5;gdbserver :2345 /home/debian/BBBTest/TestARM5;exit
root@beaglebone:~# chmod ugo+x /home/debian/BBBTest/TestARM5;gdbserver :2345 /ho
Also a dialog box mentioning that "Could not start gdbserver on the remote host. See console output for more details." Also, I could find gdbserver installed in BBB and also I gave "/usr/bin/gdbserver" in the gdbserver settings of the Debugger in Eclipse but I got the same error.
2) Then I tried the Manual Remote launch as in the Figure 3 of the link ( Http link: hertaville.com/2013/01/11/remote-debugging/) eventhough it is for Rasperry PI.
I typed "sudo gdbserver 192.168.1.36:12345 /home/debian/BBBTest/hellobone" in the Eclipse terminal and the process did not create as below.
(where 192.168.1.36 is PC IP address)
root@beaglebone:/# sudo gdbserver 192.168.1.36:12345 /home/debian/BBBTest/hellobone
Also tried the command sudo gdbserver 192.168.1.36:12345 hellobone and nothing happened. Then, I changed the debugger into Manual Remote Debugging launcher with settings similar to Figure 7 of the above link eventhough the prior gdbserver process was not created as mentioned above and I got the below error I think this is due to the non-creation of the prior gdbserver process .
Error in final launch sequence
Failed to execute MI command:
-target-select remote 192.168.7.2:9999
Error message from debugger back end:192.168.7.2:9999: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Also, I got the same problem in my Debian wheezy OS installed in my PC where the gdbserver process also was not able to create.I am stuck in this for several days and I hope someone can help me solve this.. Many Thanks!!
Powered by FUDForum
. Page generated in 0.01931 seconds