You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finished dev [unoptimized + debuginfo] target(s) in 17.91s
89
89
```
90
90
91
-
> **NOTE** Be sure to compile this crate *without* optimizations. The provided Cargo.toml file and build command above will ensure optimizations are off.
91
+
> **NOTE** Be sure to compile this crate *without* optimizations. The provided Cargo.toml file and build command above will ensure optimizations are off.
92
92
93
-
OK, now we have produced an executable. This executable won't blink any leds, it's just a simplified version that we will build upon later in the chapter. As a sanity check, let's verify that the produced executable is actually an ARM binary:
93
+
OK, now we have produced an executable. This executable won't blink any LEDs, it's just a simplified version that we will build upon later in the chapter. As a sanity check, let's verify that the produced executable is actually an ARM binary:
Copy file name to clipboardExpand all lines: src/05-led-roulette/flash-it.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,16 +135,17 @@ In both failing and successful cases you should see new output in the **OpenOCD
135
135
+Info : flash size = 256kbytes
136
136
```
137
137
138
-
**NOTE**: If you are getting an error like `undefined debug reason 7 - target needs reset`, you can try running `monitor reset halt` as described [here](https://stackoverflow.com/questions/38994596/reason-7-target-needs-reset-unreliable-debugging-setup).
138
+
> **NOTE** If you are getting an error like `undefined debug reason 7 - target needs reset`, you can try running `monitor reset halt` as described [here](https://stackoverflow.com/questions/38994596/reason-7-target-needs-reset-unreliable-debugging-setup).
139
139
140
140
By default OpenOCD's GDB server listens on TCP port 3333 (localhost). This command is connecting to
141
141
that port.
142
142
143
143
## Update ../.cargo/config.toml
144
144
145
145
Now that you've successfully determined which debugger you need to use
146
-
we need to change `../.cargo/config.toml` so that `cargo run` command will succeed.
147
-
Note: `cargo` is the rust package manager and you can read about it
146
+
we need to change `../.cargo/config.toml` so that the `cargo run` command will succeed.
147
+
148
+
> **NOTE**`cargo` is the Rust package manager and you can read about it
148
149
[here](https://doc.rust-lang.org/cargo/).
149
150
150
151
Get back to the terminal prompt and look at `../.cargo/config.toml`:
@@ -190,11 +191,11 @@ index ddff17f..8512cfe 100644
190
191
Now that you have `../.cargo/config.toml` setup let's test it using `cargo run` to
191
192
start the debug session.
192
193
193
-
> Note the`--target thumbv7em-none-eabihf` defines which architecture
194
+
> **NOTE** The`--target thumbv7em-none-eabihf` defines which architecture
194
195
> to build and run. In our `../.cargo/config.toml` file we have
195
196
> `target = "thumbv7em-none-eabihf"` so it is actually not necessary
196
197
> to specify `--target` we do it here just so you know that parameters on
197
-
> the command line can be used and they override those in `config.toml` files
198
+
> the command line can be used and they override those in `config.toml` files.
198
199
199
200
```
200
201
cargo run --target thumbv7em-none-eabihf
@@ -224,7 +225,7 @@ directory.
224
225
225
226
## Flash the device
226
227
227
-
Assuming you have gdb running, if not start it as suggested in the previous section.
228
+
Assuming you have GDB running, if not start it as suggested in the previous section.
228
229
229
230
Now use the `load` command in `gdb` to actually flash the program into the device:
0 commit comments