Giter Club home page Giter Club logo

stm32-bluepill's Introduction

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.

stm32-bluepill's People

Contributors

aguegu avatar gwh-cpnet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.