2008-07-29 02:09:46     Eclipse for DEBUG

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-07-29 02:09:46     Eclipse for DEBUG

suresh kumar (INDIA)

Message: 59504   




I am using eclipse IDE (c,c++) with new versions (3.4+).


I started GDBserver in Bf537 target and gdb in my localhost also.


I follow the steps given in the sites:








once i do this steps




    Choose the debug configuration you just created:

        Run → Debug.. → Choose the debug configuration → Click Debug:


It start the compiling but finals it show the error,The target refused to connect.


I am not able to find out the problem.can you tell me.








2008-07-29 03:00:03     Re: Eclipse for DEBUG

Mike Frysinger (UNITED STATES)

Message: 59511   


if you're getting connection refused, then it means you arent using the same network settings.  what you put into eclipse has to match what you're doing on the board.





2008-07-29 04:09:34     Re: Eclipse for DEBUG

suresh kumar (INDIA)

Message: 59517   


HI mike,


The network setting are i did as mention in blackfin eclipse docs.


actually i want to run the c program in eclipse.first i comipiled that files and put into the bf 537 target .then i start the gdbserver in target.then i start the gdb in my host system.then i did the setting in eclipse the debug configuration.


once i give the debug in debug configuration,then it start the compiling the kernal.then the error will display.the target refuse the connection.








2008-07-29 04:58:05     Re: Eclipse for DEBUG

Mike Frysinger (UNITED STATES)

Message: 59536   


the settings shown are just examples.  you will need to tweak for your setup.


you also cannot run gdb manually and eclipse at the same time ... only one debugger can be active at once.




2008-07-31 06:16:30     Re: Eclipse for DEBUG

suresh kumar (INDIA)

Message: 59659   


HI mike


the problem is the eclipse not compile the program with bfin-uclinux-gdb


it compile the program with linuc GCC tools


after getting the comipilation the progtam look like this way


[root@localhost Debug]# file test

test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped




How to configure tthe bfin-uclinux-gdb tools for compile the program.











2008-07-31 09:00:22     Re: Eclipse for DEBUG

Mike Frysinger (UNITED STATES)

Message: 59663   


you need to set the toolchain for your project or use the Blackfin toolchain plugin to set up defaults