Skip to content

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

Notifications You must be signed in to change notification settings

VersBinarii/stm32Hal-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published