You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
154: Update gdb instructions for Ubuntu 18.04+ r=korken89 a=jodal
I recently had the pleasure of working my way through the Discovery book. The only stumbling block was that I couldn't find the `gdb-arm-none-eabi` package on Ubuntu 18.04/18.10. I later found that The Embedded Rust Book had more up to date instructions on this part. This PR copies those improvements from `book` to `discovery`.
This should fix#91.
Co-authored-by: Stein Magnus Jodal <[email protected]>
Copy file name to clipboardExpand all lines: src/03-setup/linux.md
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,34 @@ Here are the installation commands for a few Linux distributions.
4
4
5
5
## REQUIRED packages
6
6
7
-
- Ubuntu 16.04 or newer / Debian Jessie or newer
7
+
- Ubuntu 18.04 or newer / Debian stretch or newer
8
+
9
+
> **NOTE**`gdb-multiarch` is the GDB command you'll use to debug your ARM
10
+
> Cortex-M programs
11
+
12
+
<!-- Debian stretch -->
13
+
<!-- GDB 7.12 -->
14
+
<!-- OpenOCD 0.9.0 -->
15
+
16
+
<!-- Ubuntu 18.04 -->
17
+
<!-- GDB 8.1 -->
18
+
<!-- OpenOCD 0.10.0 -->
19
+
20
+
```console
21
+
$ sudo apt-get install \
22
+
gdb-multiarch \
23
+
minicom \
24
+
openocd
25
+
```
26
+
27
+
- Ubuntu 14.04 and 16.04
28
+
29
+
> **NOTE**`arm-none-eabi-gdb` is the GDB command you'll use to debug your ARM
30
+
> Cortex-M programs
31
+
32
+
<!-- Ubuntu 14.04 -->
33
+
<!-- GDB 7.6 -->
34
+
<!-- OpenOCD 0.7.0 -->
8
35
9
36
```console
10
37
$ sudo apt-get install \
@@ -15,6 +42,9 @@ $ sudo apt-get install \
15
42
16
43
- Fedora 23 or newer
17
44
45
+
> **NOTE**`arm-none-eabi-gdb` is the GDB command you'll use to debug your ARM
46
+
> Cortex-M programs
47
+
18
48
```console
19
49
$ sudo dnf install \
20
50
arm-none-eabi-gdb \
@@ -24,12 +54,16 @@ $ sudo dnf install \
24
54
25
55
- Arch Linux
26
56
57
+
> **NOTE**`arm-none-eabi-gdb` is the GDB command you'll use to debug ARM
58
+
> Cortex-M programs
59
+
27
60
```console
28
61
$ sudo pacman -S \
29
62
arm-none-eabi-gdb \
30
63
minicom
31
64
```
32
-
`openocd` is not availabie in the official Arch repositories, but can be installed from the [AUR](https://aur.archlinux.org/packages/openocd/) or can be compiled from source as follows:
65
+
66
+
`openocd` is not available in the official Arch repositories, but can be installed from the [AUR](https://aur.archlinux.org/packages/openocd/) or can be compiled from source as follows:
0 commit comments