SNAP: Debugging for the Masses

The featured picture of this post has been created by DALL-E.

Microchip recently lowered the price for its hardware debugger SNAP from more than €50 to less than €20. I have recently created the Python script dw-gdbserver for this and other hardware debuggers so that you can now use SNAP in the Arduino IDE 2 to debug classic ATtinys and small ATmegas. All in all, this is an affordable and care-free debugging solution for classic AVRs.

Continue reading

Interrupted and Very Long Single-Steps

The featured picture of this post has been created by DALL-E.

It often happens in embedded debugging that you suddenly end up in the interrupt dispatch table while single-stepping through your code. Another unrelated problem is that sometimes, single steps can take an eternity. In this blog post, I address both issues and describe how to circumvent them in a gdbserver implementation.

Continue reading

Replacing the Wire Library—Sometimes

The featured picture of this blog post is by user18526052 on Freepik.

The Wire library is the one that connects your Arduino to sensors and actuators that communicate using the I2C protocol. Unfortunately, this library has a lot of shortcomings, and often you want to replace it with a different I2C library. Replacing the Wire library on a per-sketch basis turns out to be more complicated than one would expect. In this blog post, I describe an easy way to accomplish that.

Continue reading

Copyright © 2025 Arduino Craft Corner

Theme by Anders NorenUp ↑