NCS OpenThread CLI Sample program

Hi

Compile the cli sample into a hex file,Download it to the board, read the hex file through the nRF Connect for Desktop Programmer tool, and then convert it to the bin file through the hex2bin tool. Compared with the original bin file, it is found that the last six bytes of the flash application partition have 00 00 00 00 AF changes

I'm worried that this problem will damage the flash

Parents
  • Hi,

    From which nRF Connect SDK version did you build the OpenThread CLI example?

    I suspect that the change in flash that you are seeing is a page tag or similar for the Non-Volatile Storage (NVS) library, used by the Settings module to store OpenThread persistent data (network keys, dataset, etc). The address does not match the one I see from my build in NCS 2.1.0 (0x7CFF2), but the content does. Once you have entered ot commands into the CLI and started the Thread stack, the flash area will be filled with more data. Why are you concerned that this will damage the flash? If you do not want the information stored into the flash of the device, the device would lose information about the Thread network each time the power is lost.

    Best regards,
    Jørgen

  • Hi

    I built through NCS18.0

    Sorry, the screenshot is the flash after the partition is modified,The following figure shows the flash changes before modifying the partition,

    The following figure shows my current flash partition. CLI programs are stored in the application partition,The storage partition is used to store the data generated by the CLI program,(075FF2) The address belongs to the application partition,But it is written to 00 00 00 00 00 AF, so I'm worried that the CLI may not work properly

    As you said, if 00 00 00 00 00 AF is the flag of the storage partition, I don't think it will damage the flash

    Thank you very much for your answer

Reply
  • Hi

    I built through NCS18.0

    Sorry, the screenshot is the flash after the partition is modified,The following figure shows the flash changes before modifying the partition,

    The following figure shows my current flash partition. CLI programs are stored in the application partition,The storage partition is used to store the data generated by the CLI program,(075FF2) The address belongs to the application partition,But it is written to 00 00 00 00 00 AF, so I'm worried that the CLI may not work properly

    As you said, if 00 00 00 00 00 AF is the flag of the storage partition, I don't think it will damage the flash

    Thank you very much for your answer

Children
No Data
Related