some more details
This commit is contained in:
parent
0b40f6c4f5
commit
e9222d77ea
14
README.md
14
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.
|
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
|
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
|
```sh
|
||||||
cmake ..
|
cmake ..
|
||||||
@ -146,7 +147,13 @@ pacman -Syu
|
|||||||
pacman -S mingw-w64-x86_64-make mingw-w64-x86_64-cmake
|
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/).
|
[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\")
|
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
|
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)
|
5. Install the [STM32 USB drivers](https://www.st.com/en/development-tools/stsw-link009.html)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user