element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum Debug BBB from Windows Eclipse/DS-5 /CCS IDE
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 24 replies
  • Answers 2 answers
  • Subscribers 101 subscribers
  • Views 3483 views
  • Users 0 members are here
  • ide
  • debug
  • cross-compiling
  • eclipse
  • bbb
Related

Debug BBB from Windows Eclipse/DS-5 /CCS IDE

Jan Cumps
Jan Cumps over 8 years ago

I have a DS-5 IDE running on my Windows 10 PC, and I'm able to cross-compile Linux applications for the BeagleBone.

I've never been able to get the debugger working though. I'd like to attach to my cross-compiled program that's executing on the BBB, and step trough it.

 

Who's got that working, and how?

 

My cross compile setup is:

DS-5 Community Edition

GCC 4.9.3 arm-linux-gnu....

Windows 10 64 bits

 

BeagleBone Green with Linux beaglebone 4.4.9-ti-r25 #1 SMP Thu May 5 23:08:13 UTC 2016 armv7l

 

 

I'm reasonably skilled with eclipse IDEs, Windows and Linux.

 

Help  image

  • Sign in to reply
  • Cancel

Top Replies

  • bwelsby
    bwelsby over 8 years ago in reply to Jan Cumps +2 verified
    ok Assuming you have toolchain and project configured and that you can create a working executable then here's a brief list of steps I took. First create a RSE connection: Select Window -> Perspective…
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to bwelsby +2
    Works! Thank you very much, bwelsby
  • ilg
    ilg over 8 years ago +1
    what is the relationship between your project and GNU ARM Eclipse?
