-
Notifications
You must be signed in to change notification settings - Fork 7.4k
stm32 qspi driver support sfdp parameters #56279
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
Running the
|
jesd216 of the disco_l475_iot1 (west build -p auto -b disco_l475_iot1 samples/drivers/jesd216/) gives:
|
running the samples/drivers/spi_flash:
|
Update board definition and doc (with quad-spi) |
4f958d9
to
f61fd64
Compare
@@ -19,6 +19,7 @@ | |||
zephyr,shell-uart = &usart1; | |||
zephyr,sram = &sram0; | |||
zephyr,flash = &flash0; | |||
zephyr,flash-controller = &mt25ql512ab1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an STM32 expert but shouldn't tis be set to MCU flash-controller?
I guess that some tests/samples use this to access flash (which is probably something we need to fix...), so shouldn't these be part of board overlay for the tests/sample?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a board chosen definition, for sure.
That could be a part of the board overlay but most of the other platforms have this in their board.dts file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this is a grey area.
Boards porting guidelines states that boards default configuration should take advantage of any "fancy" hardware available in the BSP: "Since an external flash is available, let's take advantage for storage of it an keep internal flash for application binary."
That's debatable of course.
QSPI_CommandTypeDef cmd = { | ||
.Instruction = JESD216_CMD_READ_ID, | ||
.AddressSize = QSPI_ADDRESS_NONE, | ||
.DummyCycles = 8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.DummyCycles = 8,
Please see #56848 comments.
@erwango @de-nordic please revisit |
@FRASTM Please rebase. |
This commit adds the jedec216 read sfdp and Read ID function API. The qspi commands are issued to the quad flash device. Signed-off-by: Francois Ramu <[email protected]>
The stm32h474i_disco has a twin NOR flash made of two MT25QL512 64MBytes quad-NOR devices. Here, the partition is fully adressing the memory size. The 1st NOR device is selected (U3 on the schematics). Signed-off-by: Francois Ramu <[email protected]>
This commit enables the 64Mbit quadspi NOR (mx25r6435) mounted on the stm32l496g_disco kit. Use the DMA transfer for QSPI: request 7 on channel3 of DMA2. Signed-off-by: Francois Ramu <[email protected]>
This commit adds the support of the quadspi to the board definition .yaml file Signed-off-by: Francois Ramu <[email protected]>
This adds the support jedec configuration to run the jedec sample application. So target board can display the content of the quad-NOR flash. Signed-off-by: Francois Ramu <[email protected]>
This enables the samples/drivers/spi_flash on quad-spi flash to run on any stm32 target with external NOR quad flash. The SPI_FLASH_MULTI_SECTOR_TEST test case is possible with quadspi too. Signed-off-by: Francois Ramu <[email protected]>
Add the support of the jedec SFDP parameter read command to the quadNOR flash of the stm32 driver
This PR gives the stm32 QSPI driver the access to the jedec SFDP table given by the external quad-flash
and read with the JESD216_CMD_READ_ID (opcode = 0x9F).
This is demonstrated by the samples/drivers/jesd216/ running on a stm32 target board with quad-NOR flash device.
Also run the samples/drivers/spi_flash on
Signed-off-by: Francois Ramu [email protected]