Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 730b3a8

Browse files
Update README to include basic flashing instructions
1 parent 80803b6 commit 730b3a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ This project is developed and maintained by the [MSP430 team][team].
124124
$ cargo build -Zbuild-std=core --examples
125125
```
126126

127+
6. Once you have an ELF binary built, flash it to your microcontroller. Use [`mspdebug`](https://github.com/dlbeer/mspdebug) to launch a debug session and `msp430-elf-gdb` with the linked gdb script. For the msp430g2553 and the MSP-EXP430G2 launchpad board this looks like the following:
128+
129+
In one terminal session
130+
```console
131+
$ mspdebug -C mspdebug.cfg rf2500
132+
```
133+
134+
In another terminal session
135+
```console
136+
$ msp430-elf-gdb -x mspdebug.gdb target/msp430-none-elf/debug/app
137+
```
138+
139+
This will flash your Rust code to the microcontroller and open a gdb debugging session to step through it.
140+
127141
# License
128142

129143
Licensed under either of

0 commit comments

Comments
 (0)