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

The macro "PERSISTENT_STORAGE" set to 1, but TX packet sequence number still start from 0 when Soc reset

Dear friends,

I want to store the sequence nunber in flash, from the case we can know the mechanism.

I found a strange phenomenon that I flashed a serial example(nrf5_SDK_for_Mesh_v5.0.0_src\examples\serial) in my 52840 DK, in the source code the macro "PERSISTENT_STORAGE" default set to 1, as below image shows:

However, when I reset the 52840 DK, the TX packet sequence number still start from 0 and when I reopen pyACI script the log shows:

Could you tell me the reason why TX packet sequence number still start from 0 when Soc reset?

Thanks.

Best regards,

Oplinux

Parents Reply
  • Thank you Amanda,

    Unfortunately, I must edit the file nrf5_SDK_for_Mesh_v5.0.0_src\examples\serial\serial_nrf52840_xxAA_s140_7_2_0.emProject directly, as below

    if enable PERSISTENT_STORAGE in the Project option -> Preporcssor Definitions as you shows above will cause redefined warning, as I uploaded picture, you can find this warning.

    So, is there other workaroud to make "PERSISTENT_STORAGE " set to 1

    Thanks.

    Best regards,

    Oplinux

Children
Related