TinyGo lets you run Go directly on microcontrollers.
TinyGo has support for 85 different boards and devices such as the Arduino Nano33 IoT, Adafruit Circuit Playground Express, BBC micro:bit and more. Click on a board name below to see the what features are supported for the given hardware.
Support for some boards and processor types are more complete than others. As of early 2023, boards using the following microcontrollers are well-supported:
- SAMD21 based on the
ARM Cortex-M0+ processor
- Some companies (Adafruit) call these boards the “M0”.
- SAMD51 based on the
ARM Cortex-M4 processor
- Some companies call these boards the “M4”.
- nRF52840 based on the Arm Cortex-M4F processor
- RP2040 with dual ARM Cortex-M0+
processors (although TinyGo uses only a single core)
- The Raspberry Pi Pico is a famous example using this, but there are many other boards using this microcontroller now.
The introductory Arduino boards based on the 8-bit AVR processors work
relatively well under TinyGo. But they have limited amounts of flash and static
memory so they support only small applications (e.g. the
fmt package may
consume too much flash memory, and goroutines may consume too much static
- ATmega328P, used by Arduino Nano, Arduino UNO, etc.
Boards using the Espressif microcontrollers have become popular in IoT applications because of their support for WiFi. Unfortunately TinyGo does not support WiFi nor Bluetooth on these boards:
- ESP8266 based on the Xtensa LX106 processor
- ESP32 based on the Xtensa LX6 processor
- ESP32-C3 based on the RISC-V processor
We also give you the ability to add new boards. If your target isn’t listed here, please raise an issue in the issue tracker.
Want to know the details about how it is possible to compile Go for microcontrollers? Check out the microcontrollers page in our “Compiler Internals” section.