You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
461 B
Markdown
36 lines
461 B
Markdown
5 years ago
|
Setup
|
||
|
===
|
||
|
|
||
|
1. Need the "newlib" arm library (else there is no stdint.h &co.)
|
||
|
|
||
|
```sh
|
||
|
pacman -S arm-none-eabi-newlib
|
||
|
```
|
||
|
|
||
|
2. Get Libopencm3
|
||
|
|
||
|
```sh
|
||
|
git submodule init
|
||
|
git submodule update
|
||
|
```
|
||
|
|
||
|
3. Generate headers in Libopencm3
|
||
|
|
||
|
```sh
|
||
|
cd libopencm3
|
||
|
make
|
||
|
cd ..
|
||
|
```
|
||
|
|
||
|
Possibly there are also some udev rules & co, I think they can be acquired from
|
||
|
the `stlink` package.
|
||
|
|
||
|
Usage
|
||
|
===
|
||
|
|
||
|
```
|
||
|
make
|
||
|
```
|
||
|
|
||
|
It does everything. At least for STM32VLDISCOVERY board at my computer.
|