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.
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.
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,
Hi AmandaH,
Awaiting for your reply
Hi,
Sorry for the delay.
1. Yes, Each metadata (ATE) contains its own CRC against its fields.
2. NVS does not implement CRC for data chunks - it is up to you to add your own data-payload-CRC in the data you write.
-Amanda
Thanks, Amanda, for your response.
1. I am not wanted to added data payload CRC, but if we want to verify the SDK data manually before initializing the Bluetooth and after flash initialization. How can we verify NVS?
2. Requesting you to provide the API list which we can use to verify the NVS before initilization.
Hi AmandaH,
As you told the NVS data is verified during initialization, could you please walk me to the api's or logic where the nvs is validated while initializing.
Hi AmandaH,
As you told the NVS data is verified during initialization, could you please walk me to the api's or logic where the nvs is validated while initializing.