This project is a fork of arm-hello-world-rust. Use the Setup instructions below taken from arm-hello-world-rust to initialize this project.
This repository aims to read a Soil Moisture Sensor Hygrometer Module to detect whether your plants need to be watered.
Check the Feature List for features which are being worked on or to add your own requests.
ARM Cortex M4F application built using the rust-embedded template. This video might contain some useful information for setting up your development environment.
This program is targeted at MSP432P401R Launchpad development board.
Install dependencies:
Make sure to install the latest commit of OpenOCD, which includes the MSP432 board configuration.
On macOS:
$ brew install openocd --HEADYou may also need to install openocd dependencies: autoconf, automake and texinfo
On other platforms, follow the instructions on https://sourceforge.net/p/openocd/code/ci/master/tree/ in the section Compiling OpenOCD
Setup Rust beta and add the ARM build platform target:
$ rustup default beta
$ rustup target add thumbv7em-none-eabihfClone and compile the project:
$ git clone git@github.com:caiotavares/arm-hello-world-rust.git
$ cd arm-hello-world-rust
$ cargo buildOpen a OpenOCD server and leave it open in a terminal:
$ openocdOn a separate terminal, open the GDB client:
$ arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/arm-hello-world-rust
$ (gdb) target remote :3333
$ (gdb) load
$ (gdb) monitor arm semihosting enable
$ (gdb) continueYou should see Hello, world! displayed at the OpenOCD terminal