{"id":16181,"date":"2022-09-30T13:48:14","date_gmt":"2022-09-30T13:48:14","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/?p=16181"},"modified":"2026-10-29T11:03:21","modified_gmt":"2026-10-29T11:03:21","slug":"using-megatinycore","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore","title":{"rendered":"Using megaTinyCore"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About this Post<\/h2>\n\n<p>Some time ago, I wrote about programming ATtiny MCUs using the ATTinyCore package (<a href=\"https:\/\/wolles-elektronikkiste.de\/en\/programming-attiny-with-arduino-code\" target=\"_blank\" rel=\"noopener\">link<\/a> to the post). However, ATTinyCore only covers part of the ATtiny family. It does not include the members of the tinyAVR\u00ae Series 0, 1, and 2 that <a href=\"https:\/\/www.microchip.com\/\" target=\"_blank\" rel=\"noopener\">Microchip<\/a> has introduced to the market in recent years. They differ fundamentally from other members of the ATtiny family in several respects. You can program these newer ATtinys using Arduino code with the <a href=\"https:\/\/github.com\/SpenceKonde\/megaTinyCore\" target=\"_blank\" rel=\"noopener\">megaTinyCore<\/a> package by <a href=\"https:\/\/github.com\/SpenceKonde\" target=\"_blank\" rel=\"noopener\">Spence Konde<\/a>.    <\/p>\n<p>Probably the most considerable difference in dealing with these newer microcontrollers is programming via UPDI (Unified Program and Debug Interface). This is a proprietary programming and debug interface from Microchip that requires only a single wire. I present several options for uploading sketches via UPDI using the Arduino IDE. What you can expect in this article:   <\/p>\n<ul>\n<li><a href=\"#megaTinyCore_family\">The megaTinyCore family<\/a><\/li>\n<li><a href=\"#prep\">Preparations<\/a><\/li>\n<li><a href=\"#three_upload_options\">Uploading sketches with megaTinyCore &#8211; 3 options<\/a>\n<ul>\n<li><a href=\"#arduino_as_updi_programmer\">Arduino as UPDI Programmer<\/a><\/li>\n<li><a href=\"#usb2ttl_adaper_as_updi\">USB-to-TTL adapter as UPDI programmer<\/a><\/li>\n<li><a href=\"#atmel-ice_as_updi_programmer\">Atmel-ICE as UPDI Programmer<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#upload_per_optiboot\">Uploading sketches via Optiboot bootloader<\/a>\n<ul>\n<li><a href=\"#optiboot_w_o_reset\">Optiboot without reset pin &#8211; for all tinyAVR series<\/a><\/li>\n<li><a href=\"#optiboot_w_reset\">Optiboot with reset pin &#8211; only for the tinyAVR 2 series<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#serial_monitor_w_o_optiboot\">Using the Serial Monitor without Optiboot<\/a><\/li>\n<li><a href=\"#outlook\">Outlook<\/a><\/li>\n<\/ul>\n\n<h2 id=\"megaTinyCore_family\" class=\"wp-block-heading\">The megaTinyCore family<\/h2>\n\n<p>The megaTinyCore family is quite large. Here is first an overview which covers some selected features: <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/tinyAVR_tech_overview-1024x871.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"871\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/tinyAVR_tech_overview-1024x871.png\" alt=\"\" class=\"wp-image-22161\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/tinyAVR_tech_overview-1024x871.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/tinyAVR_tech_overview-300x255.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/tinyAVR_tech_overview-768x654.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/tinyAVR_tech_overview.png 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">megaTinyCore compatible tinyAVR series 0, 1 and 2 <\/figcaption><\/figure>\n\n<p>The name of the ATtinys reveals a few of their properties:<\/p>\n<ul>\n<li>From the first or the first two digits you can derive the size of the program memory in kilobytes.<\/li>\n<li>The penultimate digit indicates the tinyAVR series.<\/li>\n<li>The last digit will tell you the number of pins:\n<ul>\n<li>ATtinyxx<strong>7<\/strong>: 24 pins<\/li>\n<li>ATtinyxx<strong>6<\/strong>: 20 pins<\/li>\n<li>ATtinyxx<strong>4<\/strong>: 14 pins<\/li>\n<li>ATtinyxx2: <strong>8<\/strong> pins<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>See the megaTinyCore documentation <a href=\"https:\/\/github.com\/SpenceKonde\/megaTinyCore\" target=\"_blank\" rel=\"noopener\">here on GitHub<\/a> for more detailed information about the series and subgroups, including pinout schemes.<\/p>\n\n<p>However, the subject of this article is mainly the programming about the use of megaTinyCore and less the technical data.<\/p>\n\n<h2 id=\"prep\" class=\"wp-block-heading\">Preparations<\/h2>\n\n<h3 class=\"wp-block-heading\">Acquisition of the microcontrollers<\/h3>\n\n<p>The availability of tinyAVR series 0, 1 and 2 representatives is currently limited. In some cases there are long delivery times. I found some of the tinyAVR MCUs mainly on eBay, with a wide price range. For this article, I tried the ATtiny1614, ATtiny1626 and ATtiny3226. Not because I find these three particularly attractive, but because they are the ones I could get at a reasonable price.    <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-1024x256.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"256\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-1024x256.jpg\" alt=\"Examples of megaTinyCore compatible microcontrollers: ATtiny3226, ATtiny1626 and ATtiny1614\" class=\"wp-image-15772\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-1024x256.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-300x75.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-768x192.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-1536x385.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-2048x513.jpg 2048w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/attiny_1614_1626_3226-1320x331.jpg 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Examples of megaTinyCore compatible microcontrollers: ATtiny3226, ATtiny1626 and ATtiny1614<\/figcaption><\/figure>\n\n<p>The tinyAVRs of the series 0, 1 and 2 are not available as PDIP, i.e. you cannot plug them directly into a breadboard. Fortunately, there are adapter PCB boards available. On the net, you can find many instructions how to solder SOIC (1.27 mm pin spacing) or SSOP components (0.65 mm pin spacing).  <\/p>\n\n<p>If you don&#8217;t like this fine work you can buy development boards in the <a href=\"https:\/\/www.tindie.com\/\" target=\"_blank\" rel=\"noopener\">Tindie Shop<\/a>, here for example the <a href=\"https:\/\/www.tindie.com\/products\/drazzy\/attiny322416141604-dev-board-arduino-compatible\/?pt=ac_prod_search\" target=\"_blank\" rel=\"noopener\">ATtiny3224\/1614\/1604<\/a> versions. However, the store is located in the USA. The shipping costs of approx. 16 US$ are correspondingly high. I have not seen such boards elsewhere, but that I expect this to change eventually.    <\/p>\n\n<h3 class=\"wp-block-heading\">Preparation of the Arduino IDE for megaTinyCore<\/h3>\n\n<p>First, you need to set up megaTinyCore in the Arduino IDE. To do this, go to File \u2192 Preferences. Click the icon next to &#8220;Additional Board Manager URLs&#8221; and enter &#8220;<strong>https:\/\/descartes.net\/package_drazzy.com_index.json<\/strong>&#8221; on a separate line <strong>(the original Board Manager URL listed in the installation instructions on GitHub has not been working for some time<\/strong>).   <\/p>\n\n<p>Close the windows by clicking &#8220;OK&#8221;.<\/p>\n<p>Now navigate to Tools \u2192 Board \u2192 Boards Manager. Search for the megaTinyCore package from Spence Konde and install it: <\/p>\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_select.png\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"443\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_select.png\" alt=\"Installation of the megaTinyCore package\" class=\"wp-image-15505\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_select.png 786w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_select-300x169.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_select-768x433.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/a><figcaption class=\"wp-element-caption\">Installation of the megaTinyCore package<\/figcaption><\/figure>\n\n<p>If everything worked out, you will find a large selection of ATtinys in your Arduino IDE:<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_options-1024x544.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"544\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_options-1024x544.png\" alt=\"Large megaTinyCore selection\" class=\"wp-image-15507\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_options-1024x544.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_options-300x159.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_options-768x408.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/megaTinyCore_options.png 1036w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Large megaTinyCore selection<\/figcaption><\/figure>\n\n<h2 id=\"three_upload_options\" class=\"wp-block-heading\">Uploading sketches with megaTinyCore &#8211; 3 options<\/h2>\n\n<p>Programming via UPDI requires suitable programmers. Unfortunately, there is not yet much choice for &#8220;off the shelf&#8221; models. The good news, however, is that you can make do with inexpensive components.  <\/p>\n\n<h3 id=\"arduino_as_updi_programmer\" class=\"wp-block-heading\">Option 1: The Arduino as UPDI Programmer<\/h3>\n\n<h4 class=\"wp-block-heading\">Preparing the Arduino<\/h4>\n\n<p>First, we turn an Arduino UNO or Arduino Nano into a UPDI programmer. I guess it also works with other Arduino boards, but I haven&#8217;t tried that. The following steps must be performed:  <\/p>\n\n<ol>\n<li>Get jtag2udpi <a href=\"https:\/\/github.com\/ElTangas\/jtag2updi\" target=\"_blank\" rel=\"noopener\">here<\/a> from GitHub. To do this, follow the link, click on the green button &#8220;Code&#8221; and then on &#8220;Download ZIP&#8221;. <\/li>\n<li>Save the ZIP file somewhere on your computer and unzip it.<\/li>\n<li>In the folder jtag2updi-master you will find the subfolder source, which you rename to jtag2updi.<\/li>\n<li>Move the folder jtag2updi into your Arduino Sketch folder. You can now delete the zip file and the folder jtag2updi-master. <\/li>\n<li>Open the file jtag2updi.ino, which you can find in the folder jtag2updi, with the Arduino IDE. The sketch itself is empty (see below), but the relevant files are in the same folder and are processed automatically. <\/li>\n<li>Upload the sketch to your Arduino. Of course, you have to set the Arduino of your choice as board. <\/li>\n<\/ol>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/jtag2updi_ino-1024x133.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"133\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/jtag2updi_ino-1024x133.png\" alt=\"Blank jtag2updi sketch\" class=\"wp-image-15510\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/jtag2updi_ino-1024x133.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/jtag2updi_ino-300x39.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/jtag2updi_ino-768x100.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/jtag2updi_ino.png 1289w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Blank jtag2updi sketch<\/figcaption><\/figure>\n\n<p>Now your Arduino is ready to be used as UPDI programmer.<\/p>\n\n<h4 class=\"wp-block-heading\">Wiring<\/h4>\n\n<p>Connecting ATtinys to your new UPDI programmer is easy. Connect GND to GND and VCC to VCC. Place a 10 \u00b5F capacitor between GND and reset of the Arduino. Connect Arduino pin 6 to the ATtiny&#8217;s UPDI pin using a 470 \u03a9 resistor. The <a href=\"https:\/\/github.com\/ElTangas\/jtag2updi\" target=\"_blank\" rel=\"noopener\">jtag2updi<\/a> project on GitHub specifies a 4.7 k\u03a9 resistor. That worked for me, too.     &nbsp;<\/p>\n<p>On the ATtiny1614 used here, the UPDI pin is pin 10. You can find out which pin is the UPDI pin on your ATtiny in the datasheet, or simply check the pinout diagrams on GitHub. Follow this <a href=\"https:\/\/github.com\/SpenceKonde\/megaTinyCore#supported-parts-click-link-for-pinout-diagram-and-details\" target=\"_blank\" rel=\"noopener\">link<\/a> and click on the group that contains your ATtiny. <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/arduino_nano_updi_programmer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"533\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/arduino_nano_updi_programmer.png\" alt=\"Arduino Nano as UPDI Programmer\" class=\"wp-image-17339\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/arduino_nano_updi_programmer.png 1000w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/arduino_nano_updi_programmer-300x160.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/arduino_nano_updi_programmer-768x409.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption class=\"wp-element-caption\">Arduino Nano as UPDI Programmer<\/figcaption><\/figure>\n<\/div>\n<p>For those who like things easy: <a href=\"https:\/\/www.hackster.io\/john-bradnam\/create-your-own-updi-programmer-1e55f1\" target=\"_blank\" rel=\"noopener\">Here&#8217;s<\/a> a nice idea on how to turn the Arduino Nano into a ready-to-use UPDI programmer.<\/p>\n\n<h4 class=\"wp-block-heading\">Upload<\/h4>\n\n<p>Select the ATtiny in the Arduino IDE under Tools \u2192&nbsp; Board \u2192 megaTinyCore. There are versions with and one without Optiboot bootloader. Take the one without Optiboot. If you know what you&#8217;re doing, you can make all sorts of fine adjustments. If not, then use the default settings.    &nbsp;<\/p>\n<p>Set jtag2updi as programmer. Now you can upload sketches to your ATtiny. To try it out, I usually take a blink sketch.  &nbsp;<\/p>\n\n<h3 id=\"usb2ttl_adaper_as_updi\" class=\"wp-block-heading\">Option 2: USB-to-TTL adapter as UPDI programmer<\/h3>\n\n<p>The second option I want to present uses a USB-to-TTL adapter as a UPDI programmer. You can get such a device for a few euros in online stores like Amazon or AliExpress. Most of these adapters have an FTDI FT232 or a CH340 chip. Spence Konde recommends the models with the CH340 chip. Check <a href=\"https:\/\/github.com\/SpenceKonde\/AVR-Guidance\/blob\/master\/UPDI\/jtag2updi.md#wiring-the-hardware\" target=\"_blank\" rel=\"noopener\">here<\/a> if you want to know more about this topic. I tried the non-recommended version with FT232 chip and it worked perfectly fine right away. In addition, I could not reproduce the speed problems described by Spence Konde.      <\/p>\n<p>If you want to use the Optiboot bootloader (below), then I recommend a USB-to-TTL adapter with DTR pin.&nbsp;<\/p>\n\n<p>The wiring is also not particularly complicated. All you need is a diode and a 470 \u03a9 resistor. I&#8217;ve found varying specifications regarding the diode. In some cases, Schottky diodes were used, but in others, &#8220;regular&#8221; diodes were used as well.    <\/p>\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi_ft232_based_updi_programmer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"474\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi_ft232_based_updi_programmer.png\" alt=\"USB-to-TTL FTDI adapter as UPDI programmer\" class=\"wp-image-17301\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi_ft232_based_updi_programmer.png 950w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi_ft232_based_updi_programmer-300x150.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi_ft232_based_updi_programmer-768x383.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi_ft232_based_updi_programmer-860x430.png 860w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/a><figcaption class=\"wp-element-caption\">USB-to-TTL FTDI adapter as UPDI programmer<\/figcaption><\/figure>\n<\/div>\n<p>So it doesn&#8217;t necessarily have to be the 1N4148 diode shown here. It also worked for me with the SB360 Schottky diode, which is oversized for this purpose. As an alternative to the diode, you can use a resistor. I successfully tested it with a 4.7 k\u03a9 resistor. However, depending on the adapter you\u2019re using, there may still be a few pitfalls. My recommendation: Try it first, and if you run into problems, check out what Spence Konde has to say about these issues <a href=\"https:\/\/github.com\/SpenceKonde\/AVR-Guidance\/blob\/master\/UPDI\/jtag2updi.md#serial-adapter-requirements\" target=\"_blank\" rel=\"noopener\">here<\/a>.     <\/p>\n<p>As a programmer, you choose one of the SerialUPDI options. Test which speed (baud rate) works for you. &nbsp;<\/p>\n<p><a href=\"https:\/\/github.com\/wagiminator\/AVR-Programmer\/tree\/master\/SerialUPDI_Programmer\" target=\"_blank\" rel=\"noopener\">Here<\/a> on GitHub, you can find a design for a nice little UPDI programmer. I have found a commercially available SerialUPDI programmer so far only <a href=\"https:\/\/www.tindie.com\/products\/mcudude\/serialupdi-programmer\/\" target=\"_blank\" rel=\"noopener\">here.<\/a> <\/p>\n\n<h3 id=\"atmel-ice_as_updi_programmer\" class=\"wp-block-heading\">Option 3: Atmel-ICE as UPDI programmer<\/h3>\n\n<p>By far the simplest, but also most expensive variant is programming with the ATATMEL-ICE (short: Atmel-ICE). Depending on the configuration, you will have to pay between 100 and 200 Euros. But for this, you get a good programmer, which can handle UPDI, JTAG, ISP, debugWIRE and some more protocols.  <\/p>\n<p>If you use the Atmel-ICE as UPDI programmer, then three of its connector pins remain unused. The UPDI pin is where the MISO pin is normally assigned. <\/p>\n\n<div class=\"wp-block-columns are-vertically-aligned-bottom is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-bottom is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-bottom is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n<\/div>\n\n<p>Connect VCC to VCC, GND to GND and UPDI to UPDI. However, VCC of the Atmel ICE does not provide a supply voltage, but is only used to check whether the voltage level is sufficient. Hence, you still need a separate voltage source.  <\/p>\n<p>Then choose the Atmel-ICE as programmer and upload your sketches. It&#8217;s as simple as that. <\/p>\n\n<h3 class=\"wp-block-heading\">Update Dec 23: further UPDI programmers are available<\/h3>\n\n<p>It seems that the number of UPDI programmers is gradually increasing. I bought the <a href=\"https:\/\/www.diamex.de\/dxshop\/EXA-PROG-AVR-ISP-und-UPDI-STM32-NXP-ESP\" target=\"_blank\" rel=\"noopener\">EXA-PROG from Diamex<\/a>, and it works wonderfully. In addition to UPDI, it supports a number of other programming methods. As of December 2023, it\u2019s available for about 30 euros.   <\/p>\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-1024x609.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"609\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-1024x609.webp\" alt=\"Diamex EXA-PROG Programmer\" class=\"wp-image-19658\" style=\"width:391px;height:auto\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-1024x609.webp 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-300x178.webp 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-768x456.webp 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-1536x913.webp 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex-1320x785.webp 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2023\/12\/Diamex.webp 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Diamex EXA-PROG Programmer<\/figcaption><\/figure>\n\n<p>I found another programmer\u2014the microUPDProgrammer by MCUdude\u2014<a href=\"https:\/\/www.tindie.com\/products\/mcudude\/microupdi-programmer\/\" target=\"_blank\" rel=\"noopener\">here<\/a> in the Tindie Shop. It&#8217;s even cheaper, but it only supports UPDI. <\/p>\n\n<h2 id=\"upload_per_optiboot\" class=\"wp-block-heading\">Uploading sketches via Optiboot bootloader<\/h2>\n\n<p>As an alternative to UPDI you can also upload your sketches to the megaTinyCore MCUs via RX\/TX using the Optiboot bootloader. For this, you use a USB-to-serial adapter again. The advantage is that the adapter can serve both as a programming device and as a connection to the serial monitor. The disadvantage of this method is the memory space needed by the bootloader (approx. 500 bytes) and possibly a delay during the boot process (see below).   <\/p>\n<p>But first you have to burn the Optiboot bootloader (just once) via UPDI. There is no way around this step. To do this, go to Tools \u2192 Board and select the desired ATtiny with &#8220;w\/Optiboot&#8221; and the UPDI Programmer. If your ATtiny has several UART interfaces, then you can set which of them should be used for Optiboot.   <\/p>\n\n<h3 id=\"optiboot_w_o_reset\" class=\"wp-block-heading\">Optiboot without reset pin &#8211; for all tinyAVR series<\/h3>\n\n<p>This is how the setting for an ATtiny1614 might look like:<\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/optiboot_bootloader-1024x501.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"501\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/optiboot_bootloader-1024x501.png\" alt=\"Example: ATtiny1614 with Optiboot bootloader\" class=\"wp-image-15524\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/optiboot_bootloader-1024x501.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/optiboot_bootloader-300x147.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/optiboot_bootloader-768x376.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/optiboot_bootloader.png 1088w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Example: ATtiny1614 with Optiboot bootloader<\/figcaption><\/figure>\n\n<p>After you have burned the bootloader, you remove the UPDI programmer and connect the USB-to-serial adapter. For this, you connect RX of the adapter with TX of the ATtiny and TX of the adapter with RX of the ATtiny. You can find the pinout schematics on GitHub as part of the megaTinyCore library if you are not sure about the pins.  <\/p>\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/ftdi232_as_optiboot_programmer.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"437\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/ftdi232_as_optiboot_programmer.png\" alt=\"Program upload via Optiboot - Example ATtiny1614\" class=\"wp-image-15526\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/ftdi232_as_optiboot_programmer.png 1000w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/ftdi232_as_optiboot_programmer-300x131.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/ftdi232_as_optiboot_programmer-768x336.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption class=\"wp-element-caption\">Program upload via Optiboot &#8211; Example ATtiny1614<\/figcaption><\/figure>\n\n<p>Set the port for the adapter and upload the first sketch. If you want to upload another sketch later, you will have to power on the ATtiny only eight seconds before. This is the period the ATtiny waits during its boot process for sketches to be uploaded. Unfortunately, you will have to wait the same amount of time for your sketches to start.   <\/p>\n<p>If the eight seconds should annoy you, you can also limit the time to one second. This setting must be selected when burning the bootloader: <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot-1024x78.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"78\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot-1024x78.png\" alt=\"Optiboot option with one second waiting time\" class=\"wp-image-15676\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot-1024x78.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot-300x23.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot-768x58.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot-1320x100.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/08\/boot_delay_1s_optiboot.png 1372w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Optiboot option with one second waiting time<\/figcaption><\/figure>\n\n<p>However, with a delay of only one second, it is somewhat of a challenge to supply power to the ATtiny at the right moment.<\/p>\n<p><strong>Be aware<\/strong>: The other two setting options disable UPDI. I.e. you can no longer change settings for which you have to burn the bootloader. Only a high-voltage UPDI programmer could reverse this.  <\/p>\n\n<h3 id=\"optiboot_w_reset\" class=\"wp-block-heading\">Optiboot with reset pin &#8211; only for the tinyAVR 2 series<\/h3>\n\n<p>With the MCUs of the tinyAVR 2 series it is possible to set up an alternative reset pin <em>and<\/em> preserve the UDPI functionality. This allows convenient programming using the DTR pin of the USB-to-serial adapter. I show this with the example of the ATtiny1626. Note, however, that not every USB-to-serial adapter has such a DTR pin.   <\/p>\n<p>In the Arduino IDE, select your ATtiny in Tools \u2192 Boards. Again, take the variant with Optiboot. Then set the UPDI programmer of your choice. In Tools, you will find the menu item &#8220;UPDI\/alt-RST pins and Optiboot Entry (&#8230;)&#8221;. There you select the following marked entry (example ATtiny 1626):    <\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/attiny1626_optiboot_w_rst_pin.png\"><img loading=\"lazy\" decoding=\"async\" width=\"639\" height=\"116\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/attiny1626_optiboot_w_rst_pin.png\" alt=\"Setting: Optiboot with reset to PB4, 1 second waiting time\" class=\"wp-image-15532\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/attiny1626_optiboot_w_rst_pin.png 639w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/attiny1626_optiboot_w_rst_pin-300x54.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/a><figcaption class=\"wp-element-caption\">Setting: Optiboot with reset to PB4, 1 second waiting time<\/figcaption><\/figure>\n<\/div>\n<p>Now burn the bootloader with your UPDI programmer. The UPDI pin of the ATtiny1626 is pin 16 (GPIO17 \/ PA0). <\/p>\n<p>Then connect your USB-to-serial adapter to the ATtiny. For the ATtiny1626, the circuit looks like this: <\/p>\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi232_as_optiboot_programmer_w_DTR.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"494\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi232_as_optiboot_programmer_w_DTR-1024x494.png\" alt=\"\" class=\"wp-image-26464\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi232_as_optiboot_programmer_w_DTR-1024x494.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi232_as_optiboot_programmer_w_DTR-300x145.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi232_as_optiboot_programmer_w_DTR-768x370.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/09\/ftdi232_as_optiboot_programmer_w_DTR.png 1143w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Program upload via Optiboot and DTR &#8211; Example: ATtiny1626<\/figcaption><\/figure>\n\n<p>For other ATtinys, look into the pinout scheme to find the correct RST, TX and RX pin.<\/p>\n<p>Select the port of the adapter and you can upload sketches without reconnecting or similar.<\/p>\n\n<h2 id=\"serial_monitor_w_o_optiboot\" class=\"wp-block-heading\">Using the Serial Monitor with megaTinyCore without Optiboot<\/h2>\n\n<p>You may not necessarily want to sacrifice approx. 500 bytes of flash memory for the bootloader, and still use the serial monitor. This is not a problem. To do this, connect your programmer and the USB-to-serial adapter to the ATtiny. At the adapter you only need to connect RX, TX and GND. Also connect VCC of the adapter if you want to use it as power supply.    <\/p>\n<p>If you use the Arduino or a USB-to-serial adapter as UPDI programmer and combine them with a USB-to-serial adapter for the serial connection, then two selectable ports appear under Tools \u2192 Port. When uploading, you must choose the port of the programmer and switch to the other port to use the serial monitor. When using an ATMEL-ICE, there is no problem because it does not show up as a serial port.  <\/p>\n\n<h2 id=\"outlook\" class=\"wp-block-heading\">Outlook<\/h2>\n\n<p>In this post, I have only discussed the options of program upload with megaTinyCore. I have only mentioned the technical features and functions of the tinyAVRs in passing. In a later post, I will pick out one or two representatives and go into this aspect in more detail.  <\/p>\n\n<h2 class=\"wp-block-heading\">Acknowledgement<\/h2>\n\n<p>Only thanks to the package megaTinyCore it is possible to program the tinyAVRs of the series 0, 1 and 2 comfortably with the Arduino IDE.<a href=\"https:\/\/github.com\/SpenceKonde\" target=\"_blank\" rel=\"noopener\">Spence Konde<\/a> has done a fantastic job here, also regarding the documentation. Thank you very much! <\/p>\n\n<h2 class=\"wp-block-heading\">How you can support me<\/h2>\n<p>Did you enjoy this post? And did you notice that there are no annoying ads here? To keep it that way, you can support me. You can find out how <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/support-me\" target=\"_blank\" rel=\"noopener\">here<\/a>.   <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I present several options for the upload of your setches. <\/p>\n","protected":false},"author":1,"featured_media":15558,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[543],"tags":[740,1889,1886,1816,1892,735,1890,1891,1888,1813,1885,1887,766],"class_list":["post-16181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-boards-and-microcontrollers","tag-atmel-ice-en","tag-jtag2updi-en","tag-megatinycore-en","tag-optiboot-en","tag-overview","tag-programmer-en-2","tag-reset-en-2","tag-serial-monitor-en","tag-serialupdi-en","tag-spence-konde-en","tag-tinyavr-en","tag-updi-en","tag-upload-en-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using megaTinyCore &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I show how it works.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using megaTinyCore &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I show how it works.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-30T13:48:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-29T11:03:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/mega_tiny_core_post_image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"Using megaTinyCore\",\"datePublished\":\"2022-09-30T13:48:14+00:00\",\"dateModified\":\"2026-10-29T11:03:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore\"},\"wordCount\":2391,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/mega_tiny_core_post_image.jpg\",\"keywords\":[\"Atmel-ICE\",\"jtag2updi\",\"megaTinyCore\",\"Optiboot\",\"overview\",\"programmer\",\"reset\",\"serial monitor\",\"serialUPDI\",\"Spence Konde\",\"tinyAVR\",\"UPDI\",\"upload\"],\"articleSection\":[\"Boards and Microcontrollers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore\",\"name\":\"Using megaTinyCore &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/mega_tiny_core_post_image.jpg\",\"datePublished\":\"2022-09-30T13:48:14+00:00\",\"dateModified\":\"2026-10-29T11:03:21+00:00\",\"description\":\"Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I show how it works.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/mega_tiny_core_post_image.jpg\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/mega_tiny_core_post_image.jpg\",\"width\":1200,\"height\":1200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-megatinycore#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using megaTinyCore\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using megaTinyCore &#8226; Wolles Elektronikkiste","description":"Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I show how it works.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore","og_locale":"en_US","og_type":"article","og_title":"Using megaTinyCore &#8226; Wolles Elektronikkiste","og_description":"Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I show how it works.","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore","og_site_name":"Wolles Elektronikkiste","article_published_time":"2022-09-30T13:48:14+00:00","article_modified_time":"2026-10-29T11:03:21+00:00","og_image":[{"width":1200,"height":1200,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/mega_tiny_core_post_image.jpg","type":"image\/jpeg"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"Using megaTinyCore","datePublished":"2022-09-30T13:48:14+00:00","dateModified":"2026-10-29T11:03:21+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore"},"wordCount":2391,"commentCount":4,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/mega_tiny_core_post_image.jpg","keywords":["Atmel-ICE","jtag2updi","megaTinyCore","Optiboot","overview","programmer","reset","serial monitor","serialUPDI","Spence Konde","tinyAVR","UPDI","upload"],"articleSection":["Boards and Microcontrollers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore","url":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore","name":"Using megaTinyCore &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/mega_tiny_core_post_image.jpg","datePublished":"2022-09-30T13:48:14+00:00","dateModified":"2026-10-29T11:03:21+00:00","description":"Thanks to the package megaTinyCore, you can easily program the ATtinys of the tinyAVR series 0, 1 and 2 with Arduino code. I show how it works.","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/mega_tiny_core_post_image.jpg","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2022\/07\/mega_tiny_core_post_image.jpg","width":1200,"height":1200},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-megatinycore#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"Using megaTinyCore"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/16181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=16181"}],"version-history":[{"count":2,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/16181\/revisions"}],"predecessor-version":[{"id":26470,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/16181\/revisions\/26470"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/15558"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=16181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=16181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=16181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}