2022-01-18 05:14 PM
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
That's the code that I've used as my base:
https://github.com/WellinZHANG/External_Loader
QSPI Setting
EVM STM32H750B-DK Flash
Solved! Go to Solution.
2022-12-25 04:16 PM
This issue had to solve.
The code had some error, must change code like below.
Thanks.
2022-01-19 01:03 AM
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
2022-01-19 04:12 PM
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.
2022-12-24 12:27 PM
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.
2022-12-25 04:16 PM
This issue had to solve.
The code had some error, must change code like below.
Thanks.