Skip to main content
Visitor II
January 19, 2022
Solved

QSPI External Loader WriteMemory Fail

  • January 19, 2022
  • 2 replies
  • 3388 views

I use STM32H750B-DK to do external loader function.

"H750_External_Loader.zip" is my test code.

On below have error happen, I got error while memcmp

0693W00000JMSYpQAP.png 

That's the code that I've used as my base:

https://github.com/WellinZHANG/External_Loader

QSPI Setting

0693W00000JMSZYQA5.png 

EVM STM32H750B-DK Flash0693W00000JMSZiQAP.png

    This topic has been closed for replies.
    Best answer by YCF.1

    This issue had to solve.

    The code had some error, must change code like below.

    Thanks.

    0693W00000Y6qyaQAB.png

    2 replies

    Technical Moderator
    January 19, 2022

    Dear @YCF.1​  (Community Member)​ 

    Please double check if you're not in the case of the errata "2.4.4 Memory-mapped read of last memory byte fails". If yes, please configure FSIZE the double size of the real size of your memory.

    SofLit

    YCF.1Author
    Visitor II
    January 20, 2022

    Hi Soft.it~

    The issue may be memory ​mapped fail, because I try to

    memcmp(buffer_test,(uint8_t*) (0x90000000 + var * MEMORY_SECTOR_SIZE),1) still fail.

    Graduate II
    December 24, 2022

    The memory mapping needs to be working

    https://github.com/WellinZHANG/External_Loader/blob/main/QSPI%20testing/main_test.c#L36

    If it's already failing at the first byte then perhaps the command/template is wrong.

    Check dummy cycles, command format, etc.

    On the H7 there's an issue at the end of memory, about 32-bytes / cache-line that has an errata issue, but you'd need to be using the whole memory.

    YCF.1AuthorAnswer
    Visitor II
    December 26, 2022

    This issue had to solve.

    The code had some error, must change code like below.

    Thanks.

    0693W00000Y6qyaQAB.png