Skip to main content
Visitor II
May 21, 2026
Solved

STM32H7xx HAL_FLASHEx_ComputeCRC Burst Size Bug

  • May 21, 2026
  • 2 replies
  • 111 views

Original post: https://community.st.com/t5/stm32-mcus-products/stm32h7-flash-crc/td-p/887279

Github: https://github.com/STMicroelectronics/stm32h7xx-hal-driver/blob/1501be883dae6f202c1d3f856ee6b11407dc257d/Src/stm32h7xx_hal_flash_ex.c#L733

HAL_StatusTypeDef HAL_FLASHEx_ComputeCRC(FLASH_CRCInitTypeDef *pCRCInit, uint32_t *CRC_Result)
{
...
...
 FLASH->CRCCR1 |= FLASH_CRCCR_CLEAN_CRC | pCRCInit->BurstSize | pCRCInit->TypeCRC;
...
...
}​

|= will not program the expected burst size if the reset value is not b00. It looks like on reset the value is b01 (16 flash words). So if user try to set to burst size of 4 flash words (b00) it'll remain set to b01.
Best answer by Saket_Om

Hello @mycodeworksIdontknowwhy 

This issue has already been addressed in STM32CubeH7 v1.13.0. We recommend updating your firmware to the latest available version to benefit from the fix.

2 replies

Technical Moderator
May 21, 2026

Hello @mycodeworksIdontknowwhy 

Thank you for bringing this issue to our attention.

I reported this internally.

Internal ticket number: CDM0062824 (This is an internal tracking number and is not accessible or usable by customers).

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
Saket_OmAnswer
Technical Moderator
May 22, 2026

Hello @mycodeworksIdontknowwhy 

This issue has already been addressed in STM32CubeH7 v1.13.0. We recommend updating your firmware to the latest available version to benefit from the fix.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"