From e9222d77ea44b2167ddf2c49f0706032d1e5545f Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 12 Jul 2021 21:41:07 +0200 Subject: [PATCH] some more details --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5272f0a..d670a3e 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,8 @@ after installing MSYS2 or inside another Unix shell like `git bash`. Now we will create the build configuration for cross-compilation of an ARM target. On Linux, the following build will create a debug build configuration with - the Unix Makefile generator + the Unix Makefile generator. You can also specify `-G Ninja` to use Ninja instead + of Make. ```sh cmake .. @@ -146,7 +147,13 @@ pacman -Syu pacman -S mingw-w64-x86_64-make mingw-w64-x86_64-cmake ``` -The code needs to be compiled for the ARM target system and we will use the +Alternatively, you can install [Ninja Build](https://ninja-build.org/), but you need +to add the folder containing the `ninja.exe` executable to the system path so you +can run `ninja -v` from the command line. If you do this, you can also use +`git bash` or the Windows command lines with the CMake Ninja generator +to build the software. + +The code needs to be cross-compiled for the ARM target system and we will use the [GNU ARM Toolchain](https://xpack.github.io/arm-none-eabi-gcc/install/). 1. Install NodeJS LTS. Add nodejs folder (e.g. "C:\Program Files\nodejs\") @@ -179,7 +186,8 @@ The code needs to be compiled for the ARM target system and we will use the ``` You can also add these lines to a shell script like `path_setter.sh` and then source - the script with `. path_setter.sh` to do this conveniently. + the script with `. path_setter.sh` to do this conveniently. You can test whether + the path was set up properly by running `arm-none-eabi-gcc -v` 5. Install the [STM32 USB drivers](https://www.st.com/en/development-tools/stsw-link009.html)