2019-05-29 02:17 AM
Hi all,
Recently, I build a project with TouchGFX for STM32H743,and the total files are more than 2MB,so I have to use external flash memory(W25Q256).
Then, I am trying to use QSPI interface to connect external memory and execute in interrupt method.
But I have no ideal how to build the function,can any one help me or provide source code?
By the way, I have already added the algorithm about W25Q256,and the other initialize was done , backlight was turned on.
Thanks!
2019-05-29 05:23 AM
If the QSPI device has been mapped into the STM32 address space it should be readable like any other memory.
2019-05-29 11:29 PM
E. g. demonstration firmware for STM32F746G-Disco usese QSPI flash. Take a look at the sources, loader files etc. The QSPI interface in F7 and H7 is (almost) identical from software point of view.
2019-05-30 02:25 AM
@Community member
Thanks for your reply!
I have already read data from first address,and it was correct but I don`t know how to build the interrupt function .
Is there any suggestion or reference?
Thanks!
2019-05-30 02:31 AM
Hi @Andreas Bolsch ,
Thanks for your reply!
Do you mean this one in CubeMX?
And I have browsed source code in project,then it was built with TouchGFX but just like the same code what I build .
I didn`t find any function different,Am I find the wrong file?
Thanks!
2019-05-30 03:18 AM
STM32Cube_FW_F7_V1.15.0/Projects/STM32746G-Discovery/Demonstrations/STemWin
contains the QSPI code and linker scripts.
2019-05-30 03:30 AM
I find out.
But why it does not add the algorithm at flash memory?
Is it no need to add in?
2019-05-30 03:50 AM
What do you mean by "But why ..."
2019-05-30 05:27 PM
I mean that if you want to use QSPI external memory,shouldn`t it need to ad the corresponding algorithm?
Or how can it get the function with,and execute the data from it.
2019-05-30 11:45 PM
You mean for the initial programming of the firmware into the flash? This 'external loader' has to be supplied by you (as the pin mapping, transfer modes and flash initialization you want to use might not be the same as for the loaders shipped by ST). For this search for 'external loader' here, there are already a number of postings here for this topic.