Skip to content

themightyteam/bluepill-examples

Repository files navigation

bluepill-examples

Example code to use libopencm3 library with STM32F103 board

Usage

1 clone this repo

git clone git@github.com:themightyteam/bluepill-examples.git
cd bluepill-examples

2 Initialise submodules

In this case, it is just libopencm3

git submodule init
git submodule update

3 build an example

make build_image # Builds the docker image that contains the building software, do this just once
make examples/bluepill_test

Note that we are using a Docker image to contain the compiling/flashing stuff. The image is created using ./Dockerfile.

At any time, you can run an image with a terminal with make console.

4 flash an example

How To: Messing with with libopencm3

make build_image # Builds the docker image that contains the building software, do this just once
make console
mightyteam@c2ab9dbb25bc:/home/src$ cd libopencm3/
mightyteam@c2ab9dbb25bc:/home/src/libopencm3$ make clean
[...]

The next time you compile an example, libopencm3 will be compilled again.

Related Projects

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published