Skip to content

Commit 95effbf

Browse files
bors[bot]aphistic
andauthored
Merge #259
259: Add additional command to try when verifying installation. r=therealprof a=aphistic The given commands didn't work for me, so I looked through my system for a similarly-named file and found `interface/stlink-v2-1.cfg`. When I tried that I ended up getting the breakpoints result mentioned. One thing I'm still a little confused about is the mention of having an older revision of the board. I don't think I have an old version because I bought it recently and my PCB says "MB1035D" next to the STM32 chip. It might be due to having a newer distribution of OpenOCD because it doesn't have any files named `stlink.cfg`, only `stlink-v1.cfg`, `stlink-v2.cfg`, and `stlink-v2-1.cfg`. I didn't want to make any changes to the rest of the description, though, because it doesn't change the fact it's something that you need to keep in mind later (I assume, I'm just starting the book), and I don't feel I understand enough at this point to make that decision. Co-authored-by: Kristin Davidson <k@kxd.dev>
2 parents b525644 + c03427d commit 95effbf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/intro/install/verify.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,22 @@ and move to the [next section].
4747

4848
[next section]: ../../start/index.md
4949

50-
If you didn't get the "breakpoints" line then try the following command.
50+
If you didn't get the "breakpoints" line then try one of the following commands.
5151

5252
``` console
5353
$ openocd -f interface/stlink-v2.cfg -f target/stm32f3x.cfg
5454
```
5555

56-
If that command works that means you got an old hardware revision of the
56+
``` console
57+
$ openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
58+
```
59+
60+
If one of those commands works it means you got an old hardware revision of the
5761
discovery board. That won't be a problem but commit that fact to memory as
5862
you'll need to configure things a bit differently later on. You can move to the
5963
[next section].
6064

61-
If neither command worked as a normal user then try to run them with root
65+
If none of the commands work as a normal user then try to run them with root
6266
permission (e.g. `sudo openocd ..`). If the commands do work with root
6367
permission then check that the [udev rules] have been correctly set.
6468

0 commit comments

Comments
 (0)