-
Notifications
You must be signed in to change notification settings - Fork 3k
QSPIF: options to preset reset sequence for legacy SFDP #13399
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
@LDong-Arm, thank you for your changes. |
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.
NB: no test done
@LDong-Arm why have you marked this as a feature PR? |
It's a new configuration to enable support for some legacy flashes, rather than fixing an error in our code. Since it fixes the support for an existing flash controller in Mbed OS, would you prefer marking it as a fix instead? |
Unless it does one of these things "New feature / Functionality change / New API" then it is a patch (I'm ruling out major as that's way more significant) |
Fair enough, I've changed it. |
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.
Excellent work @LDong-Arm !
@adbridge Note that label should be updated. |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@LDong-Arm will try re-running ci |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
The first revision (1.0) of SFDP (ref: JESD216) does not include fields for software reset support. It's only been added in the second revision (1.5) (ref: JESD216A). Some Mbed OS targets such as DISCO_F746NG include flashes with legacy SFDP, thus we add an option to preset the reset mode.
Rebased |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 3 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Fixes: #13129
(Special thanks to @keithmwheeler for the analysis, which I confirm.)
The first revision (1.0) of SFDP (ref: JESD216) does not include a field to indicate software reset support. The currently available document JESD216D from JEDEC has a change log at the end, and the first revision of the Basic Parameters Table has fewer entries than the location indicating software reset.
Some Mbed OS targets such as DISCO_F746NG include flashes with legacy SFDP, thus we add an option to preset the reset mode. Users of custom targets can utilise this option too.
To use, set options to your application's
mbed_app.json
:Please consult your flash device's data sheet to determine the reset sequence.
Impact of changes
Migration actions required
None for targets that already work properly with QSPIF. See PR description for how to use the added options.
Documentation
See the PR description, or
mbed_lib.json
for QSPIF.Pull request type
Test results
Fixes the issue on my local DISCO_F746NG.
Reviewers
@ARMmbed/mbed-os-core, @geky, @ARMmbed/mbed-os-storage