Skip to main content
This topic has been closed for replies.
YCF.1
YCF.1Best answer
Associate II
December 26, 2022

This issue had to solve.

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

Thanks.

0693W00000Y6qyaQAB.png

4 replies

mƎALLEm
ST 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

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
YCF.1
YCF.1Author
Associate 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.

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
YCF.1
YCF.1AuthorBest answer
Associate II
December 26, 2022

This issue had to solve.

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

Thanks.

0693W00000Y6qyaQAB.png