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,
1. Does all the previous ates stored in nvs storage area are verified while initializing the nvs? If yes, could you direct me to the api/ part of code where this requirement is achieved?
2. What is the use of nvs_gc api ?
Hi,
vim_nordic said: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?
As I mention NVS doesn't implement CRC for data blocks - this need to be done as an improvement to NVS or be implemented in the NVS's data user module (settings backend).
vim_nordic said:Requesting you to provide the API list which we can use to verify the NVS before initilization.
NVS checks its metadata internally - no API for that.
-Amanda H.
Hi,
Akanksha said:Does all the previous ates stored in nvs storage area are verified while initializing the nvs? If yes, could you direct me to the api/ part of code where this requirement is achieved?
All ates get verified. Any ate which is invalid is skipped.
Akanksha said:What is the use of nvs_gc api ?
It is the garbage collection routine - it removes waste records and makes some room for new records
-Amanda H.
Hi Amanda,
We have mentioned queries,
1. As you mentioned in one of comments, SDK will have CRC verification for a block data as an improvement, is there any plan of getting this CRC verification anytime soon,

2. As there is no API to verify CRC for internal flash sector, where the device name, RPL entries, app key, network key & device key are getting stored post provisioning, how do we identify the failure in this sector of memory block if it is corrupted, as we can observe these all mentioned information is getting stored, is there any mechanism to identify failure in this memory chunk prior to enable BLE
3. Is there any api provided by SDK which we can call to check the failure in internal flash so that we can enable the corrective actions in our system.
Thank you,
Regards,
Hitesh
Hi,
Please contact your regional sales manager for the feature request. If you don't know who your RSM is or don't have their contact info you can get in touch with the RSM of your area by filling out the sales-related questions form here.
-Amanda H.
Hi,
Please contact your regional sales manager for the feature request. If you don't know who your RSM is or don't have their contact info you can get in touch with the RSM of your area by filling out the sales-related questions form here.
-Amanda H.