-
Notifications
You must be signed in to change notification settings - Fork 3k
SPIF - Fix command to unlock Global Block-Protection register #9408
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
@DBS06, thank you for your changes. |
Interesting fail
|
It's bug on master ,there's PR already fixing it and will rebase PR once it's on master |
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.
@DBS06 Good catch - Thanks!! :$
I'd really appreciate it if you could perform the identical change for QSPIFBlockDevice.cpp.
https://github.com/ARMmbed/mbed-os/blob/a50ba6e71d203409102cd1be0a2dd011c67b9d64/components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp#L209
@@ -169,7 +170,7 @@ int SPIFBlockDevice::init() | |||
// SST devices come preset with block protection | |||
// enabled for some regions, issue write disable instruction to clear |
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.
Should be changed to "issue global protection unlock to clear"
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.
@offirko Done 😃
But what do you mean by:
> Should be changed to "issue global protection unlock to clear"
Furthermore I added the command to SPIFReducedBlockDevice.cpp, it was there but only as a "magic number" and not as a command. |
@DBS06 - much appreciated |
…rotection bits in the Block-Protection register.
NOTE: This PR has now been rebased. If this was made in error, feel free to force-push your local branch to restore the PR. |
eac0e4e
to
f0ec813
Compare
@0xc0170 is work still required? |
Ready for CI, starting now |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
CI restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
We are investigating the dynamic memory usage ( last 3 jobs failed) |
Description
As described in the code of SPIFBlockDevice.cpp line 168:
But during the commit ARMmbed/spif-driver@a821b69 the command (0x98) was falsely replaced with "SPIF_WRDI" -> classical copy and paste error 😏
Therefore I added the commend to the SPIF-Default-Instructions and replaced the wrong command "SPIF_WRDI" with "SPIF_ULBPR".
Pull request type
Reviewers