-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
drivers: flash: qspi stm32 driver supporting requires_ulbpr #74534
Conversation
59c4136
to
648059c
Compare
Not all the quad-spi have the SPI_NOR_CMD_ULBPR command: (for example it is not listed in the Micron MT25QL512 or Macronix MX25R6435) |
Tested (samples/drivers/spi_flash) on a stm32l496g_disco which has a Macronix MX25R6435 quad-NOR with CONFIG_USE_MICROCHIP_QSPI_FLASH_WITH_STM32=n (no Microchip available) |
@FRASTM what is the status on using this changes in 3.7 LTS, it looks like still waiting on something for using "USE_MICROCHIP_QSPI_FLASH_WITH_STM32" |
Add the <requires-ulbpr> property from the "jedec,spi-nor-common.yaml" to the existing st,stm32-qspi-nor.yaml. So that external quad-NOR with unlock the Global Block Protection (BPR) (opcode 0x98) is accepted. Signed-off-by: Francois Ramu <[email protected]>
Add the support of the requires_ulbpr property when a Microchip quad-spi flash is mounted. Set the CONFIG_USE_MICROCHIP_QSPI_FLASH_WITH_STM32=y flag to access the command Signed-off-by: Francois Ramu <[email protected]>
Add the write_unprotect command to the stm32 qspi flash driver to un protect flash before any write operation to the external quad-NOR Signed-off-by: Francois Ramu <[email protected]>
@FRASTM just feedback and question on warning Do you have an idea on what is not done correct configured or possible fix in zephyr/drivers/flash/flash_stm32_qspi.c? I have checked out main and used it to flash for microchip sst26vf032b with sample "samples/drivers/spi_flash" my_board is derived from nucleo_l476rg Specific enable and using. I get warning on this and not sure on how to fix it or it will be a problem. relevant devicetree part for sst26vf032b
Full printout with some path substitutes
|
Add the support of the requires_ulbpr property when a Microchip quad-spi flash is mounted.
Set the CONFIG_USE_MICROCHIP_QSPI_FLASH_WITH_STM32=y flag to access the command
Fixes #68622