arch/arm/stm32h5: Add CRC header - #19928
Merged
Merged
Conversation
Add CRC header based on arch/arm/src/common/stm32/hardware/stm32_crc.h and select STM32_HAVE_CRC in Kconfig Signed-off-by: Liam Howatt <liamhowatt@geotab.com>
STM32H5 has hardware CRC support and the header file is present. Signed-off-by: Liam Howatt <liamhowatt@geotab.com>
xiaoxiang781216
approved these changes
Aug 22, 2026
simbit18
approved these changes
Aug 23, 2026
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.
Summary
Add CRC header based on arch/arm/src/common/stm32/hardware/stm32_crc.h and select STM32_HAVE_CRC in Kconfig.
CRC_IDR_MASK widened from 0xFF to 0xFFFFFFFF.
Impact
As usual, drivers must include this "hardware/" header explicitly and manipulate the registers.
Now that stm32h5 defines STM32_HAVE_CRC, STM32_CRC can be enabled, which causes the clock to be enabled in rcc_enableahb1().
Testing
I validated by copying the H7 crypto driver implementation and removing everything except crc32 so that the crypto crc32 test cases could run on H5 using the H5 CRC definitions.
nucleo-h563zi:nshwith: