0

PSTORAGE AND FSTORAGE

ANKITTY gravatar image

asked 2017-09-13 14:05:01 +0200

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...?

edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
0
jornfr gravatar image

answered 2017-09-13 15:09:26 +0200

Hello ANKITTY

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.

Best regards

Jørn Frøysa

edit flag offensive delete publish link more

Comments

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

ANKITTY ( 2017-09-14 07:29:01 +0200 )editconvert to answer

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.

Jørn ( 2017-09-14 14:17:39 +0200 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower

Stats

Asked: 2017-09-13 14:05:01 +0200

Seen: 42 times

Last updated: Sep 13