cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7xx HAL_FLASHEx_ComputeCRC Burst Size Bug

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.
1 ACCEPTED SOLUTION

Accepted Solutions
Saket_Om
ST Employee

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

View solution in original post

2 REPLIES 2
Saket_Om
ST Employee

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_Om
ST Employee

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
Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.