cpu/stm32: add initial STM32U3 and nucleo-u385rg-q support#22175
Open
itsadarshnair wants to merge 40 commits into
Open
cpu/stm32: add initial STM32U3 and nucleo-u385rg-q support#22175itsadarshnair wants to merge 40 commits into
itsadarshnair wants to merge 40 commits into
Conversation
crasbe
reviewed
Apr 5, 2026
Contributor
crasbe
left a comment
There was a problem hiding this comment.
Thank you for creating the Pull Request with the STM32U3 support.
This is the first review round that is has mostly style related comments. I will do a second round once everything style-wise is in order.
There are merge conflicts that have to be resolved before this can be merged.
crasbe
reviewed
Apr 6, 2026
4072c14 to
ca4fb00
Compare
crasbe
reviewed
Apr 13, 2026
Contributor
crasbe
left a comment
There was a problem hiding this comment.
Please run dist/tools/compile_and_test_for_board/compile_and_test_for_board.py . nucleo-u385rg-q on your local computer. There are still a lot of compilation errors from missing definitions. Unfortunately that does not show in our CI because the newly added board is not in the quickbuild list.
added 27 commits
May 21, 2026 17:07
…nd 'FLASH_CR_PNB' compilation errors.
- Implemented dynamic SYSCLK selection based on board configuration macros (HSI, MSI, HSE) instead of hardcoding HSI16. - Removed dead PLL configuration logic, as STM32U3 natively reaches high frequencies via the MSI oscillator. - Connected the FLASH_WAITSTATES macro to the ACR register to prevent HardFaults at higher frequencies. - Removed initial bring-up notes and professionalized comments to meet upstream production standards.
11f37e6 to
5e144f7
Compare
added 2 commits
May 23, 2026 13:24
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.
Contribution description
This PR adds initial support for the STM32U3 family and the NUCLEO-U385RG-Q board.
It includes:
cpu/stm32boards/nucleo-u385rg-qAt the moment, this is an initial bring-up PR. The board boots and the LED blinking example was verified on hardware. Other peripherals and features may still be incomplete or untested.
At this stage, OpenOCD flashing support is not yet available. The board was programmed using STM32CubeProgrammer.
Testing procedure
The changes were tested with the
examples/basic/blinkyapplication on thenucleo-u385rg-qboard.Build:
bash
make -C examples/basic/blinky BOARD=nucleo-u385rg-q
Issues/PRs references
Progress for Tracking Issue #19264.
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: