konimarti / trinketm0

Bare Metal C Programming on the Adafruit Trinket M0 (Cortex M0+)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adafruit Trinket M0 Bare Metal C Programming

This is a very simple example to blink the on-board LED on the Adafruit Trinket M0 with a pure C program. The Trinket M0 uses an ARM Cortex M0+ processor (ATSAMD21E18A).

Relevant Datasheets

Dependencies

  • Install the cross-compiling toolchain for ARM processors (arm-none-eabi-gcc and arm-none-eabi-binutils)
  • Install the flashing utiliy bossa for your platform (for Arch Linux: Bossa AUR)

Building and Flashing

  • Plug in your Trinket and check the port (e.g. /dev/ttyACM0 or /dev/ttyACM1)

  • Adjust the port in the Makefile accordingly

  • Then do the building and flashing:

     make build
     make flash
    

Credits

About

Bare Metal C Programming on the Adafruit Trinket M0 (Cortex M0+)


Languages

Language:C 79.0%Language:Makefile 21.0%