cancel
Showing results for 
Search instead for 
Did you mean: 

QSPI External Loader WriteMemory Fail

YCF.1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
YCF.1
Associate III

This issue had to solve.

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

Thanks.

0693W00000Y6qyaQAB.png

View solution in original post

4 REPLIES 4
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.

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.

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
Up vote any posts that you find helpful, it shows what's working..
YCF.1
Associate III

This issue had to solve.

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

Thanks.

0693W00000Y6qyaQAB.png