• Skip to main content
  • Shop
  • Learn
  • Blog
  • Forums
  • IO
  • LIVE!
  • AdaBox
Adafruit Logo
0
  • Sign In | Create Account
  • Playground
  • Shop
  • Learn
  • Blog
  • Forums
  • IO
  • LIVE!
  • AdaBox
Sign In
0
Adafruit Logo
  • Learn Categories
    • 3D Printing
    • AdaBox
    • Adafruit Products
    • Arduino Compatibles
    • Breakout Boards
    • Circuit Playground
    • CircuitPython
    • CLUE
    • Community Support
    • Components
    • Crickit
    • Customer & Partner Projects
    • Development Boards
    • Educators
    • EL Wire/Tape/Panel
    • Feather
    • Gaming
    • Hacks
    • Internet of Things - IOT
    • LCDs & Displays
    • LEDs
    • Machine Learning
    • MakeCode
    • Maker Business
    • micro:bit
    • Microcontrollers
    • Programming
    • Raspberry Pi
    • Robotics & CNC
    • Sensors
    • STEMMA
    • Tools
    • Trellis
    • Wearables
    Explore, Groups to get your gears turning
    Explore
    Groups to get your gears turning
    Explore Groups
  • New Guides
  • Playground
felias_fogg Notes

felias_fogg

u/felias_fogg

Getting Started

Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.

The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.

Click here to learn more about Adafruit Playground and how to get started.

  • By felias_fogg

    Debugging AVR MCUs in the Arduino IDE 2

     

    If you work with 8-bit AVR MCUs but are not a fan of MPLAB X or Microchip Studio, then there are not too many open-source alternatives when you want to debug your program using a symbolic debugger. In particular, neither PlatformIO nor the Arduino IDE 2 offers debugging support for AVR MCUs (well, PlatformIO has a stub solution for some MCUs).

    Based on the open-source Python library pymcuprog published by Microchip, I have developed a cross-platform GDB server for almost all 8-bit AVR chips (except for the XMegas). You can install it from PyPI, download binaries, clone the GitHub repo, or, when working with the Arduino IDE 2, you simply have to add a board package URL into the Additional Boards Manager URLs field. It comes with SVD files that you can integrate into the IDE of your choice, which offers easy access to all the I/O registers. In contrast to its 'competitors', PyAvrOCD is much better at avoiding flash wear, does faster line-stepping, and avoids being interrupted while single-stepping. And it is darn easy to install.

    The only additional hardware you need is a somewhat recent Microchip debug probe. If your debug probe is too recent, you may need to downgrade it.

    If you do not have a debug probe but want to try out debugging, there is also a simulator integrated. And you can turn an Arduino UNO R3 into a debug probe for debugWIRE targets, e.g., the famous ATmega328P chip or classic ATtinys. 

    Have a look at the manual if you are interested: https://pyavrocd.io.

    icon
    Save
Search

Getting Started

Adafruit Playground is a wonderful and safe place to share your interests with Adafruit's vibrant community of makers and doers. Have a cool project you are working on? Have a bit of code that you think others will find useful? Want to show off your electronics workbench? You have come to the right place.

The goal of Adafruit Playground is to make it as simple as possible to share your work. On the Adafruit Playground users can create Notes. A note is a single-page space where you can document your topic using Adafruit's easy-to-use editor. Notes are like Guides on the Adafruit Learning System but guides are high-fidelity content curated and maintained by Adafuit. Notes are whatever you want them to be. Have fun and be kind.

Click here to learn more about Adafruit Playground and how to get started.

    • Contact Us
    • Tech Support Forums
    • FAQs
    • Shipping & Returns
    • Freebies
    • Terms of Service
    • Privacy & Legal
    • Website Accessibility
    • LLMs.txt
    • About Us
    • Press
    • Educators
    • Distributors
    • Jobs
    • Gift Cards
    "The mind is not a vessel that needs filling, but wood that needs igniting"
    Plutarch
    Adafruit Logo
    A Minority and Woman-owned Business Enterprise (M/WBE)