configure the stm32 XSPI flash driver to read and write in MemoryMapped mode#88773
Closed
FRASTM wants to merge 3 commits intozephyrproject-rtos:mainfrom
Closed
configure the stm32 XSPI flash driver to read and write in MemoryMapped mode#88773FRASTM wants to merge 3 commits intozephyrproject-rtos:mainfrom
FRASTM wants to merge 3 commits intozephyrproject-rtos:mainfrom
Conversation
Contributor
Author
|
Tested on the stm32H573 disco kit with flash_shell: |
Contributor
Author
|
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
Contributor
Author
|
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
Contributor
|
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
Contributor
Author
|
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>
|
Contributor
Author
|
closed until requested for support |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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