https://github.com/versbinarii/stm32hal-template
Project starter template for Stm32 projects using HAL library for Vim + Coc + ccls
https://github.com/versbinarii/stm32hal-template
build-tool c ccls cmake embeded stm32 stm32f4 template vim
Last synced: 2 months ago
JSON representation
Project starter template for Stm32 projects using HAL library for Vim + Coc + ccls
- Host: GitHub
- URL: https://github.com/versbinarii/stm32hal-template
- Owner: VersBinarii
- Created: 2021-02-21T10:19:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-22T02:08:33.000Z (over 5 years ago)
- Last Synced: 2025-03-01T10:22:03.727Z (over 1 year ago)
- Topics: build-tool, c, ccls, cmake, embeded, stm32, stm32f4, template, vim
- Language: C++
- Homepage:
- Size: 1.83 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
``` bash
./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.