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-24 08:19 PM
Are you using the F1 part, or something else?
The OP is using the H7
What pins are you using?
2022-12-24 10:18 PM
I had a problem with a custom development board from China. It had the labeling of two pins mixed up. This forced me to study deep pdf on W25Q128 and create a QSPI port emulator on stm32f103. Now I'm trying to assemble a bootloader for a soybean board and ran into a similar problem as the author of the article. I use stm32f746vgt6 with W25Q128. Pins PB2 -> CLK, PB6 -> NCS, PD11 -> IO0, PD12 -> IO1, PD13 -> IO3, PE2 -> IO2.
2022-12-24 10:22 PM
I do not have deep knowledge and good practice in this matter. That's why I came here to deal with all this. Maybe it's in the algorithm of the flash memory itself. And if you use memory from Micron, then everything will work out.
2022-12-25 12:24 AM
There is an understanding of what could be the problem, looking through the files from the repository from ST, I decided to look at the linker file and noticed that the wrong RAM size was indicated in it, i.e. 512k is indicated, and mine has 320k. And if I understand correctly, then the stack and heap can be placed in an area that does not exist. then it is not clear why the external loader works with my file and does not give an error?
2022-12-25 02:31 AM
Well. I can be congratulated. I was able to defeat this issue. The loader is working. Writes, erases by sectors, erases completely, and verifies the recorded dump with the recorded one.
2022-12-25 04:16 PM
This issue had to solve.
The code had some error, must change code like below.
Thanks.
2022-12-25 08:27 PM
This is an important setting for the exchange protocol. It generates a delay between setting the start address of the page we are reading and the first byte of data. All this is described in pdf on a memory chip.