/geckoboot.rs

Rust language blink demo for EFM32GG Cortex M3 ARM microcontrollers.

Primary LanguageRust

geckoboot.rs

A blinky demo for using the Rust programming language bare metal on EFM32GG_STK3700 Giant Gecko starter kit from Silicon Labs.

This repository is based on https://github.com/neykov/armboot/ and adapted for the Giant Gecko kit.

Requirements:

  • arm-none-eabi toolchain
  • llvm-3.6 (nightly) toolchain
  • rustc (tested on "rustc 1.0.0-nightly (44a287e6 2015-01-08 17:03:40 -0800)")
  • Rust libcore compiled for arm (tested at 44a287e6)

Setup:

Edit "Makefile" with the follow paths

  • rust source
  • rustc compiler
  • gcc-toolchain
  • llvm
  • efm32 library code
  • eACommander

Linux Setup Notes

Compiling:

´make flash PROJ_NAME=´ excluding .rs

Structure

  • blinky.rs - sample program (blinks LED1 and LED0 on the EFM32GG_STK3700 board)
  • buttons.rs - sample program (hooks up PB0 and PB1 with LED0 and LED1 on the EFM32GG_STK3700 board)
  • emlib/ - rust bindings for emlib
  • emdrv/ - rust bindings for emdrv

Credits