2023-11-29 10:35 PM
Hi,
I am trying to do a memory map with this board W25QXX and it's not working. For some reason even on the original code we can see the function for BSP_QSPI_MemoryMappedMode have a comment (https://www.waveshare.com/wiki/W25QXX_DataFlash_Board). Any idea why?
I am using this board, with STM32H743IIT the configuration of my QUADSPI is:
Solved! Go to Solution.
2023-12-10 10:40 AM
this should be the implementation:
2023-11-30 02:19 AM
Hello @aabba.1 ,
For some reason even on the original code we can see the function for BSP_QSPI_MemoryMappedMode have a comment (https://www.waveshare.com/wiki/W25QXX_DataFlash_Board). Any idea why?
The shared code isn't supported by ST. But, I noted that the TIMEOUT Counter is enabled in the comment code line, and it mentioned in the STM32F746 errata sheet that Memory-mapped read operations may fail when timeout counter is enabled and the workaround is to disable the timeout counter.
s_mem_mapped_cfg.TimeOutActivation = QSPI_TIMEOUT_COUNTER_ENABLE;
To configure QSPI in memory mapped mode using STM32H743 devices, I advise you to start with an available QSPI_MemoryMapped example in STM32CubeH7 package.
If you using STM32CubeMX toolchain to configure the QUADSPI interface, I recommend you to follow the steps shared in AN4760 precisely section 4. QUADSPI configuration.
Thank you.
Kaouthar
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.
2023-11-30 05:29 AM
What's the comment? Imagine I can't get to this on my phone, present better.
Make the command template work in direct mode, this maps directly to how the memory mapped read works, a template it stuffs an address field into.
2023-12-10 10:40 AM
this should be the implementation: