Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appendix: add hint about ST-LINK config version #272

Merged
merged 1 commit into from
Oct 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions src/appendix/1-general-troubleshooting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,29 @@ in procedure 'init'
in procedure 'ocd_bouncer'
```

#### Cause + Fix
#### Cause

The device is not (properly) connected or not the correct ST-LINK interface
configuration is used.

#### Fix

- All: The device is not (properly) connected. Check the USB connection using
`lsusb` or the Device Manager.
- Linux: You may not have enough permission to open the device. Try again with
`sudo`. If that works, you can use [these instructions] to make OpenOCD work
without root privilege.
- Windows: You are probably missing the ST-LINK USB driver. Installation
instructions [here].
Linux:

- Check the USB connection using `lsusb`.
- You may not have enough permission to open the device. Try again with `sudo`.
If that works, you can use [these instructions] to make OpenOCD work without
root privilege.
- You might be using the wrong interface configuration for your ST-LINK.
Try `interface/stlink-v2.cfg` instead of `interface/stlink-v2-1.cfg`.

[these instructions]: ../../03-setup/linux.md#udev-rules

Windows:

- You are probably missing the ST-LINK USB driver. Installation instructions
[here].

[here]: ../../03-setup/windows.md#st-link-usb-driver

### can't connect to OpenOCD - "Polling again in X00ms"
Expand Down