Skip to content

Fixes and improvements in STM32 platform and FindCMSIS - #160

Merged
ventZl merged 3 commits into
masterfrom
fix/cmsis-stm32-platform
Aug 20, 2026
Merged

Fixes and improvements in STM32 platform and FindCMSIS#160
ventZl merged 3 commits into
masterfrom
fix/cmsis-stm32-platform

Conversation

@ventZl

@ventZl ventZl commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Improve compatibility of both FindCMSIS and STM32 platform script.

RTE_Components.h header is generated using correct device header name, binary output directory is added to include paths so #include <RTE_Components.h> works as expected.

STM32 platform script improves compatibility with newer CubeMX generator's CMakeLists.txt format.

ventZl added 3 commits August 20, 2026 11:18
FindCMSIS generated RTE_Headers.h which contained wrong header filename.
It used DEVICE variable content instead of actual device header
filename.

More diagnostics for errors that are diagnosable during config time.
Improve compatibility with both older and newer versions of CubeMX CMake
generator.

Newer CubeMX generates CMakeLists.txt that requires cmake/stm32cubemx be
included after executable has been created. This version of platform
support supports that by deferring of stm32cubemx_headers generation to
the end of configuration step.

Detection of linker script with name both in uppercase and lowercase is
supported as different CubeMX generators and different packages use
different case.

Define with device name is made automatically, so CubeMX headers don't
complain about specific device not being selected.
New FindCMSIS requires the existence of system header file, so create
empty files to make it believe it found legit CMSIS pack.
@ventZl
ventZl merged commit 7969896 into master Aug 20, 2026
10 checks passed
@ventZl
ventZl deleted the fix/cmsis-stm32-platform branch August 20, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant