From 8690edb81d37682c8c9a5799ed23969886fd31e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik@tjaders.com> Date: Sat, 20 Apr 2019 09:07:32 +0200 Subject: [PATCH] Change indent level --- src/ch1_00_introduction.md | 2 +- src/ch2_00_installation.md | 28 ++++++++++++---------------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/ch1_00_introduction.md b/src/ch1_00_introduction.md index a7f1541..3b6fdaa 100644 --- a/src/ch1_00_introduction.md +++ b/src/ch1_00_introduction.md @@ -1,7 +1,7 @@ XP-el Mikroprocessorprogrammeringskurs (MPPK) ============================================= -# Introduction +# Introduction to embedded programming Embedded systems are everywhere. diff --git a/src/ch2_00_installation.md b/src/ch2_00_installation.md index 8829bf9..aa05387 100644 --- a/src/ch2_00_installation.md +++ b/src/ch2_00_installation.md @@ -1,8 +1,4 @@ -XP-el Mikroprocessorprogrammeringskurs (MPPK) -Installation & Configuration -============================================= - -# General +# Installation of toolchain ## Rust @@ -27,7 +23,7 @@ There is no requirement on what editor you should use, but if you are undecided When installed, go to the extensions tab and install ```Rust (rls)``` and ```Better TOML```. -# Linux +## Linux In general use your package manager for whatever distribution you are using. @@ -70,11 +66,11 @@ sudo pacman -S openocd ``` -# Windows +## Windows -## Native +### Native -### GDB +#### GDB Go to http://www.mingw.org/, download and install MinGW. In the MinGW Installation Manager select ```All Packages``` then mark for installation: - mingw32-gcc-g++ @@ -92,7 +88,7 @@ Go to the Control panel -> System and Security -> System -> Advanced system sett To check that everything went as expected open a new terminal with ```CTRL+r``` and type cmd then ```ENTER```. If you now type ```gdb`` you should be prompted with a text saying something like "GNU gdb (GDB) 7.6.1", gdb is now installed! -### OpenOCD +#### OpenOCD Go to http://gnutoolchains.com/arm-eabi/openocd/ and download the latest OpenOCD package. Extract the package somewhere where it is easy to find (i.e C:). @@ -100,7 +96,7 @@ Extract the package somewhere where it is easy to find (i.e C:). /// TODO /// -## Windows Subsystem for Linux (WSL) - Windows 10 ONLY +### Windows Subsystem for Linux (WSL) - Windows 10 ONLY To install WSL check out: https://docs.microsoft.com/en-us/windows/wsl/install-win10. We recommend the Ubuntu distro. @@ -118,23 +114,23 @@ Using the terminal, update the distro: The ordinary C: drive will be found under /mnt/c -### Rust +#### Rust Continue in the terminal and write: ```curl https://sh.rustup.rs -sSf | sh``` -### GDB +#### GDB /// TODO /// -### OpenOCD +#### OpenOCD Is the same as for native Windows as OpenOCD doesn't (currently) work under WSL. -### Quality of life +#### Quality of life -#### Shortcuts +##### Shortcuts To be able to quickly get up and running I usually create a shortcut on the desktop with all flags I need for a certain project and with the configurations that I need. For example, if I have a project that uses OpenOCD, the STLink programmer and the target MCU is an STM32f4xx, I create a shortcut with the target: -- GitLab