GithubHelp home page GithubHelp logo

versbinarii / stm32hal-template Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.88 MB

Project starter template for Stm32 projects using HAL library for Vim + Coc + ccls

CMake 0.02% C 17.33% C++ 81.18% Assembly 1.47% Shell 0.01%
vim embeded template cmake stm32 stm32f4 ccls build-tool c

stm32hal-template's Introduction

Stm32 HAL project template

The template is based on CMake and currently only supports F4 family of STM32. It generates the compile_commands.json file in the project root to be picked up by the CCLS if you're using one.

Usage

You need to have CMake on your system.

Clone the repo.

Edit the CMakeLists.txt in the project root to specify the device used.

Adjust the linker file content if needed. Sections should be ok for most chips however the FLASH and SRAM values will need adjustment.

Copy the correct startup file from the startup directory into the Src directory.

Run the build script:

./build.sh

The script will run CMake and create the link to the compile_commands.json file in the project root. This file is helpful when using the CCLS.

stm32hal-template's People

Contributors

versbinarii avatar

Stargazers

 avatar  avatar

Watchers

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