2
2
3
3
## Setup
4
4
5
- We need to use nightly toolchain to support all examples.
5
+ We need to use nightly toolchain to support all examples.
6
6
Even if some might run with the stable toolchain as well.
7
7
8
8
** GNU Toolchain** is required for debugging some examples (e.g. windows):
@@ -46,7 +46,7 @@ To see all errors use:
46
46
47
47
### Run Windows Demo
48
48
49
- You need to build with nightly GNU to allow debugging.
49
+ You need to build with nightly GNU to allow debugging.
50
50
The target must be ` x86_64-pc-windows-msvc ` for the FreeRTOS ` MSVC-MingW ` port.
51
51
52
52
Prepare the build with:
@@ -60,14 +60,22 @@ Run the build
60
60
61
61
### Run Linux Demo
62
62
63
-
64
63
Prepare the build with:
65
64
66
- rustup default x86_64-unknown-linux-gnu
65
+ rustup default nightly
66
+ rustup toolchain install nightly
67
67
rustup target add x86_64-unknown-linux-gnu
68
-
68
+ rustup component add llvm-tools-preview
69
+ cargo install cargo-binutils
70
+
71
+ sudo apt install gcc g++ make
72
+
69
73
Run the build
70
74
75
+ cargo build --package freertos-rust-examples --example linux --target x86_64-unknown-linux-gnu
76
+
77
+ Run the example
78
+
71
79
cargo run --package freertos-rust-examples --example linux --target x86_64-unknown-linux-gnu
72
80
73
81
### Run STM32 Cortex-M3 Demo
@@ -126,21 +134,21 @@ Create the Toolchain under: `File | Settings | Build, Execution, Deployment | To
126
134
* Name: ` arm-none-eabi `
127
135
* Debugger: ` /path/to/arm-none-eabi-gdb.exe `
128
136
129
- Build:
137
+ Build:
130
138
131
139
* Name: ` build-nrf9160-example `
132
140
* Programm: ` cargo `
133
141
* Arguments: ` build --package freertos-rust-examples --example nrf9160 --target thumbv8m.main-none-eabihf `
134
142
* Working directory: ` $ProjectFileDir$ `
135
143
136
- Clean:
144
+ Clean:
137
145
138
146
* Name: ` clean `
139
147
* Programm: ` cargo `
140
148
* Arguments: ` clean `
141
149
* Working directory: ` $ProjectFileDir$ `
142
150
143
- Setup a Run Configuration:
151
+ Setup a Run Configuration:
144
152
145
153
* Executable: ` target\thumbv8m.main-none-eabihf\debug\examples\nrf9160 ` (only selectable after first build!)
146
154
* Download executable: ` Always `
0 commit comments