ChibiOS demos on stm32-bluepill, mainly on STM32F103C8T6(64k)
- http://wiki.stm32duino.com/index.php?title=Blue_Pill
- http://www.vcc-gnd.com/rtd/html/STM32/quickref.html
dependences:
docker pull aguegu/chibios
- clone the repo and
cd
into it cd demo_folder
make
to buildmake flash
to write chips with st-flash
It is a slim docker image repo contains ChibiOS release and gcc-arm-none-eabi release at about the same time based on Debian on AMD64 platform.
- 19.1.3: chibios v19.1.3 with gcc-arm-none-eabi-8-2019-q3-update
- 18.2.2: chibios v18.2.2 with gcc-arm-none-eabi-7-2018-q2-update
- 17.6.4: chibios v17.6.4 with gcc-arm-none-eabi-6-2017-q2-update
With this image, all the building/compiling work is done within the container.
You may also copy the demo project from the ChibiOS demos, like NIL-STM32F100-DISCOVERY
, then cd
into it
- rename the origin makefile to
chibios.makefile
, likemv makefile chibios.makefile
- copy
Makefile
from one of the demo projects in this repo - then this folder can work like any other demos in this repo, try
make dist
In this way, the host system is clean and free of the mess of cross-compiling. And the Makefiles in the official demos stand intact.
- can not read only 1 byte from stm32f1 i2c (DMA).
- chThdSleep value should not be 0.