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 3472 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?
  • ilg
    0 ilg over 8 years ago

    what is the relationship between your project and GNU ARM Eclipse?

    • 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 ilg

    I'm using GNU ARM compiler to build C/C++ applications.

    And Eclipse (in several rebranded incarnations) as IDE.

    I'm using a BeagleBone, and I try to improve my cross-platform development skills for Linux binaries.

    I have the build cyclus working on a Windows10 PC. I 'm looking for guidance on doing the debug from that windows PC too.

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

    aren't you using DS-5?

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

    I am. I also tried CCS (because it's a TI processor) and Eclipse plain.

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

    Hi Jan,

     

    Another approach is to compile locally on the BBB, which avoids the risk of any issues with the cross-compiler or library differences. This is (I think) a good approach, because the BBB is fairly speedy for compiles. It would have been a difficult thing in the past with slower processors or without network access on the target. I too like to use Windows based code editors however, so often I just SSH across, make the edits and then transfer the file back again. This is fine with small volumes of code, or another approach is to use a separate file system on the network - in my case at home this would be a NAS drive. Regarding debugging, if need be, I'll use gdb locally on the BBB (i.e. from a shell via SSH).

    The info above is just based on personal experience, it might not be industry practice, and things change. Certainly in the past it was trickier setting up a known working cross-compiler environment and so back then as soon as processor speeds on the target went into the GHz and we had moved to GNU (before that we were using a proprietary compiler), we ditched the different build-server and compiled on an identical architecture server on the last real professional software engineering project I worked on. It provided a ton of confidence and sped up development at the time. (Nothing else needed changing, we were still using the network file system, the same code editing tools, version control, etc).

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

    I am able to do that, Shabaz. Designing and debugging on a BBB (and a Pi) works for me - linux dev for linux target is something I can work with.

    I'm trying to boost my skills on cross-compiling, building and debugging at this moment.

    Then I want to improve on building a Linux apt-get'able unit or a Linux distro that includes my program.

     

    I'm aware of your frustrations - getting the toolchain, C header files, libraries and dependencies consistent. Getting the different 'preferred install directories'  for different distros right.

    I'm giving away development time and frustrations, to get skill boost in return. But oh my, I have to give a way a lot image

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

    Hi Jan,

     

    I see. Yes that makes sense, it is definitely worth it for the experience and also to use with many other platforms too, especially when not all will be guaranteed to have as many resources.

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

    I still fail to understand where GNU ARM Eclipse fits into this picture.

     

    If you created your project with DS-5, then you are not using the GNU ARM Eclipse managed build features, but those available from DS-5.

     

    As for the GNU ARM Eclipse debugging plug-ins, they start a local instance of a GDB server, and connect to it. You might be able to start your own GDB server on your board and configure the debug plug-ins to connect to it, but it is a bit more tedious.

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

    Liviu Ionescu wrote:

     

    I still fail to understand where GNU ARM Eclipse fits into this picture.

     

    If you created your project with DS-5, then you are not using the GNU ARM Eclipse managed build features, but those available from DS-5.

     

    As for the GNU ARM Eclipse debugging plug-ins, they start a local instance of a GDB server, and connect to it. You might be able to start your own GDB server on your board and configure the debug plug-ins to connect to it, but it is a bit more tedious.

    I believe you introduced the term in the first reply. I was unaware it existed.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • 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
>
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