Skip to content

Commit 2d12c7a

Browse files
committed
changed preface.md 18.04 section to use gdb-multiarch
preserved `gcc-arm-none-eabi` toolchain bundle installation instructions in its own section
1 parent 3f13ab0 commit 2d12c7a

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/preface.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ $ sudo apt-get install qemu-system-arm
9999
```
100100

101101
#### Ubuntu 18.04
102-
- [gcc-arm-none-eabi](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads)
102+
103103
``` console
104-
$ tar xvjf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2
105-
$ mv gcc-arm-none-eabi-<version_downloaded> <your_desired_path> # optional
106-
$ export PATH=${PATH}:<path_to_arm_none_eabi_folder>/bin # add this line to .bashrc to make persistent
104+
$ # gdb-multiarch -- use `gdb-multiarch` when you wish to invoke gdb
105+
$ sudo apt-get install gdb-multiarch
107106

108107
$ # QEMU
109108
$ sudo apt-get install qemu-system-arm
@@ -115,3 +114,15 @@ $ sudo apt-get install qemu-system-arm
115114
The GNU Arm Embedded Toolchain includes GDB.
116115

117116
- [QEMU](https://www.qemu.org/download/#windows)
117+
118+
## Installing a toolchain bundle from ARM (optional step) (tested on Ubuntu 18.04)
119+
- With the late 2018 switch from
120+
[GCC's linker to LLB](https://rust-embedded.github.io/blog/2018-08-2x-psa-cortex-m-breakage/) for Cortex-M microcontrollers, [gcc-arm-none-eabi][1] is no longer
121+
required. But for those wishing to use the toolchain
122+
anyway, install from [here][1] and follow the steps outlined below:
123+
``` console
124+
$ tar xvjf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2
125+
$ mv gcc-arm-none-eabi-<version_downloaded> <your_desired_path> # optional
126+
$ export PATH=${PATH}:<path_to_arm_none_eabi_folder>/bin # add this line to .bashrc to make persistent
127+
[1]: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
128+
```

0 commit comments

Comments
 (0)