-
Notifications
You must be signed in to change notification settings - Fork 3k
nRF51822 pstorage APIs are broken since mbed OS 5.2 #4181
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
Comments
@nvlsianpu Do you know if |
Thanks for the bug report.
|
pstorage is deprecated and no longer works in mbed OS 5.4 projects due to ARMmbed/mbed-os#4181. This updates the driver to use fstorage, and also makes the driver work on nRF52.
pstorage is deprecated and no longer works in mbed OS 5.4 projects due to ARMmbed/mbed-os#4181. This updates the driver to use fstorage, and also makes the driver work on nRF52.
ARM Internal Ref: MBOTRIAGE-353 |
I believe this one can be closed. Resolved via referenced PR above to the ble example. |
Description
Bug
Target
nRF51-DK, also seen on Minewtech nRF51 and Minewtech nRF52
Toolchain:
GCC_ARM and ARMCC
Toolchain version:
4.9.3 and online compiler
meed-os sha:
The problem is present in mbed OS 5.2.3 and 5.4.2, but not in mbed OS 5.1.5.
Expected behavior
Take https://github.com/roywant/EddystoneBeacon. Change the adv interval (3rd characteristic, has value 0x2bc), and persist. On mbed OS 5.1.5 this is persisted in persistent storage. mbed OS 5.2.3 does not persist.
The first call to
pstorage_store
goes fine, but then a call topstorage_update
will wipe out the flash... Just restart the board and inspect the persistence signature (not even required to power cut). I see that we used to get 2xpstorageNotificationCallback
after updating, but now only one... Maybe that's a hint?I bisected the problem:
Seems legit.
@nvlsianpu
The text was updated successfully, but these errors were encountered: