All Versions
20
Latest Version
Avg Release Cycle
35 days
Latest Release
1227 days ago

Changelog History
Page 1

  • v0.16.0 Changes

    November 18, 2020

    ๐Ÿš€ This is the next release of TinyGo, this time featuring the addition of the Teensy 4.0 and the addition of initial WASI support, apart from numerous fixes and improvements (such as improved tinygo test support). See the full changelog below.

    • command-line
      • add initial support for LLVM 11
      • make lib64 clang include path check more robust
      • build: improve support for GOARCH=386 and add tests
      • gdb: add support for qemu-user targets
      • test: support non-host tests
      • test: add support for -c and -o flags
      • test: implement some benchmark stubs
    • compiler
      • builder: improve detection of clang on Fedora
      • compiler: fix floating point comparison bugs
      • compiler: implement negate for complex numbers
      • loader: fix linkname in test binaries
      • transform: add missing return pointer restore for regular coroutine tail calls
    • standard library
      • machine: switch default frequency to 4MHz
      • machine: clarify caller's responsibility in SetInterrupt
      • os: add LookupEnv() stub
      • reflect: implement Swapper
      • runtime: fix UTF-8 decoding
      • runtime: gc: use raw stack access whenever possible
      • runtime: use dedicated printfloat32
      • runtime: allow ranging over a nil map
      • runtime: avoid device/nxp dependency in HardFault handler
      • testing: implement dummy Helper method
      • testing: add Run method
    • targets
      • arm64: add support for SVCall intrinsic
      • atsamd51: avoid panic when configuring SPI with SDI=NoPin
      • avr: properly support the .rodata section
      • esp8266: implement Pin.Get function
      • nintendoswitch: fix crash when printing long lines (> 120)
      • nintendoswitch: add env parser and removed unused stuff
      • nrf: add I2C error checking
      • nrf: give more flexibility in picking SPI speeds
      • nrf: fix nrf52832 flash size
      • stm32f103: support wakeups from interrupts
      • stm32f405: add SPI support
      • stm32f405: add I2C support
      • wasi: add support for this target
      • wasi: use 'generic' ABI by default
      • wasi: remove --no-threads flag from wasm-ld
      • wasm: add instanceof support for WebAssembly
      • wasm: use fixed length buffer for putchar
    • boards
      • d1mini: add this ESP8266 based board
      • esp32: use board definitions instead of chip names
      • qtpy: add board definition for Adafruit QTPy
      • teensy40: add this board
  • v0.15.0 Changes

    September 17, 2020

    ๐Ÿš€ This is a very major release that adds some long-awaited capabilities to TinyGo, like support for Bluetooth Low Energy via the Nordic Semiconductor nRF51/nRF52. and also support for the Espressif ESP32/ESP8266.

    • command-line
      • add cached GOROOT to info subcommand
      • embed git-hash in tinygo-dev executable
      • implement tinygo targets to list usable targets
      • use simpler file copy instead of file renaming to avoid issues on nrf52840 UF2 bootloaders
      • use ToSlash() to specify program path
      • support flashing esp32/esp8266 directly from tinygo
      • when flashing call PortReset only on other than openocd
    • compiler
      • compileopts: add support for custom binary formats
      • compiler: improve display of goroutine wrappers
      • interp: don't panic in the Store method
      • interp: replace some panics with error messages
      • interp: show error line in first line of the traceback
      • loader: be more robust when creating the cached GOROOT
      • loader: rewrite/refactor much of the code to use go list directly
      • loader: use ioutil.TempDir to create a temporary directory
      • stacksize: deal with DW_CFA_advance_loc1
    • standard library
      • runtime: use waitForEvents when appropriate
    • wasm
      • wasm: Remove --no-threads from wasm-ld calls.
      • wasm: update wasi-libc dependency
    • targets
      • arduino-mega2560: fix flashing on Windows
      • arm: automatically determine stack sizes
      • arm64: make dynamic loader structs and constants private
      • avr: configure emulator in board files
      • cortexm: fix stack size calculation with interrupts
      • flash: add openocd settings to atsamd21 / atsamd51
      • flash: add openocd settings to nrf5
      • microbit: reelboard: flash using OpenOCD when needed
      • nintendoswitch: Add dynamic loader for runtime loading PIE sections
      • nintendoswitch: fix import cycle on dynamic_arm64.go
      • nintendoswitch: Fix invalid memory read / write in print calls
      • nintendoswitch: simplified assembly code
      • nintendoswitch: support outputting .nro files directly
    • boards
      • arduino-zero: Adding support for the Arduino Zero (#1365)
      • atsamd2x: fix BAUD value
      • atsamd5x: fix BAUD value
      • bluepill: Enable stm32's USART2 for the board and map it to UART1 tinygo's device
      • device/atsamd51x: add all remaining bitfield values for PCHCTRLm Mapping
      • esp32: add libgcc ROM functions to linker script
      • esp32: add SPI support
      • esp32: add support for basic GPIO
      • esp32: add support for the Espressif ESP32 chip
      • esp32: configure the I/O matrix for GPIO pins
      • esp32: export machine.PortMask* for bitbanging implementations
      • esp8266: add support for this chip
      • machine/atsamd51x,runtime/atsamd51x: fixes needed for full support for all PWM pins. Also adds some useful constants to clarify peripheral clock usage
      • machine/itsybitsy-nrf52840: add support for Adafruit Itsybitsy nrf52840 (#1243)
      • machine/stm32f4: refactor common code and add new build tag stm32f4 (#1332)
      • nrf: add SoftDevice support for the Circuit Playground Bluefruit
      • nrf: call sd_app_evt_wait when the SoftDevice is enabled
      • nrf52840: add build tags for SoftDevice support
      • nrf52840: use higher priority for USB-CDC code
      • runtime/atsamd51x: use PCHCTRL_GCLK_SERCOMX_SLOW for setting clocks on all SERCOM ports
      • stm32f405: add basic UART handler
      • stm32f405: add STM32F405 machine/runtime, and new board/target feather-stm32f405
    • ๐Ÿ— build
      • all: run test binaries in the correct directory
      • build: Fix arch release job
      • ci: run tinygo test for known-working packages
      • ci: set git-fetch-depth to 1
      • docker: fix the problem with the wasm build (#1357)
      • Makefile: check whether submodules have been downloaded in some common cases
    • ๐Ÿ“„ docs
      • add ESP32, ESP8266, and Adafruit Feather STM32F405 to list of supported boards
  • v0.14.1 Changes

    August 19, 2020

    ๐Ÿš€ This is a patch release specifically for compatibility with Go 1.15.

    • command-line
      • support for Go 1.15
    • compiler
      • loader: work around Windows symlink limitation
  • v0.14.0 Changes

    August 04, 2020

    ๐Ÿš€ This is a big release with lots of small improvements. Some of the highlights include Go module support and the support for channel operations in interrupts for a few chips. This release also includes support for a number of new boards: the Adafruit Feather nRF52840 Express, the Adafruit PyGamer, the Sipeed MAix BiT with a 64-bit RISC-V MCU, the Teensy 3.6, the Seed WioTerminal, and the Seeed Xiao. Perhaps more interesting, it includes initial support for the Nintendo Switch.

    • command-line
      • fix getDefaultPort() on non-English Windows locales
      • compileopts: improve error reporting of unsupported flags
      • fix test subcommand
      • use auto-retry to locate MSD for UF2 and HEX flashing
      • fix touchSerialPortAt1200bps on Windows
      • support package names with backslashes on Windows
    • compiler
      • fix a few crashes due to named types
      • add support for atomic operations
      • move the channel blocked list onto the stack
      • fix -gc=none
      • fix named string to []byte slice conversion
      • implement func value and builtin defers
      • add proper parameter names to runtime.initAll, to fix a panic
      • builder: fix picolibc include path
      • builder: use newer version of gohex
      • builder: try to determine stack size information at compile time
      • builder: remove -opt=0
      • interp: fix sync/atomic.Value load/store methods
      • loader: add Go module support
      • transform: fix debug information in func lowering pass
      • transform: do not special-case zero or one implementations of a method call
      • transform: introduce check for method calls on nil interfaces
      • transform: gc: track 0-index GEPs to fix miscompilation
    • cgo
      • Add LDFlags support
    • standard library
      • extend stdlib to allow import of more packages
      • replace master/slave terminology with appropriate alternatives (MOSI->SDO etc)
      • internal/bytealg: reimplement bytealg in pure Go
      • internal/task: fix nil panic in (*internal/task.Stack).Pop
      • os: add Args and stub it with mock data
      • os: implement virtual filesystem support
      • reflect: add Cap and Len support for map and chan
      • runtime: fix return address in scheduler on RISC-V
      • runtime: avoid recursion in printuint64 function
      • runtime: replace ReadRegister with AsmFull inline assembly
      • runtime: fix compilation errors when using gc.extalloc
      • runtime: add cap and len support for chans
      • runtime: refactor time handling (improving accuracy)
      • runtime: make channels work in interrupts
      • runtime/interrupt: add cross-chip disable/restore interrupt support
      • sync: implement sync.Cond
      • sync: add WaitGroup
    • targets
      • arm: allow nesting in DisableInterrupts and EnableInterrupts
      • arm: make FPU configuraton consistent
      • arm: do not mask fault handlers in critical sections
      • atmega2560: fix pin mapping for pins D2, D5 and the L port
      • atsamd: return an error when an incorrect PWM pin is used
      • atsamd: add support for pin change interrupts
      • atsamd: add DAC support
      • atsamd21: add more ADC pins
      • atsamd51: fix ROM / RAM size on atsamd51j20
      • atsamd51: add more pins
      • atsamd51: add more ADC pins
      • atsamd51: add pin change interrupt settings
      • atsamd51: extend pinPadMapping
      • arduino-nano33: use (U)SB flag to ensure that device can be found when not on default port
      • arduino-nano33: remove (d)ebug flag to reduce console noise when flashing
      • avr: use standard pin numbering
      • avr: unify GPIO pin/port code
      • avr: add support for PinInputPullup
      • avr: work around codegen bug in LLVM 10
      • avr: fix target triple
      • fe310: remove extra println left in by mistake
      • feather-nrf52840: add support for the Feather nRF52840
      • maixbit: add board definition and dummy runtime
      • nintendoswitch: Add experimental Nintendo Switch support without CRT
      • nrf: expose the RAM base address
      • nrf: add support for pin change interrupts
      • nrf: add microbit-s110v8 target
      • nrf: fix bug in SPI.Tx
      • nrf: support debugging the PCA10056
      • pygamer: add Adafruit PyGamer suport
      • riscv: fix interrupt configuration bug
      • riscv: disable linker relaxations during gp init
      • stm32f4disco: add new target with ST-Link v2.1 debugger
      • teensy36: add Teensy 3.6 support
      • wasm: fix event handling
      • wasm: add --no-demangle linker option
      • wioterminal: add support for the Seeed Wio Terminal
      • xiao: add support for the Seeed XIAO
  • v0.13.1 Changes

    April 26, 2020

    ๐Ÿš€ This is a patch release that fixes a few bugs in the previous 0.13.0 release related to the GC and in support for the GameBoy Advance.

    • standard library
      • runtime: do not put scheduler and GC code in the same section
      • runtime: copy stack scan assembly for GBA
    • boards
      • gameboy-advance: always use ARM mode instead of Thumb mode
  • v0.13.0 Changes

    April 14, 2020

    ๐Ÿš€ This new release adds support for Go 1.14 and LLVM 10. It fixes a number of compiler and runtime bugs and also has had some significant refactoring in goroutine support. Perhaps most visible is that USB-CDC now works on all major OSes (Windows, macOS, and Linux) so that you can flash Adafruit boards without manually entering the bootloader.

    ๐Ÿš€ This release adds support for five new boards: the Adafruit CLUE, Arduino Mega 2560, and the Particle Argon, Boron and Xenon.

    ๐Ÿš€ Note that this release requires Go 1.14 to support WebAssembly.

    ๐Ÿ— ARM builds (for the Raspberry Pi) will follow later.

    ๐Ÿš€ Here is a detailed list of changes with this release:

    • ๐Ÿ’ป command line
      • use gdb-multiarch for debugging Cortex-M chips
      • support tinygo run with simavr
      • support LLVM 10
      • support Go 1.14
      • retry 3 times when attempting to do a 1200-baud reset
    • compiler
      • mark the abort function as noreturn
      • fix deferred calls to exported functions
      • add debug info for local variables
      • check for channel size limit
      • refactor coroutine lowering
      • add dereferenceable_or_null attribute to pointer parameters
      • do not perform nil checking when indexing slices and on unsafe.Pointer
      • remove runtime.isnil hack
      • use LLVM builtins for runtime memcpy/memmove/memzero functions
      • implement spec-compliant shifts on negative/overflow
      • support anonymous type asserts
      • track pointer result of string concatenation for GC
      • track PHI nodes for GC
      • add debug info to goroutine start wrappers
      • optimize comparing interface values against nil
      • fix miscompilation when deferring an interface call
      • builder: include picolibc for most baremetal targets
      • builder: run tools (clang, lld) as separate processes
      • builder: use -fshort-enums consistently
      • interp: add support for constant type asserts
      • interp: better support for interface operations
      • interp: include backtrace with error
      • transform: do not track const globals for GC
      • transform: replace panics with source locations
      • transform: fix error in interface lowering pass
      • transform: make coroutine lowering deterministic
      • transform: fix miscompilation in func lowering
    • cgo
      • make -I and -L paths absolute
    • standard library
      • machine: set the USB VID and PID to the manufacturer values
      • machine: correct USB CDC composite descriptors
      • machine: move errors.New calls to globals
      • runtime: support operations on nil maps
      • runtime: fix copy builtin return value on AVR
      • runtime: refactor goroutines
      • runtime: support -scheduler=none on most platforms
      • runtime: run package initialization in the main goroutine
      • runtime: export malloc / free for use from C
      • runtime: add garbage collector that uses an external allocator
      • runtime: scan callee-saved registers while marking the stack
      • runtime: remove recursion from conservative GC
      • runtime: fix blocking select on nil channel
      • runtime/volatile: include ReplaceBits method
      • sync: implement trivial sync.Map
    • targets
      • arm: use -fomit-frame-pointer
      • atmega1284: support this chip for testing purposes
      • atsamd51: make QSPI available on all boards
      • atsamd51: add support for ADC1
      • atsamd51: use new interrupt registration in UART code
      • attiny: clean up pin definitions
      • avr: use the correct RAM start address
      • avr: pass the correct -mmcu flag to the linker
      • avr: add support for tasks scheduler (disabled by default)
      • avr: fix linker problem with overlapping program/data areas
      • nrf: fix typo in pin configuration options
      • nrf: add lib/nrfx/mdk to include dirs
      • nrf52840: implement USB-CDC
      • riscv: implement VirtIO target and add RISC-V integration test
      • riscv: add I2C support for the HiFive1 rev B board
      • stm32: refactor GPIO pin handling
      • stm32: refactor UART code
      • stm32f4: add SPI
      • wasm: support Go 1.14 (breaking previous versions)
      • wasm: support syscall/js.CopyBytesToJS
      • wasm: sync polyfills from Go 1.14.
    • boards
      • arduino-mega2560: add the Arduino Mega 2560
      • clue-alpha: add the Adafruit CLUE Alpha
      • gameboy-advance: enable debugging with GDB
      • particle-argon: add the Particle Argon board
      • particle-boron: add the Particle Boron board
      • particle-xenon: add the Particle Xenon board
      • reelboard: add reelboard-s140v7 SoftDevice target
  • v0.12.0 Changes

    January 31, 2020

    ๐Ÿš€ This release incorporates a ton of smaller changes over more than a month. Notable changes are the addition of 3 new boards (Adafruit PyPortal, Adafruit Circuit Playground Bluefruit, Arduino Nano), improved support for interrupts, improved CGo support, and a number of improvements for the atsamd51 chip (for "M4" branded boards). Take a look below for a more detailed list of changes.

    • ๐Ÿ’ป command line
      • add initial FreeBSD support
      • remove getting a serial port in gdb subcommand
      • add support for debugging through JLinkGDBServer
      • fix CGo when cross compiling
      • remove default port check for Digispark as micronucleus communicates directly using HID
      • differentiate between various serial/USB error messages
    • ๐Ÿ— builder
      • improve detection of Clang headers
    • compiler
      • fix assertion on empty interface
      • don't crash when encountering types.Invalid
      • revise defer to use heap allocations when running a variable number of times
      • improve error messages for failed imports
      • improve "function redeclared" error
      • add globaldce pass to start of optimization pipeline
      • add support for debugging globals
      • implement RISC-V CSR operations as intrinsics
      • add support for CGO_ENABLED environment variable
      • do not emit debug info for extern globals (bugfix)
      • add support for interrupts
      • implement maps for arbitrary keys
      • interp: error location for "unknown GEP" error
      • wasm-abi: create temporary allocas in the entry block
    • cgo
      • add support for symbols in #define
      • fix a bug in number tokenization
    • standard library
      • machine: avoid bytes package in USB logic
      • runtime: fix external address declarations
      • runtime: provide implementation for internal/bytealg.IndexByte
    • targets
      • atsamd51: fix volatile usage
      • atsamd51: fix ADC, updating to 12-bits precision
      • atsamd51: refactor SPI pin configuration to only look at pin numbers
      • atsamd51: switch UART to use new pin configuration
      • atsamd51: fix obvious bug in I2C code
      • atsamd51: use only the necessary UART interrupts
      • atsamd51: refactor I2C pin handling to auto-detect pin mode
      • avr: use a garbage collector
      • fe310: use CLINT peripheral for timekeeping
      • fe310: add support for PLIC interrupts
      • fe310: implement UART receive interrupts
      • riscv: support sleeping in QEMU
      • riscv: add bare-bones interrupt support
      • riscv: print exception PC and code
      • wasm: implement memcpy and memset
      • wasm: include wasi-libc
      • wasm: use wasi ABI for basic startup/stdout
    • boards
      • arduino: make avrdude command line compatible with Windows
      • arduino-nano: add this board
      • arduino-nano33: fix UART1 and UART2
      • circuitplay-bluefruit: add this board
      • digispark: add clock speed and pin mappings
      • gameboy-advance: include compiler-rt in build
      • gameboy-advance: implement interrupt handler
      • hifive1b: add support for gdb subcommand
      • pyportal: add this board
      • pyportal: remove manual SPI pin mapping as now handled by default
  • v0.11.0 Changes

    December 23, 2019

    ๐Ÿš‘ This release includes a few significant usability improvements: it bundles Clang in the release tarball, auto-detects the serial port on macOS, and adds support for tinygo flash on Windows. There are also other changes, such as the addition of the Adafruit PyBadge and a critical fix to RISC-V support.

    ๐Ÿ Windows binaries will be uploaded soon, when the build is finished.

    • ๐Ÿ’ป command line
      • add support for QEMU in gdb subcommand
      • use builtin Clang when building statically, dropping the clang-9 dependency
      • search for default serial port on both macOS and Linux
      • windows: support tinygo flash directly by using win32 wmi
    • compiler
      • add location information to the IR checker
      • make reflection sidetables constant globals
      • improve error locations in goroutine lowering
      • interp: improve support for maps with string keys
      • interp: add runtime fallback for mapassign operations
    • standard library
      • machine: add support for SPI.Tx() on play.tinygo.org
      • machine: rename CPU_FREQUENCY to CPUFrequency()
    • targets
      • adafruit-pybadge: add Adafruit Pybadge
      • arduino-nano33: allow simulation on play.tinygo.org
      • arduino-nano33: fix default SPI pin numbers to be D13/D11/D12
      • circuitplay-express: allow simulation on play.tinygo.org
      • hifive1-qemu: add target for testing RISC-V bare metal in QEMU
      • riscv: fix heap corruption due to changes in LLVM 9
      • riscv: add support for compiler-rt
      • qemu: rename to cortex-m-qemu
  • v0.10.0 Changes

    November 26, 2019

    ๐Ÿš€ This release adds support for blocking select, switches to LLVM 9, improves CGo support, improves support for the ATSAMD51 ("M4") chip, and generally has a lot of improvements and bug fixes throughout. It also adds support for a number of new boards: the Adafruit Feather M4, the Adafruit Metro M4 Express AirLift, the PineTime dev kit, and the "X9 Pro" smartwatch.

    ๐Ÿง Note: binaries for linux/arm are still being built and will be added soon.

    • ๐Ÿ’ป command line
      • halt GDB after flashing with gdb subcommand
      • fix a crash when using -ocd-output
      • add info subcommand
      • add -programmer flag
    • ๐Ÿ— builder
      • macos: use llvm@8 instead of just llvm in paths
      • add linkerscript key to target JSON files
      • write a symbol table when writing out the compiler-rt lib
      • make Clang header detection more robust
      • switch to LLVM 9
    • compiler
      • fix interface miscompilation with reflect
      • fix miscompile of static goroutine calls to closures
      • fix todo: store panic
      • fix incorrect starting value for optimized allocations in a loop
      • optimize coroutines on non-Cortex-M targets
      • fix crash for programs which have heap allocations but never hit the GC
      • add support for async interface calls
      • fix inserting non-const values in a const global
      • interp: improve error reporting
      • interp: implement comparing ptrtoint to 0
    • cgo
      • improve diagnostics
      • implement the constant parser (for #define) as a real parser
      • rename reserved field names such as type
      • avoid "unsafe" imported but not used error
      • include all enums in the CGo Go AST
      • add support for nested structs and unions
      • implement #cgo CFLAGS
    • standard library
      • reflect: add implementation of array alignment
      • runtime: improve scheduler performance when no goroutines are queued
      • runtime: add blocking select
      • runtime: implement interface equality in non-trivial cases
      • runtime: add AdjustTimeOffset to update current time
      • runtime: only implement CountString for required platforms
      • runtime: use MSP/PSP registers for scheduling on Cortex-M
    • targets
      • arm: add system timer registers
      • atmega: add port C GPIO support
      • atsamd21: correct handling of pins >= 32
      • atsamd21: i2s initialization fixes
      • atsamd51: fix clock init code
      • atsamd51: correct initialization for RTC
      • atsamd51: fix pin function selection
      • atsamd51: pin method cleanup
      • atsamd51: allow setting pin mode for each of the SPI pins
      • atsamd51: correct channel init and pin map for ADC based on ItsyBitsy-M4
      • feather-m4: add Adafruit Feather M4 board
      • hifive1b: add support for SPI1
      • hifive1b: fix compiling in simulation
      • linux: fix time on arm32
      • metro-m4: add support for Adafruit Metro M4 Express Airlift board
      • metro-m4: fixes for UART2
      • pinetime-devkit0: add support for the PineTime dev kit
      • x9pro: add support for this smartwatch
      • pca10040-s132v6: add support for SoftDevice
      • pca10056-s140v7: add support for SoftDevice
      • arduino-nano33: added SPI1 connected to NINA-W102 chip on Arduino Nano 33 IO
  • v0.9.0 Changes

    October 17, 2019

    ๐Ÿš€ This release adds experimental support for Windows, updates to support Go 1.13, improves flashing experience of many boards (no more button pressing), and adds support for buffered channels. There are also lots of other smaller changes, see the list below.

    0.9.0

    • ๐Ÿ’ป command line
      • implement 1200-baud UART bootloader reset when flashing boards that support it
      • flash using mass-storage device for boards that support it
      • implement tinygo env
      • add support for Windows (but not yet producing Windows binaries)
      • add Go version to tinygo env
      • update SVD files for up-to-date peripheral interfaces
    • compiler
      • add //go:align pragma
      • fix bug related to type aliases
      • add support for buffered channels
      • remove incorrect reflect optimization
      • implement copying slices in init interpretation
      • add support for constant indices with a named type
      • add support for recursive types like linked lists
      • fix miscompile of function nil panics
      • fix bug related to goroutines
    • standard library
      • machine: do not check for nil slices in SPI.Tx
      • reflectlite: add support for Go 1.13
      • runtime: implement internal/bytealg.CountString
      • sync: properly handle nil New func in sync.Pool
    • targets
      • arduino: fix .bss section initialization
      • fe310: implement Pin.Get
      • gameboy-advance: support directly outputting .gba files
      • samd: reduce code size by avoiding reflection
      • samd21: do not hardcode pin numbers for peripherals
      • stm32f103: avoid issue with time.Sleep less than 200ยตs