First you need to make sure you have CH55xduino version 0.0.24 or higher. This version includes necessary patch for debug probe to work on 16MHz clock.
Choose "16 MHz (internal), 3.3V or 5V" in "Clock Source" and "USER CODE w/ 266B USB ram" in "USB settings".
Choose "16 MHz (internal), 3.3V or 5V" in "Clock Source" and "USER CODE w/ 266B USB ram" in "USB settings".
Compile and upload code. Hold middle button and connect CH552 board to computer, and flash the firmware. More info for this setup can be found in Adafruit CH552 QT Py tutorial.
Windows User only:
AVRDUDE tool shipped with Arduino IDE is relatively old and requires a LibUSB driver. Using Zadig to install the libusb-win32 driver.
Let's test if the Adafruit CH552 QT Py is working properly.
Switch board to "Arduino Uno".
Select "Programmer" as "USBTinyISP".
Click "Burn Bootloader".
You should see some failure like "initialization failed, rc=-1" because there isn't an Arduino connected yet. But this message indicates the CH552 respond to computer correctly.
However, if you see "Error: Could not find USBtiny device (0x1781/0xc9f)". That means the CH552 is not working properly, you need to check the compile settings, driver, or check if it is visible in device manager in your computer's OS.
Then you would connect an Arduino Uno's ISP port to CH552. The 5V and GND should be connected. The Reset of Arduino should be connected to A0(P1.1) of CH552. And SPI lines (SCK, MISO, MOSI) should be connected to corresponding pins on CH552.
After connecting your Arduino. If every wire is connected properly. The power LED on Arduino should be on. And if you burn bootloader once more, you should see "avrdude done. Thank you." that shows a successful burn.
Congratulations! Now you have a fully functional debugWire debug probe/programmer combo (USBtinyISP compatible).
You may also use the probe/programmer combo for other AVR chip just like a USBtinyISP.
Page last edited October 10, 2024
Text editor powered by tinymce.