7 releases (4 breaking)

0.4.1 Oct 18, 2024
0.4.0 Jan 11, 2022
0.3.0 Sep 27, 2021
0.2.0 Jan 1, 2021
0.0.1 Sep 28, 2020

#2242 in Embedded development

Download history 8/week @ 2024-09-22 8/week @ 2024-09-29 102/week @ 2024-10-13 33/week @ 2024-10-20

143 downloads per month

MIT/Apache

1.5MB
24K SLoC

WIO Lite MG126 Board Support Crate

This crate provides a type-safe API for working with the WIO Lite MG126(https://wiki.seeedstudio.com/Wio-Lite-MG126/).

Examples

Blinky Basic

Requirements

  • Arduino IDE installed
    • samd package installed (You can do this by going to Tools->Board->BoardManager and then searching for samd
    • Now the arduino distribution contains bossac.exe in ArduinoData/packages/arduino/tools/bossac/1.7.0[-arduino3]/ add it to your path
      • linux: ArduinoData is likely something like ~/.arduino15/
      • OSX: ArduinoData is likely something like ~/Library/Arduino15
    • Probably best to install an example sketch via the IDE just to make sure everything is working
    • Note that the arduino cli (or just regular bossac) may soon replace this section
  • arm-none-eabi tools installed, you need gcc and objcopy.
    • Note: Alternatively, you can use cargo-binutils, which is likely easier to install on OSX and also easier to use, as it will automatically detect the target
  • thumbv6m-none-eabi rust target installed via rustup target add thumbv6m-none-eabi

Steps

cargo build --release --example blinky_basic
arm-none-eabi-objcopy -O binary target/thumbv6m-none-eabi/release/examples/blinky_basic target/blinky_basic.bin
# if using cargo-binutils, you can `rust-objcopy` with the same flags, or combine the previous 2 steps with `cargo objcopy`
bossac -i -d -U true -i -e -w -v target/blinky_basic.bin -R

Dependencies

~5MB
~112K SLoC