Hi,
I have an example based on v2.4.1\nrf\samples\bluetooth\peripheral_lbs
This is my prj.conf
this is my pm_static.yml, this is copy from file: build/partitions.yml
I init parametres for settings_storage of flash
Now i do the following:
Build, Flash, with flash_erease, flash_write and flash_read. This is my console log
Flash is ready
Test 1: Flash erase page at 0xf6000
Flash erase succeeded!
Attempted to write 12c at 0xf6000
Data read: 12c | 300, at 0xf6000
Attempted to write 64 at 0xf6004
Data read: 64 | 100, at 0xf6004
Attempted to write 1 at 0xf6008
Data read: 1 | 1, at 0xf6008
Attempted to write 2 at 0xf600c
Data read: 2 | 2, at 0xf600c
Next step. Comment flash_erease and flash_write, only flash_read is active. Build and Flash device. This is my console log
Flash is ready
Data read: b8397b06 | -1204192506, at 0xf6000
Data read: 689acd9a | 1754975642, at 0xf6004
Data read: 615433a5 | 1632908197, at 0xf6008
Data read: 4293d3ff | 1116984319, at 0xf600c
Why values are different?
When I use storage_partition and hard address 0xf8000 everyfing is ok, after write all next reads have corrected values.