Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.8 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.8 KB

stm32-bluepill

ChibiOS demos on stm32-bluepill, mainly on STM32F103C8T6(64k)

dependences:

How to build the source

  1. docker pull aguegu/chibios
  2. clone the repo and cd into it
  3. cd demo_folder
  4. make to build
  5. make flash to write chips with st-flash

aguegu/chibios

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

  1. rename the origin makefile to chibios.makefile, like mv makefile chibios.makefile
  2. copy Makefile from one of the demo projects in this repo
  3. 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.

Tricky:

  • can not read only 1 byte from stm32f1 i2c (DMA).
  • chThdSleep value should not be 0.