Skip to content

DistRap/monstick-firmware

Repository files navigation

monstick firmware

Firmware for Monstick devices.

Written using Ivory Tower framework

Building

nix-shell
make <TARGET>

Run make to build all applications. Specific application can be built with make APP loaded with make APP-load and make APP-run.

To load Blink test application run

make blink-test-load

to also issue run and start application after loading use::

make blink-test-run

to just run gdb with new binary without loading::

make blink-test-gdb
# issuing 'load' in gdb         == blink-test-load
# running both 'load' and 'run' == blink-test-run

Apps

LoraWAN

Periodically send temperature / humidity readings over LoraWAN. Sample is packed using Cayenne Low Power protocol using ivory-tower-cayenne library.

To configure RN2483 radio copy provided user.conf.sample to user.conf, edit as needed and run make lorawan again.

cp user.conf.sample user.conf

Logger

Log sensor readings to UART

Tests

Blink

Blinks red and green LEDs

Heater

Allows control of SI7006 internal heater via UART '0'-'9' characters

UARTBridge

Bridge debug UART to radio modem UART

RadioCommand

Raw radio command example

Flashing

Manually with BlackMagic Probe::

arm-none-eabi-gdb \
  --ex 'target extended-remote /dev/ttyACM0' \
  --ex 'monitor swdp_scan' \
  --ex 'attach 1' \
  --ex 'load' build/lorawan/image

About

Firmware for MonStick devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published