NFC and Mesh PERSISTENT_STORAGE issue

Hello,

I'm trying to have a Mesh device act as a writable NFC device, however I'm running into an issue with conflicting flash storage.

Mesh seems to use PERSISTENT_STORAGE 1 

NFC seems to use FDS, and when PERSISTENT_STORAGE is set to 1, this seems to cause a start up fault.

Is there a method of having the NFC use the same storage layer that Mesh is using?

(I'm using Mesh SDK 5 and 17.02 SDK lib)


Parents
  • Hello,

    I am aware that there was a conflict in FDS and Bluetooth Mesh's Flash Manager back in SDK 15, but I thought it was fixed by now.

    Are you sure that you erased the chip completely after setting PERSISTENT_STORAGE to 1? ("nrfjprog --eraseall" in a command line).

    If you did erase the flash and the issue still occurs, can you please see what flash address FDS is trying to initialize in?

    As far as I know, there are no examples in the nRF5 Mesh SDk, so I guess you have hacked something together. Without knowing more about the implementation it is a bit difficult to say what the error may be, but I would start by checking what flash pages both the FDS (fstorage) and the Flash Manager is trying to use, to make sure that they are not conflicting. Also make sure to erase the flash whenever you do any changes to this setup, so that the application doesn't see "corrupt" flash when it tries to initialize the FDS and Flash Manager.

    Is it possible to upload a project that I can unzip in an unmodified nRF5 Mesh SDK and reproduce the issue?

    Best regards,

    Edvin

Reply
  • Hello,

    I am aware that there was a conflict in FDS and Bluetooth Mesh's Flash Manager back in SDK 15, but I thought it was fixed by now.

    Are you sure that you erased the chip completely after setting PERSISTENT_STORAGE to 1? ("nrfjprog --eraseall" in a command line).

    If you did erase the flash and the issue still occurs, can you please see what flash address FDS is trying to initialize in?

    As far as I know, there are no examples in the nRF5 Mesh SDk, so I guess you have hacked something together. Without knowing more about the implementation it is a bit difficult to say what the error may be, but I would start by checking what flash pages both the FDS (fstorage) and the Flash Manager is trying to use, to make sure that they are not conflicting. Also make sure to erase the flash whenever you do any changes to this setup, so that the application doesn't see "corrupt" flash when it tries to initialize the FDS and Flash Manager.

    Is it possible to upload a project that I can unzip in an unmodified nRF5 Mesh SDK and reproduce the issue?

    Best regards,

    Edvin

Children
No Data
Related