Parents
  • bwelsby
    0 bwelsby over 8 years ago

    I haven't used DS-5 but have used Eclipse and also Qt. 

    Derek Molloy produced some great videos covering Eclipse development and debugging which although a few years old they cover all that is required and should translate to the latest software. He covers development on the Beaglebone and also cross development and debugging  see: Setting up Eclipse on the Beaglebone for C++ Development | derekmolloy.ie

     

    Regards

    Brian

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    I'm a big fan of Derek's videos and tutorials, Brian.

     

    His explanation helped me to set up the cross-compile part successful. I couldn't get the cross-debug part to work though.

    I'll give it a second try...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    Great if you still can't get it to work I will have a go too and see if we can work out a solution.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    Just had some spare time so configured Eclipse on a Lubuntu system and got the remote debugging working with a BBB.  

    I don't have a Windows 10 system but I do have Windows 7 so will try and  see if I can get that to work too then I will write it all up and post a blog on here.

     

    Brian

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    Hey thanks, Brian! Did you use Derek's explanation?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    Jan Cumps wrote:

     

    Hey thanks, Brian! Did you use Derek's explanation?

    No I worked it out myself (more fun that way image) , it took a couple of hours to figure out where all the configurations are though. 

    I have just downloaded the DS-5 community edition to my Windows 7 machine to have a play with too.

     

    Brian

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    The DS-5 environment is the one that I'm using to cross-compile for arm linux.

    I have used its build part successfully. I'm able to build&link a linux binary  for BBB and Raspberry Pi.

    The remote access part alos works. I am able to connect from DS-5 to both systems. It's that last link of having the debug service configured on the destination board and in DS-5 and make 'm talk together....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    Jan Cumps wrote:

     

    The DS-5 environment is the one that I'm using to cross-compile for arm linux.

    I have used its build part successfully. I'm able to build&link a linux binary for BBB and Raspberry Pi.

    The remote access part alos works. I am able to connect from DS-5 to both systems. It's that last link of having the debug service configured on the destination board and in DS-5 and make 'm talk together....

    Ok I just created a helloworld test in DS-5 and I have the debugging working too image so I will try and document the steps required.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    Info on my installation:

     

    Dev PC:

    Windows10 64 bit

    DS-5 version: DS-5 Community Edition Version: 5.26.2

    image

    GCC Windows ARM linux toolset from Linaro - big endian hardware floating point: gcc-linaro-4.9-2015.05-1-rc1-i686-mingw32_arm-linux-gnueabihf

    gcc version: arm-linux-gnueabihf-gcc.exe (Linaro GCC 4.9-2015.05) 4.9.3 20150413 (prerelease)

    gdb version: GNU gdb (Linaro GDB 2015.05-1-rc1) 7.10.0.20151031-cvs

     

    BeagleBone Green:

    BeagleBoard.org Debian Image 2016-12-09 loaded to the on-board memory (no SD card)

    PRETTY_NAME="Debian GNU/Linux 8 (jessie)"

    NAME="Debian GNU/Linux"

    VERSION_ID="8"

    VERSION="8 (jessie)"

    GCC tools: gcc (Debian 4.9.2-10) 4.9.2

    gdb server version: GNU gdbserver (Debian 7.7.1+dfsg-5) 7.7.1

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    Info on my installation:

     

    Dev PC:

    Windows10 64 bit

    DS-5 version: DS-5 Community Edition Version: 5.26.2

    image

    GCC Windows ARM linux toolset from Linaro - big endian hardware floating point: gcc-linaro-4.9-2015.05-1-rc1-i686-mingw32_arm-linux-gnueabihf

    gcc version: arm-linux-gnueabihf-gcc.exe (Linaro GCC 4.9-2015.05) 4.9.3 20150413 (prerelease)

    gdb version: GNU gdb (Linaro GDB 2015.05-1-rc1) 7.10.0.20151031-cvs

     

    BeagleBone Green:

    BeagleBoard.org Debian Image 2016-12-09 loaded to the on-board memory (no SD card)

    PRETTY_NAME="Debian GNU/Linux 8 (jessie)"

    NAME="Debian GNU/Linux"

    VERSION_ID="8"

    VERSION="8 (jessie)"

    GCC tools: gcc (Debian 4.9.2-10) 4.9.2

    gdb server version: GNU gdbserver (Debian 7.7.1+dfsg-5) 7.7.1

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    My system Windows 7 64 bit.

     

    DS-5 version the same as yours.

    I have tried the following toolchains:-

    https://releases.linaro.org/components/toolchain/binaries/5.3-2016.05/arm-linux-gnueabihf/gcc-linaro-5.3.1-2016.05-i686-…

    and

    https://launchpad.net/linaro-toolchain-binaries/trunk/2013.10/+download/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10-20131…

     

    Beaglebone Enhanced  with same Debian and gdbserver versions.

     

    On BBE I created a directory for the test /home/debian/workspace and I configured DS-5 up upload the executable to this directory

     

    When I created the RSE connection I configured to use ssh  and NOT dstore   then I use this connection in the debug configuration.

     

    I will try and get some screen grabs of all the menus and document it

     

    Brian

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    I have the 5.3 toolchain installed on my development PC too. I'm not using it at the moment because for some applications (I seem to recall talking to character devices other than STDOUT and STDERR using c++) binaries compiled with 5.3 gave shared library errors (.so.x.x not found) during execution on BBB.

     

    This one worked though image

    cout << "Hello, world!" << endl;

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    ok Assuming you have toolchain and project configured and that you can create a working executable then here's a brief list of steps I took.

     

    First create a RSE connection:

         Select Window -> Perspective -> Open Perspective -> Other -> Remote System Explorer

    In the Remote Systems panel select the icon for Define a connection for a remote system

    A window should open listing various connection types, select SSH Only and then Next>

         In the Host Name I entered the Beaglebone IP address and then BBE SSH in the Connection Name then select Finish

     

    Next I created a debug configuration:

         Select Window -> Perspective -> Open Perspective -> Other -> DS-5 Debug    

         Select Run -> Debug Configurations...

     

    You should get a window open like this:

    image

    On the left select DS-5 Debugger and then the icon to create a new configuration as shown above.

    Under Select target  select Linux Application Debug  > Application Debug > Connect via gdbserver > Download and debug application   as shown above

    Under RSE connection select the one created earlier.

     

    Select the Files tab then:

         For Application on host to download I select Workspace and navigate to the Debug executable that is produced when I build the project.

         For Target download directory and also Target working directory I used /home/debian/workspace   This is where I chose to put the executable on the Beaglebone.

     

    I then just clicked on Debug

    First run there's a few popups that I accept and  the  SSH username and password (you can save both if you wish) and thats it the debugger opens and I can single step etc etc.

     

    Hope that gets you going but if you get any errors let me know.

     

    Brian

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    Works! Thank you very much, bwelsby

     

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps over 8 years ago in reply to bwelsby

    ... and on the Pi 3 too image

    image

    Stepping trough a SCPI library testcase. The output is nicely showing in the console. Yay!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bwelsby
    0 bwelsby over 8 years ago in reply to Jan Cumps

    Great, happy programming, debugging and a Happy New Year too!

     

    Brian

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube