Skip to content

Commit

Permalink
Merge #376
Browse files Browse the repository at this point in the history
376: Update Fedora and Linux verification steps r=adamgreig a=anthonyjmartinez

Updates  Fedora instructions and Verification steps for *Nix where versions of OpenOCD (0.11.0 in Fedora 33's case) have a single `interface/stlink.cfg` supporting all ST-LINK versions.

- Closes #364

Co-authored-by: Anthony J. Martinez <anthony@ajmartinez.com>
  • Loading branch information
bors[bot] and anthonyjmartinez authored Jul 15, 2021
2 parents 7c9416a + 3fe6219 commit e7c5527
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/03-setup/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ sudo apt-get install \

### Fedora 23 or newer

Install GDB as described in [Other distros](#other-distros) and the following packages:

``` console
sudo dnf install \
minicom \
openocd
openocd \
gdb
```

### Arch Linux
Expand Down
11 changes: 11 additions & 0 deletions src/03-setup/verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ Two *red* LEDs should turn on right after connecting the USB cable to the board.
> no `-1` at the end). Alternatively, older revisions can use `-f board/stm32f3discovery.cfg`
> instead of `-f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg`.
> **NOTE** OpenOCD v0.11.0 has deprecated `interface/stlink-v2.cfg` in favor of
> `interface/stlink.cfg` which supports ST-LINK/V1, ST-LINK/V2, ST-LINK/V2-1, and
> ST-LINK/V3.
### *Nix

> **FYI:** The `interface` directory is typically located in `/usr/share/openocd/scripts/`,
Expand All @@ -78,6 +82,13 @@ Two *red* LEDs should turn on right after connecting the USB cable to the board.
openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
```

or

``` console
openocd -f interface/stlink.cfg -f target/stm32f3x.cfg
```


### Windows

Below the references to `C:\OpenOCD` is the directory where OpenOCD is installed.
Expand Down

0 comments on commit e7c5527

Please sign in to comment.