How to verify SDK data and application in NCS CONNECT SDK v1.9.1?

Hi,

We are using NCS Connect SDK v1.9.1 with nRF52833. 

We wanted to verify the application and SDK data region. Can you please suggest ways to verify. 

Parents
  • Hi AmandaH,

    we referred to  Non-Volatile Storage (NVS) page you mentioned in previous reply

    "Byte related CRC check is mentioned in this point Each element is stored in flash as metadata (8 byte) and data. The metadata is written in a table starting from the end of a nvs sector, the data is written one after the other from the start of the sector. The metadata consists of: id, data offset in sector, data length, part (unused) and a crc"

    Now after referring to this we explored and could find nvs_ate_valid in nvs.c file (Path: zephyr\subsys\fs\nvs\nvs.c) which returns 1 if CRC & Offset is valid, 

    our queries:

    1. This CRC check is happening for Each 8 byte metadata right ?

    2. We need an API to check CRC of this 24kb Chunk not just Metadata, can you please suggest if we have any mechanism to validate the CRC of this 24kb SDK data memory, Or if can you suggest the memory location from the where we can pick CRC count if the CRC of this chunk is already getting validated in SDK.

    Thank you,

    Regards,

Reply
  • Hi AmandaH,

    we referred to  Non-Volatile Storage (NVS) page you mentioned in previous reply

    "Byte related CRC check is mentioned in this point Each element is stored in flash as metadata (8 byte) and data. The metadata is written in a table starting from the end of a nvs sector, the data is written one after the other from the start of the sector. The metadata consists of: id, data offset in sector, data length, part (unused) and a crc"

    Now after referring to this we explored and could find nvs_ate_valid in nvs.c file (Path: zephyr\subsys\fs\nvs\nvs.c) which returns 1 if CRC & Offset is valid, 

    our queries:

    1. This CRC check is happening for Each 8 byte metadata right ?

    2. We need an API to check CRC of this 24kb Chunk not just Metadata, can you please suggest if we have any mechanism to validate the CRC of this 24kb SDK data memory, Or if can you suggest the memory location from the where we can pick CRC count if the CRC of this chunk is already getting validated in SDK.

    Thank you,

    Regards,

Children
Related