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
Essentials
  • Learn
  • Learning Center
  • Essentials
  • More
  • Cancel
Essentials
Polls Poll: Would You Be Interesting in an ESSENTIALS on Debugging?
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Essentials to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: rscasny
  • Date Created: 25 Oct 2019 7:54 PM Date Created
  • Last Updated Last Updated: 11 Oct 2021 2:59 PM
  • Views 1368 views
  • Likes 1 like
  • Comments 16 comments
Related
Recommended

Poll: Would You Be Interesting in an ESSENTIALS on Debugging?

Debugging is an activity just about everyone involved in embedded design or working with any kind of single board computer does. What are the principles of debugging? In other words, the ESSENTIALS of [approaches to] debugging?

 

Poll Question: Would you be interested in an Essentials on Debugging?

  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • dougw
    dougw over 5 years ago +8
    I assume this refers to software/firmware debugging. Hardware troubleshooting would be another great topic. Troubleshooting and debugging can be deceptively hard and can require extreme creativity.
  • 14rhb
    14rhb over 5 years ago +7
    My current C code on the Digilent BASYS MX3 is meant to add two 4-bit nibbles but the 7-segment display shows this instead....I'm very interested in debugging techniques.
  • michaelkellett
    michaelkellett over 5 years ago in reply to fmilburn +6
    I'm always interested in debugging - I spend a lot of time doing it. If you commission a series then please: 1) If at all possible make it vendor neutral - to my mind several of the "Essentials" have been…
Parents
  • 14rhb
    14rhb over 5 years ago

    I'm going to own up here: When I don't understand an IDE's debug capability I revert to other approaches -  using infinite loops or delays to blink an LED, message the screen or UART to signify the code has successfully reached a certain place. I think it is always a good investment of time to understand the debug function in any software IDE, being able to check values are as expected and the code flows to where it should (e.g. great for picking up errors in C when = and == are used incorrectly and the code piles on through regardless ! )

     

    Looking forward to this Essentials image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 5 years ago in reply to 14rhb

    That LED technique has been so useful over the years, it is worth adding an LED to new designs just for this purpose.

    LEDs are everywhere, what would we do without LEDs?

    Maybe an essentials just on LEDs would be appropriate.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dougw
    dougw over 5 years ago in reply to 14rhb

    That LED technique has been so useful over the years, it is worth adding an LED to new designs just for this purpose.

    LEDs are everywhere, what would we do without LEDs?

    Maybe an essentials just on LEDs would be appropriate.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • michaelkellett
    michaelkellett over 5 years ago in reply to dougw

    Good point.

    Every micro design needs, iff possible, an LED, a test pin connected to an IO pin and access to the UART as well as access to the on chip debugging pins.

    The LED can let you do some kind of debugging without any tools at all.

    The pin is needed for timing -  can be incredibly useful.

    The UART for proper messages from the code.

    And the on chip debugger makes everything 10x easier if its available.

     

    MK

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 14rhb
    14rhb over 5 years ago in reply to dougw

    Yes, a LED is so useful, it can be left blinking occasionally via a long period timer ISR just to show the system hasn't locked up and to confirm it is still powered - very handy when there are no other visible peripherals like an LCD. Many of my microcontroller projects start with a 'splashscreen' which may as simple as to flash the main LED's a couple of times using a delay function I made, this confirms I/O is setup correctly and that critical timing is good i.e. the clock rate is now known.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • 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