# Debug Arduino Uno/ATmega328P with Adafruit CH552 QT Py and debugWire

## Introduction

Arduino IDE 2 comes with debugging capability for 32-bit Arm based Arduino boards. If you try to select Arduino Uno, you may see "Debugging is not supported by 'Arduino Uno'". This tutorial will show how to adding the missing pieces to debug Arduino Uno and other ATmega328P boards.

This tutorial will demonstrate:

1. How to convert a Adafruit CH552 QT Py into a debugWire debug probe/programmer combo (USBtinyISP compatible).&nbsp;
2. Setting up Arduino IDE 2 with board support package.
3. Automatically set fuses to enable debugging on ATmega328P.
4. Doing debugging.
5. Automatically set fuses back and restore Arduino bootloader.

![](https://cdn-learn.adafruit.com/assets/assets/000/132/917/medium800/hacks_PXL_20241008_153646942.jpg?1728402550)

Warning: The debugging process will modify fuses to kick Arduino into debug mode. Such mode can only be exited with a functional debugger probe or High Voltage Parallel Programming. If your debugger probe is not fully functional to communicate with the Uno, your Uno may be bricked!

- [Next Page](https://learn.adafruit.com/debug-arduino-uno-atmega328p-with-adafruit-ch552-qt-py-and-debugwire/program-ch552.md)

## Related Guides

- [Adafruit CH552 QT Py](https://learn.adafruit.com/adafruit-ch552-qt-py.md)
- [Using the CircuitPython Extension for Visual Studio Code](https://learn.adafruit.com/using-the-circuitpython-extension-for-visual-studio-code.md)
- [MIDI for Makers](https://learn.adafruit.com/midi-for-makers.md)
- [Experimenter's Guide for Metro](https://learn.adafruit.com/experimenters-guide-for-metro.md)
- [Ambient Video Lighting with HyperHDR](https://learn.adafruit.com/ambient-video-lighting-with-hyperhdr.md)
- [Bluefruit LE Feather Robot Rover](https://learn.adafruit.com/bluefruit-feather-robot.md)
- [The Well-Automated Arduino Library](https://learn.adafruit.com/the-well-automated-arduino-library.md)
- [See N Say Brain Transplant](https://learn.adafruit.com/see-n-say-brain-transplant.md)
- [Intro to DMX](https://learn.adafruit.com/intro-to-dmx.md)
- [Walkmellotron: Cassette Player Mods](https://learn.adafruit.com/walkmellotron.md)
- [3D Print Link's Hylian Shield](https://learn.adafruit.com/3d-print-links-hylian-shield.md)
- [Apple Newton - A Personal Digital Assistant from 25 years ago](https://learn.adafruit.com/apple-newton-personal-digital-assistant.md)
- [Compiling a cross-compiler on Windows](https://learn.adafruit.com/compiling-a-cross-compiler-on-windows.md)
- [Pico Bluetooth Keyboard Bridge](https://learn.adafruit.com/pico-bluetooth-keyboard-bridge.md)
- [Plotting Offline Data - JSONL to CSV files, filters and graphs](https://learn.adafruit.com/plotting-offline-data-jsonl-to-csv-files-filters-and-graphs.md)
