Conversation
Migrates the project to a CMake-based build system for improved portability and toolchain flexibility. Includes: - Reworked CMake configuration with support for GCC ARM Embedded and STARM-Clang toolchains. - Introduction of `CMakePresets.json` for standardized build and configure presets. - Integration of Newlib locking glue and an STM32 lock mechanism to enable C/C++ thread-safety for standard library functions and static initializers. - Update of STM32CubeMX to 6.17.0 and STM32Cube FW_G4 HAL to V1.6.3, which provides various bug fixes, API `const`-correctness, and updated peripheral register definitions. - Updated linker script with TLS support and refined `.idea` files for seamless CLion IDE integration.
Update linker script to start application code at 0x08008000, reserving the initial 32KB of Flash for OpenBootloader. Enable `USER_VECT_TAB_ADDRESS` in `system_stm32g4xx.c` to account for this offset in vector table management.
Replaces `apt-get` based ARM toolchain installation with `carlosperate/arm-none-eabi-gcc-action` for improved reliability and explicit version pinning. Also upgrades CMake to version 4.3.3.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request migrates the project to a CMake-based build system for improved flexibility and maintainability. It also includes updating the STM32CubeG4 HAL and CMSIS drivers to their latest versions, bringing various bug fixes and enhancements, and introducing comprehensive thread-safety mechanisms.
Key Changes
.idea/) to align with the new CMake setup and debugging targets.Checklist