I AM USING SDK 12.2 AND IT IS RECOMMENDED TO USE FSTORAGE. But i found no function to read unlike pstorage_load . so can i use pstorage instead of fstorage will it cause any problem.i only want to store pwm count in flash each hour.so which is better? Any suggestions...?
pstorage was removed in the transition to SDK12.0.0, so it is not a part of SDK 12.2. pstorage is an old module and was exchanged for fstorage and FDS. You can find the documentation on fstorage here and FDS here.
Fstorage does not have a API for load as it is only used for storing and erasing data. See this post for more information and a way to retrieve stored data. If you want to have API for both store and load you will need to use FDS.
I WANT TO STORE PWM COUNT EACH HOUR IN THE ROM IF I USE FDS THEN I HAVE TO STORE FILE ID,KEY, RECORD ID ALONG WITH MY COUNT DATA WHICH IS NOT GOOD FOR ME DUE TO MEMORY SHORTAGE. HOW ABOUT LOADING PSTORAGE LIBRARY IN SDK12.2 AND USING IT. I NEED READ OPERATION ALSO UNLIKE KEEPING THE POINTERS AS IN FSTORAGE. IS THERE ANY PROBLEM IN COPYING PSTORAGE LIBRARY IN SDK 12.2 AND USING IT FOR READING AND WRITING
I'm afraid I do not know if the pstorage module is compatible with 12.2. as it is deprecated. There may be interactions with other modules in the SDK or SoftDevice that may require modification. The best advice I can offer at this point it so try and see if it works. Perhaps this post can be of assistance.