Skip to main content
JohannesT
Associate II
August 22, 2023
Question

STM32H5 high-cycle data read more than 16bit at once

  • August 22, 2023
  • 3 replies
  • 4004 views

Hi,

I'm using STM32H563 and managed to set FLASH_EDATA1R_CUR as needed (EDATA1_EN="1", EDATA1_STRT="111"). Then I tried to read 64-Bit at once from Address 0x09000000. Unfortunately I get a hard fault. Is it intended to read more than 16 bit from the high cycle memory?

Even with the debugger and Cube IDE 1.13.0 I have problems accessing the memory from high cycle data. It keeps saying, that the memory content cannot be obtained.

Please give advice how to work with the high cycle data!

Thanks,
Johannes

 

3 replies

Tesla DeLorean
Guru
August 22, 2023

Does it have to use TCM ?

Is the OCTO/QUAD SPI memory properly mapped?

@STOne-32 

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
STOne-32
ST Technical Moderator
August 22, 2023

Dear @JohannesT ,

Here is a screenshot from STM32H5 Reference Manual - Flash / Read section.    Reading High-cycle data is a bit special and only 16-bits or 32-bits access read is supported at once. 

Can you please check if the content is already written or not ?  if it is virgin a double ECC error will trig as mentioned here.

flashH5_High-cycledata.png

Hope it helps you.

Ciao

STOne-32

JohannesT
JohannesTAuthor
Associate II
August 23, 2023

Dear @STOne-32 ,

thanks for the reply. No the data has not been written in this case, so I accept double ECC error, but this shouldn't trigger a hard fault, shouldn't it?

Is there any chance to verify the data via debugging probe (ST-Link v3) and the memory view or is this also complicated, because of the 16/32-bit read access?

KOkun.1048
Associate II
November 14, 2023

Dear, @JohannesT 
I encountered a similar phenomenon. But, when I disabled I-cache, the phenomenon did not occur.
If you possible, could you please try it?

KOkun.1048
Associate II
June 9, 2024

@PieterG 

Thank you for your comment.

Your solution looks good for me.

Best regards,