Skip to content

Commit d0aa015

Browse files
bors[bot]modulitos
and
modulitos
authored
Merge #189
189: Update docs r=therealprof a=modulitos Co-authored-by: modulitos <[email protected]>
2 parents 334b034 + 08877f7 commit d0aa015

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/05-led-roulette/flash-it.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ Remote debugging using :3333
102102
0x00000000 in ?? ()
103103
```
104104

105-
**NOTE**: If you are getting errors like `undefined debug reason 7 - target needs reset` on the OpenOCD GDB server, then you may need to try using `arm-none-eabi-gdb` instead of the `gdb` command, as described above.
105+
**NOTE**: If you are getting errors 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).
106+
107+
**NOTE**: If the debugger is still not connecting to the OpenOCD server, then you may need to try using `arm-none-eabi-gdb` instead of the `gdb` command, as described above.
106108

107109
By default OpenOCD's GDB server listens on TCP port 3333 (localhost). This command is connecting to
108110
that port.

src/06-hello-world/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Breakpoint 1, main () at src/06-hello-world/src/main.rs:10
104104
10 let mut itm = aux6::init();
105105
```
106106

107-
Note that there's a `.gdbinit` at the root of the Cargo project. It's pretty similar to the one we
107+
Note that there's a `openocd.gdb` at the root of the Cargo project. It's pretty similar to the one we
108108
used in the previous section.
109109

110110
Before we execute the `iprintln!` statement. We have to instruct OpenOCD to redirect the ITM output

src/11-usart/auxiliary/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ pub fn init() -> (&'static mut usart1::RegisterBlock, MonoTimer, ITM) {
2929
let rx = gpioa.pa10.into_af7(&mut gpioa.moder, &mut gpioa.afrh);
3030

3131
Serial::usart1(dp.USART1, (tx, rx), 115_200.bps(), clocks, &mut rcc.apb2);
32+
// If you are having trouble sending/receiving data to/from the
33+
// HC-05 bluetooth module, try this configuration instead:
34+
// Serial::usart1(dp.USART1, (tx, rx), 9600.bps(), clocks, &mut rcc.apb2);
3235

3336
unsafe {
3437
(

src/13-serial-over-bluetooth/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ Recommended steps to wire this up:
2222
And that's it! You should be able to run all the programs you wrote in [section 11] without
2323
modification! Just make sure you open the right serial device / COM port.
2424

25+
**NOTE** If you are having trouble communicating with the bluetooth device, you may need to initialize USART1 with a lower baud rate. Lowering it from 115,200 bps to 9,600 bps might help, as described [here](https://github.com/rust-embedded/discovery/blob/master/src/11-usart/auxiliary/src/lib.rs#L31)
26+
2527
[section 11]: ../11-usart/index.html

0 commit comments

Comments
 (0)