Skip to main content
Visitor II
August 22, 2023
Question

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

  • August 22, 2023
  • 3 replies
  • 3999 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

 

    This topic has been closed for replies.

    3 replies

    Graduate II
    August 22, 2023

    Does it have to use TCM ?

    Is the OCTO/QUAD SPI memory properly mapped?

    @STOne-32 

    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

    JohannesTAuthor
    Visitor 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?

    Visitor 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?

    Visitor II
    June 9, 2024

    @PieterG 

    Thank you for your comment.

    Your solution looks good for me.

    Best regards,