extend cargo run troubleshooting section

with the Linux variant of the error
This commit is contained in:
Jorge Aparicio 2020-07-16 14:00:18 +02:00
parent c44b1d8c91
commit 5fe1cd7a0e
3 changed files with 29 additions and 4 deletions

View file

@ -60,4 +60,4 @@
- [`cargo-build` fails to link](./troubleshoot-cargo-build.md)
- [`dongle-flash` is not working](./troubleshoot-dongle-flash.md)
- [Dongle USB functionality is not working](./troubleshoot-usb-dongle.md)
- [USB error: Access denied](./troubleshoot-usb-error-access-denied.md)
- [`cargo run` errors](./troubleshoot-cargo-run.md)

View file

@ -0,0 +1,28 @@
# `cargo run` errors
You may get one of these errors:
- "Access denied (insufficient permissions)" (seen on macOS)
- "USB error while taking control over USB device: Resource busy" (seen on Linux)
``` console
$ cargo run --bin usb-4
Running `dk-run target/thumbv7em-none-eabi/debug/usb-4`
Error: An error specific to a probe type occured: USB error while taking control over USB device: Access denied (insufficient permissions)
Caused by:
USB error while taking control over USB device: Access denied (insufficient permissions)
```
``` console
$ cargo run --bin usb-4
Running `dk-run target/thumbv7em-none-eabi/debug/usb-4`
Error: An error specific to a probe type occured: USB error while taking control over USB device: Resource busy
Caused by:
USB error while taking control over USB device: Resource busy
```
All of them have the same root issue: You have another instance of the `cargo run` process running.
It is not possible to have two or more instances of `cargo run` running. Terminate the old instance before executing `cargo run`. If you are using VS Code click the garbage icon ("Kill Terminal") on the top right corner of the terminal output window (located on the bottom of the screen).

View file

@ -1,3 +0,0 @@
## USB error while taking control over USB device: Access denied (insufficient permissions)
If you get this Error when trying to run a different process, check if the old process is still running. If this is the case, end it. Try again.