Skip to content

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

Notifications You must be signed in to change notification settings

konimarti/trinketm0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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+)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published