This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

S110 Flash write fail

SDK:8.1.0 51822AA

question:don't start advertise

1.use 128K Flash,use not RAW mode,register 6 block;
first:32B4 second:81 three: as follow

image description

image description

image description

2.it can store data,as follow

image description
but when i start timer,and store flash data in timer interupt fuction,the system return ok,but i load those data,it is wrong. first:use pstorage_update ,all data is wrong second,use pstorage_store,all data is ok. rewrite those block when i clear those block by pstorage_clear fuction,and load those block,all data are wrong.
how to solve it? image description image description

Parents
  • I'm having trouble getting your project to work, but what start address are you actually setting in pstorage_platform.h? PSTORAGE_DATA_START_ADDR? By setting PSTORAGE_MAX_APPLICATIONS to 128 it seems to me that you say to pstorage it has 128 flash pages available, but you have 128 flash pages in total. The SoftDevice uses 96 of them, which means you are left with 32. Your application uses some of them, and the rest you can give to pstorage.

Reply
  • I'm having trouble getting your project to work, but what start address are you actually setting in pstorage_platform.h? PSTORAGE_DATA_START_ADDR? By setting PSTORAGE_MAX_APPLICATIONS to 128 it seems to me that you say to pstorage it has 128 flash pages available, but you have 128 flash pages in total. The SoftDevice uses 96 of them, which means you are left with 32. Your application uses some of them, and the rest you can give to pstorage.

Children
No Data
Related