This project was initialized using msp430-quickstart and can be run in LP-MSP430FR2476
mspdebug
msp430-gcc-opensource
msp430 FET Drivers
- If using WSL usbipd allow you to connect USB with your linux subsystem
$ cargo build --example blinky
$ cargo build
$ cargo build --release
Once you have an ELF binary built, flash it to your microcontroller. Use mspdebug
to launch a debug session and msp430-elf-gdb
with the linked gdb script. For the msp430fr2476 launchpad board this looks like the following:
In one terminal session
$ sudo mspdebug -v 3300 --fet-force-id MSP430FR2476 -C mspdebug.cfg tilib
In another terminal session
$ msp430-elf-gdb -x mspdebug.gdb target/msp430-none-elf/debug/app
or simply
$ cargo run
or
$ cargo run --release
This will flash your Rust code to the microcontroller and open a gdb debugging session to step through it.
To run the code type
(gdb) continue
A breakpoint (in line 57) can be set with
(gdb) break src/main.rs:57
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.