Blues Wireless Swan

The Swan is an ARM development board based on the ST Micro stm32l4r5zi SoC.

The Swan has a user button and an LED, LiPo charging and USB.

Interfaces

Interface Hardware Supported TinyGo Support
GPIO YES YES
UART YES YES
SPI YES YES
I2C YES YES
ADC YES Not yet
PWM YES Not yet

Machine Package Docs

Documentation for the machine package for the Swan

Flashing

DFU Util

Programs are loaded onto the Swan using DFU mode by default. You must install DFU Util before you will be able to flash the STM32F4 Discovery board with your TinyGo code.

  • Plug the Swan into your computer’s USB port.
  • Put the Swan into DFU mode (press and hold BOOT while toggling RESET).
  • Build and flash your TinyGo program using tinygo flash -target=swan

The Swan includes an SWD header that can be used with an ST Link such as the STLINK-V3MINI. You must install OpenOCD before you will be able to flash the Swan with your TinyGo code.

  • Connect the ST-Link debugger to the Swan using the ribbon cable.
  • Plug the Swan and the ST-Link into USB ports on your computer.
  • Build and flash your TinyGo program using tinygo flash -target=swan -programmer=openocd
Last modified January 24, 2022: stm32: add swan, lorae5, nucleo-wl55jc (3960c90)