mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-18 00:12:56 +00:00
GDB OR RTT but not both
This commit is contained in:
parent
6e793072c9
commit
2fb50ba889
|
@ -7,8 +7,7 @@ Although `cargo-embed` v0.10 (and v0.10 of `probe-rs`, the library that powers `
|
||||||
support spawning a GDB server it has some limitations
|
support spawning a GDB server it has some limitations
|
||||||
- stepping through the code (e.g. GDB's `step` and `next` commands) is imprecise or doesn't work in
|
- stepping through the code (e.g. GDB's `step` and `next` commands) is imprecise or doesn't work in
|
||||||
some cases
|
some cases
|
||||||
- it's not possible to have a GDB server and RTT channels running at the same time (this limitation
|
- it's not possible to have a GDB server and RTT channels running at the same time so you can use GDB OR RTT but not both together (this limitation is likely to be removed in v0.11)
|
||||||
is likely to be removed in v0.11)
|
|
||||||
|
|
||||||
The rest of this section covers how to debug an embedded application within VS code using OpenOCD as
|
The rest of this section covers how to debug an embedded application within VS code using OpenOCD as
|
||||||
the GDB server.
|
the GDB server.
|
||||||
|
@ -24,7 +23,7 @@ the GDB server.
|
||||||
## Preparation
|
## Preparation
|
||||||
|
|
||||||
For the best debugging experience, the `dev` (development) compilation profile should be set to its
|
For the best debugging experience, the `dev` (development) compilation profile should be set to its
|
||||||
default settings.
|
default settings.
|
||||||
For this tutorial, we'll be using the `beginner/` applications, so let's modify `beginner/apps/Cargo.toml` to revert the `dev` profile to its default.
|
For this tutorial, we'll be using the `beginner/` applications, so let's modify `beginner/apps/Cargo.toml` to revert the `dev` profile to its default.
|
||||||
|
|
||||||
``` diff
|
``` diff
|
||||||
|
|
Loading…
Reference in a new issue