-
Notifications
You must be signed in to change notification settings - Fork 7.8k
configure the stm32 XSPI flash driver to read and write in MemoryMapped mode #88773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tested on the stm32H573 disco kit with flash_shell:
|
with this CONFIG_STM32_MEMMAP=y, the samples/drivers/spi_flash is executed on the stm32h573i_dk target:
|
b6a87a0
to
7c25d14
Compare
0900912
to
cd84954
Compare
The memory-mapped configuration is from the stm32cube driver with first enabling the write then sending the PageProgram command then sending the read command |
e2a372e
to
dd90aed
Compare
|
Configure the stm32 xspi flash for reading and writing in memorymapped The sequence is from the STM32Cube. The refman requires a dummy read and a synchronization barrier and an abort command after a memory-mapped write and a synchronization barrier and an abort command after a memory-mapped read Signed-off-by: Francois Ramu <francois.ramu@st.com>
dcec225
to
9ecb162
Compare
rebse on 7a8bd3d |
1a0b398
to
735194b
Compare
Define the Memory mapped mode on the stm32h573i_dk board to read and write the external NOR octo-flash Signed-off-by: Francois Ramu <francois.ramu@st.com>
Add a special testcase for running the samples/drivers/spi_flash on stm32 targets with MemoryMapped mode on external quad/octo/ spi NOR No more conf file required for stm32 targets when in MemoryMapped mode. Signed-off-by: Francois Ramu <francois.ramu@st.com>
|
closed until requested for support |
Up to now, the stm32 xspi flash driver can read data in the external NOR octo flash in Memory-Mapped mode
This mode is enabled by the CONFIG_STM32_MEMMAP=y and makes read operation in the external NOR by memcopy
(DTR octo-SPI)
With this PR, the writing the external NOR octo Flash is also possible in Memory-Mapped mode with memcopy
Prior to this write operation the flash sector must have been erased
The erase is not possible in memory-mapped mode, so this mode is aborted, erase is performed, and Memory-Mapped mode is enabled again for the next read or write operation
According to the RM0481 ref manual of the stm32h573 device, the OCTOSPI reconfiguration or deactivation