-
Notifications
You must be signed in to change notification settings - Fork 328
Add CMake Support for STM32CubeH7 #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arms-spageddie
wants to merge
7
commits into
STMicroelectronics:master
Choose a base branch
from
arms-spageddie:cmake-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add CMake Support for STM32CubeH7 #317
arms-spageddie
wants to merge
7
commits into
STMicroelectronics:master
from
arms-spageddie:cmake-support
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Adding `Find<package>`.cmake file to locate package with CMake `find_package()` calls. - Adding support to locate source files and include directories associated with the HAL and CMSIS components.
- Added a `.gitignore` file to prevent CMake build directories and toolchain installation directories from getting picked up by version control systems. - Added a `CMakePresets.json` file to configure a preset for compiling with ARM GCC. - Added a toolchain file to configure the build system for ARM GCC. - Added a script to automatically download ARM GCC and extract it into a known directory. - Should be ran as an individual script using CMake. - Can be modified to support more toolchains, such as IAR or the ARM compiler. - Added a helper function to locate toolchain programs when the toolchain file is called. - Fixed some bugs in how CMake was comparing some strings. - Fixed an issue where the LL source and header files were not being included with the `stm32cubeh7` library. - Added a test to fetch the STM32CubeH7 package while specifying required components, and linking it together into an executable successfully using ARM GNU compiler collection.
- Since this test is located in the package already, this script points to the location of the package instead of cloning the repository.
- Modified the test project to run on an STM32H750B-DK. - Project blinks the red and green LEDs.
- Updated README files to explain the available CMake support and its usage. - Renamed the CMake test target to convey the target board and target device.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
projects
Projects-related (demos, applications, examples) issue or pull-request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds CMake support for STM32CubeH7 as requested in issue #316.
The following changes provides CMake support to this package. Thereby allowing consuming projects to use this package as a dependency. This allows for CMake based projects to specify the necessary components and allow CMake to automatically determine which source files, header files, and include directories to make available to the consuming project.
Changes
FindSTM32CubeH7.cmake
file. This file, when included via a call tofind_package()
in CMake, will automatically locate all available components in the package and create a library that the consuming project can link against.