Skip to content

KenLee12323/internal-core

Repository files navigation

RM2020 Internal Competition Code Base

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)

Directory Structure

  • board: Board hardware configuration
  • build: Build output (the output elf is RM20.elf)
  • chibios: ChibiOS library (RTOS)
  • CMSIS: CMSIS library
  • config: ChibiOS config
  • datasheets: Datasheets useful for development
  • openocd: OpenOCD scripts
  • src: User source code

Compile

make
  • make -j could make compilation process faster by utilizing multiple core on your computer.
  • make clean could clear the .dep directory and build directory. Use it when there are myterious errors such as cannot find source file for .... You can search the web or ask seniors for the detailed reasons behind.

General Environment Setup

Windows Specific

  • 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 in C:\msys64)
  • Run the following command in MSYS2:
    pacman -S make

Unix System (Linux and Mac)

  1. Download Linux/Mac 64-bit GNU Arm toolchain 2017 Q2

  2. Unpack it (tar -xjf) into current directory (make sure it is in an empty directory)

  3. 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

About

Code base for internal competition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published