nordic ble pstorage记录
2017-12-08 本文已影响0人
rick_2016
pstorage
1 memory map
![](https://img.haomeiwen.com/i1361626/d457836b7b9d0435.png)
2 注意事项
-
memory register时最小分配单位为一个扇区, 所以,用户需要将数据进行合理的组织
-
传输的数据需要4字节对齐
-
memory clear时,需要为扇区大小的整数倍
-
update可以不用显示调用擦除(实际是会通过swap分区结合,并进行数据擦除), update太频繁会影响flash寿命
-
load操作、store操所、clear操作和update操作都不是立即完成的