# 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).  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) ## Featured Products ### Adafruit CH552 QT Py - 8051 Dev Board with STEMMA QT [Adafruit CH552 QT Py - 8051 Dev Board with STEMMA QT](https://www.adafruit.com/product/5960) What a cutie pie! Or is it... a QT Py? This diminutive dev board comes with a throwback processor - an 8-bit 8051! This tiny core is a big change from something like the the [ESP32-S3 QT Py with two 240MHz 32-bit cores](https://www.adafruit.com/product/5700), but there's lots of... In Stock [Buy Now](https://www.adafruit.com/product/5960) [Related Guides to the Product](https://learn.adafruit.com/products/5960/guides) ### Arduino Uno R3 [Arduino Uno R3](https://www.adafruit.com/product/1545) **Arduino Uno** is a microcontroller board based on the ATmega328P ([datasheet](https://cdn-shop.adafruit.com/product-files/4806/4806_Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf)). It has 14 digital input/output pins (of which 6 can be used as PWM... In Stock [Buy Now](https://www.adafruit.com/product/1545) [Related Guides to the Product](https://learn.adafruit.com/products/1545/guides) ## Related Guides - [Adafruit CH552 QT Py](https://learn.adafruit.com/adafruit-ch552-qt-py.md) - [Pi SSD Media Server](https://learn.adafruit.com/pi-ssd-media-server.md) - [USB C Power Delivery Monitor](https://learn.adafruit.com/usb-c-benchtop-power-supply.md) - [Ambient Video Lighting with HyperHDR](https://learn.adafruit.com/ambient-video-lighting-with-hyperhdr.md) - [Neo Trinkey Auto Screen Locker](https://learn.adafruit.com/neo-trinkey-auto-screen-locker.md) - [Fog Machine with Motion Sensor and Adafruit IO](https://learn.adafruit.com/fog-machine-remote-trigger.md) - [Installing TinyUF2 bootloader on RT10xx Microcontrollers](https://learn.adafruit.com/installing-the-uf2-bootloader-on-nxp-imx-rt10xx-microcontrollers.md) - [USB MIDI Host2Host](https://learn.adafruit.com/usb-midi-host2host.md) - [Alternative languages for programming the SAMD51 boards](https://learn.adafruit.com/alternative-languages-for-programming-samd-boards.md) - [Boglin MONSTER M4SK Mod](https://learn.adafruit.com/boglin-monster-m4sk-mod.md) - [Build your own BeBox and run BeOS using Virtualbox](https://learn.adafruit.com/build-a-bebox-with-beos-and-virtualbox.md) - [Pico Four Keypad](https://learn.adafruit.com/pico-four-key-macropad.md) - [Bringing Back THE VOICE of Speak & Spell](https://learn.adafruit.com/bringing-back-the-voice-of-speak-spell.md) - [DOOM Keeb](https://learn.adafruit.com/doom-keeb.md) - [Convert your Model M Keyboard to Bluetooth with Bluefruit EZ-Key HID](https://learn.adafruit.com/convert-your-model-m-keyboard-to-bluetooth-with-bluefruit-ez-key-hid.md) - [Adafruit IO Basics: Digital Input](https://learn.adafruit.com/adafruit-io-basics-digital-input.md)