Skip to content
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

[Backport v3.6-branch] drivers: flash: stm32 ospi flash driver the correct erase instruction #71330

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Apr 10, 2024

Backport 325ae4d~2..325ae4d from #70434.

Fixes #71343

FRASTM added 2 commits April 10, 2024 12:01
Use the most adapted instruction for the sector erase command
It can be 0x20 or ox21 or 0x21DE in octo - DTR mode.
The value is given by the SFDP table and  filled in the erase_types
 table the during the SFDP discovery process.

Signed-off-by: Francois Ramu <[email protected]>
(cherry picked from commit 01684df)
After erasing the sector, compare dat read with expected 0xFF pattern
to decide if erasing is successful instead of relying on the
returned code of the flash_erase function

Signed-off-by: Francois Ramu <[email protected]>
(cherry picked from commit 325ae4d)
@henrikbrixandersen henrikbrixandersen added this to the v3.6.1 milestone Apr 11, 2024
@MaureenHelm MaureenHelm merged commit d0af8d8 into v3.6-branch Apr 12, 2024
23 checks passed
@nashif nashif deleted the backport-70434-to-v3.6-branch branch November 16, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Flash area: Samples Samples Backport Backport PR and backport failure issues platform: STM32 ST Micro STM32
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7 participants