There will be drivers update to this repo later.
Please clone this instead of downloading a zip.
- Board: STM32F103C8 (BluePill)
- OS: ChibiOS
- Debugger: JLink
- Compiler toolchain: Arm GNU toolchain (2017 Q2)
board
: Board hardware configurationbuild
: Build output (the output elf isRM20.elf
)chibios
: ChibiOS library (RTOS)CMSIS
: CMSIS libraryconfig
: ChibiOS configdatasheets
: Datasheets useful for developmentopenocd
: OpenOCD scriptssrc
: User source code
make
make -j
could make compilation process faster by utilizing multiple core on your computer.make clean
could clear the.dep
directory andbuild
directory. Use it when there are myterious errors such ascannot find source file for ...
. You can search the web or ask seniors for the detailed reasons behind.
- Install GNU Arm toolchain 2017 Q2
- Install Segger Ozone
- When installing arm toolchain, please add it to your path.
- Install MSYS2 and add the
C:\msys64\usr\bin
to your path. (assuming you install it inC:\msys64
) - Run the following command in MSYS2:
pacman -S make
-
Download Linux/Mac 64-bit GNU Arm toolchain 2017 Q2
-
Unpack it (
tar -xjf
) into current directory (make sure it is in an empty directory) -
Add the path in your
~/.bashrc
or~/.zshrc
:export PATH=$PATH:(path to bin directory of the file)
Example:
export PATH=$PATH:$HOME/arm-gcc-2017-q2/bin