Giter Site home page Giter Site logo

stm32hal_bluepill's Introduction

CMake Build script for the STM32 Cube Firmware for use with STM32F103C8 "Blue Pill"

(c) 2019 by Matthias Arndt [email protected]

The MIT License applies. See LICENSE for details.

Abstract

This is a build script to compile the STM32 HAL drivers once into a static library for reuse on STM32 "Blue pill" projects.

System requirements

  • arm-none-eabi compiler toolchain
  • CMake
  • STM32 Cube Firmware (as downloaded through the STM32 CubeMX software)

Configuration

A basic library configuration header for all features is included.

The resulting library can be linked with any other project without having to recompile from source.

CMake invocation

The CMakeLists.txt should be setup to use the arm-none-eabi GNU toolchain. It is recommended to use a suitable toolchain description file for CMake.

The author uses https://github.com/vpetrigo/arm-cmake-toolchains in particular.

Usage in your own project

  • link the .a file
  • reference the HAL include files in your project
  • reference the CMSIS device specific headers if necessary (some HAL headers require them)

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.