lib: stm32wb0: implement IAR toolchain compatibility#329
Draft
mathieuchopstm wants to merge 1 commit intozephyrproject-rtos:mainfrom
Draft
lib: stm32wb0: implement IAR toolchain compatibility#329mathieuchopstm wants to merge 1 commit intozephyrproject-rtos:mainfrom
mathieuchopstm wants to merge 1 commit intozephyrproject-rtos:mainfrom
Conversation
mathieuchopstm
commented
Dec 10, 2025
Collaborator
Author
|
To build an application (e.g.,
Note that EWARM 9.70.1 is required - older versions will NOT work! |
Collaborator
|
Please, include the rename changes in the README.rst file. |
Replace all GCC-isms in the CMakeLists for STM32WB0 series libraries with toolchain agnostic patterns (or gate behind toolchain check) and rename some preprocessed assembler files to the proper extension to enable compilation of STM32WB0 Bluetooth apps with IAR toolchain. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
d8ceaf5 to
07baa61
Compare
Collaborator
Author
Done. (Note that this only affects Linux system; on Windows, CMake is not case-sensitive and will accept |
HoZHel
approved these changes
Dec 15, 2025
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.

Replace all GCC-isms in the CMakeLists for STM32WB0 series libraries with toolchain agnostic patterns (or gate behind toolchain check) and rename some preprocessed assembler files to the proper extension to enable compilation of STM32WB0 Bluetooth apps with IAR toolchain.
The biggest wart in patchset is mandatory renaming of assembler
.sfile to.S- the extension has always been wrong, but it seems GCC happily copes with it; when IAR is used,.sfiles are built by the IAR assembler and (more annoyingly) seem to not be preprocessed, which results in build failures.cc @msmttchr @FrancescoCiminoST