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

FDS issue adding new record on Thingy52 SDK13 SD132 ver.4.0.4

I am adding a new module with some new parameters that I export as service on BLE and I want to store in flash using FDS.

Starting from scratch, so installing the fw using a chiperase, the default data are properly stored on FDS page.

I am using the command:

python jflashrw.py read --start 0x7B000 --length 0x1000 --file fds.bin

to read the flash content. Notice that after the first reboot the flash address is 0x7B00.

I am able to read via BLE the data and change them using nrfConnect. I can see on the log using JLink-RTT viewer that the call to fds_record_update is passing the rigth value.

If I reboot the board using nrfjprog -r I notice to strange things.

The FDS data like the Thingy configuration are present on the flash page 0x7A00 and no more on 0x7B00 and my data are no more present. Why it changes the start address?

this is the dump after the reboot starting from scratch. my records start at 0x02b0 for 3 words.

00000250: D0 07 DC 05 02 67 4E 1D 04 10 03 00 03 10 00 00 P.\..gN.........
00000260: 03 00 00 00 42 00 00 00 00 00 00 00 00 00 00 00 ....B...........
00000270: 01 30 04 00 00 30 00 00 04 00 00 00 42 00 00 00 .0...0......B...
00000280: E8 03 F4 01 F4 01 0A 00 01 00 00 00 01 40 03 00 h.t.t........@..
00000290: 00 40 00 00 05 00 00 00 42 00 00 00 00 02 14 AC [email protected]......,
000002a0: 0D 00 00 00 01 50 03 00 00 50 00 00 06 00 00 00 .....P...P......
000002b0: 42 00 00 00 02 F4 C9 C1 C9 00 00 00 FF FF FF FF B....tIAI.......
000002c0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
000002d0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
here is the dump of 0x7a00 after the field update:
00000250: D0 07 DC 05 02 67 4E 1D 04 10 03 00 03 10 00 00 P.\..gN.........
00000260: 03 00 00 00 42 00 00 00 00 00 00 00 00 00 00 00 ....B...........
00000270: 01 30 04 00 00 30 00 00 04 00 00 00 42 00 00 00 .0...0......B...
00000280: E8 03 F4 01 F4 01 0A 00 01 00 00 00 01 40 03 00 h.t.t........@..
00000290: 00 40 00 00 05 00 00 00 42 00 00 00 00 02 14 AC [email protected]......,
000002a0: 0D 00 00 00 01 50 01 00 00 50 00 00 07 00 00 00 .....P...P......
000002b0: 42 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF B...............
000002c0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................
000002d0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................

Parents Reply Children
No Data
Related