Skip to content

sohal/stm_cpp

Repository files navigation

stm_cpp

This project builds a hardware abstraction layer (HAL) entirely in modern C++ (using C++-17). Care it taken to make "NO ASSEMBLY" startup code. Only the vector table is in the ".c" format.

Target

The board used in this project is STM32F031K6 based Nucleo board.

Tools

The project is based on following tools:

  • cmake + ninja (use latest version)
  • ARM LLVM Clang compiler
    • located in home folder, see CMakePresets.json.
  • graphviz for generating images
  • STM32CubeMx Graphical hardware configurator for STM32 devices.

CMake Graphwiz

The following graph shows the various dependencies CMake Graphviz

How to...

Preparation

Generate a simple GPIO toggle LED project for the Nucleo Board using STM32CubeMx.

Follow the main...

Use the main for the LED and construct memory mapped classes for devices and registers. More information here.

About

CPP for STM32F03 Neucleo board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published