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

Cann't write data to flash by using pstorage.

Hi 

Now I'm using the pstorage module to save some data.But I meet some problem,I hope I can get your help,thanks a lot.

It seems that the block has been created successfully and I can see the ID is 0x0003f800.However,I read the block and find the data is still 0xFF....

Beside,I found that device doesn't advertise after using pstorage_clear().I also found that pstorage_access_status_get(&count),the count value is 1,so the advertising is pending,but I don't know why.

Attachment is my main code and the SDK I'm using is 9.0,what I do is based on ble_app_uart_s130_pca10028 project.And I use PCA10028.Could you tell me how to do it? Thanks.

BR Alex main.c