|
6 | 6 |
|
7 | 7 | This project can be compiled using nightly rust and [xargo](https://github.com/japaric/xargo).
|
8 | 8 |
|
9 |
| -Tested using version `1.15.0-nightly (8f02c429a 2016-12-15)`. |
| 9 | +Tested using version `1.15.0-nightly (8f02c429a 2016-12-15)` |
10 | 10 |
|
11 | 11 | Steps:
|
12 |
| -* First, install msp430-elf-gcc compiler, and make sure it is in your $PATH. |
| 12 | +* First, install `msp430-elf-gcc` compiler, and make sure it is in your `$PATH`. |
13 | 13 | You can get it from [here](http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/index_FDS.html).
|
14 |
| -* Install nightly rust |
15 |
| - |
16 |
| - `$ rustup default nightly` |
17 |
| -* Install xargo |
18 |
| - |
19 |
| - `$ cargo install xargo` |
20 |
| -* Build the project using |
21 |
| - |
22 |
| - `$ make` |
23 |
| - |
| 14 | +* Install nightly rust: `rustup default nightly` |
| 15 | +* Install xargo: `$ cargo install xargo` |
| 16 | +* Build the project: `$ make` |
24 | 17 | * or you can build it using xargo directly (if you don't like `make`)
|
25 | 18 |
|
26 | 19 | `$ xargo build --release --target msp430g2553`
|
27 |
| - |
28 |
| -* Flash the firmware using `mspdebug` |
29 |
| - |
30 |
| - `$ make prog` |
| 20 | +* Flash the firmware using mspdebug: `$ make prog` |
31 | 21 |
|
32 | 22 | ## How it works
|
33 | 23 |
|
|
50 | 40 | is not possible to use interrupts yet (other than reset), because rust doesn't have a special
|
51 | 41 | calling convention for MSP430 interrupts.
|
52 | 42 |
|
53 |
| -## Proting to other boards and MCUs |
| 43 | +## Porting to other boards and MCUs |
54 | 44 |
|
55 | 45 | To run this code on the other boards and MCUs, you need to change it in few places:
|
56 | 46 | * Get a linker script for your MCU from msp430-elf-gcc include directory, and place it
|
|
0 commit comments