Skip to content

Blinky using peripheral access API for MSP430FR2476 microcontroller

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

EnmanuelParache/msp430fr247x-blinky

Repository files navigation

msp430fr2476-blinky

This project was initialized using msp430-quickstart and can be run in LP-MSP430FR2476

Dependencies

Build the project

Example

$ cargo build --example blinky

Debug

$ cargo build

Release

$ cargo build --release

Debugging

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

License

Licensed under either of

Contribution

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.

About

Blinky using peripheral access API for MSP430FR2476 microcontroller

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published