For nrf52832, I use pstorage to set 254 blocks with 20 byte of each block, that will use near 5 pages.
now I fail to clear data all block together. pstorage_clear( &block_base_handle, 254*20) doesn't work for me.
I saw this link : devzone.nordicsemi.com/.../
but the block size need to be page aligned in that example. But block size of 20B cannot aligned with a 1024B page. Is that any other way to erase all pstorage data without changing the block size? How about bypass pstorage_clear and directly erase flash pages with address instead?