Core MCAL Module
Supported STM32 families: F4 · G4 · U5
Not supported: H5, H7, L4
Includes DWT (Dwt_Lib) + ITM (Itm_Lib)
The Core module aggregates Cortex-M trace/debug capabilities into a single coherent subsystem. It bundles the two MCAL modules:
- DWT – performance counters
- ITM – trace stimulus ports
🧩 Architecture Overview
Core/
├── Dwt/
├── Itm/
└── CMakeLists.txt
🚀 Features
- Centralized system-level configuration
- Optional version reporting
- Consistent error propagation
🛠 CMake Integration
add_library(Core_Lib ...)
target_link_libraries(Core_Lib
PRIVATE
Dwt_Lib
Itm_Lib
)
target_include_directories(Core_Lib PUBLIC .)
Usage:
target_link_libraries(App PRIVATE Core_Lib)
Or independently:
target_link_libraries(App PRIVATE Dwt_Lib Itm_Lib)
License
This project is licensed under the Creative Commons Attribution–NonCommercial 4.0 International (CC BY-NC 4.0).
You are free to use, modify, and share this work for non-commercial purposes, provided appropriate credit is given.
See LICENSE.md for full terms or visit creativecommons.org/licenses/by-nc/4.0.
Authors
- Mr.Nobody — embedbits.com
Contributions are welcome! Please open a pull request.