Remote debug embedded linux angstrom board [message #730303] |
Wed, 28 September 2011 02:43  |
Eclipse User |
|
|
|
I hope you can help me and give me a hint.
I work with Eclipse Version: 3.7.0 CDT version: 1.0.0.201109151620.
I try to debug an embedded linux board running Angstrom. The board has access to the network, I can do ssh etc.
I created a C++ Project and compiled with Sourcery_G++_Lite. I can copy the binary to the board and run the application. But now I want to remote debug and I am not able to.
What I did:
Host Ubuntu PC: 192.168.0.140
Target Angstrom panel: 192.168.0.51
I downloaded the gdbserver using the package manager opkg.
I manually copied the compiled debug version of my test application onto my board /home/myTest.
I started the server:
> gdbserver 192.168.0.140:2345 /home/myTest
-- it is listening
In Eclipse I created a new debug configuration:
Debug Configurations / C C++ Remote Application / New
At the debugger I set the gdb of Sourcery_G++_Lite:
/home/georg/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gdb
I set the connection to my target:
192.168.0.51 Port 2345
As soon Eclipse connects I get an error saying:
Error in final launch sequence
Failed to execute MI command:
-target-select remote 192.168.0.51:2345
Error message from debugger back end:
Malformed packet(b) (missing colon): ore:0;
Packet: 'T050b:00000000;0d:d0ddb6be;0f:f0070040;thread:fde;core:0;'
Malformed packet(b) (missing colon): ore:0;
Packet: 'T050b:00000000;0d:d0ddb6be;0f:f0070040;thread:fde;core:0;'
The connection seems to be ok.
I am not quite sure if it is correct to copy the debugged binary manually onto the board and start the server. As well I am not sure about the settings in Eclipse.
I attached my project. It won't work because I use libs from Sourcery and one own. It is just a test application. But you could check the project settings and tell me my mistakes.
I can't find any tutorial where it is described step by step.
Thank you very much in advance - have a good day.
Georg
|
|
|
|
Powered by
FUDForum. Page generated in 0.02981 seconds