Skip to main content
NPato
Associate III
June 12, 2020
Question

STM32H753 Flash CRC address limitations

  • June 12, 2020
  • 1 reply
  • 1067 views

Hi,

Although not specified in the reference manual it looks like the CRC process within the FLASH module (see section 4.3.12) has to have start and end addresses aligned to possibly the CRC_BURST size (I've only tried 128 byte bursts so far). If not aligned the same data contents produces different CRC results depending on the values before and after the data.

Some might say this is implied when described in the CRC paragraph but the HAL code does not check for it and the documentation for the address registers do not mention it (sections 4.9.20 and 4.9.21 plus those for bank 2).

This is a fairly important thing to know if you intend to compare the CRC that the STM FLASH module calculates with one that was calculated somewhere else.

Hope this info prevents someone else wasting an afternoon finding it out.

Nigel

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
June 12, 2020

https://community.st.com/s/question/0D50X0000At0Hwg/is-there-any-example-program-for-halflashexcomputecrc-function

>>Hope this info prevents someone else wasting an afternoon finding it out.

Wasted more than that trying to make the functionality/math work. Got crickets from ST

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
June 12, 2020
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..