Other Parts Discussed in Thread: Z-STACK
Tool/software: TI C/C++ Compiler
Hi,
Is it possible to read NV id to see if it contain data?
I mean if we only do reading from NV id without any initializing from past, it will give some type of random values (mostly zeros?), and will have the data when we write to it.
This is what im trying to do;
osal_nv_read(ZCD_NV_PUBLIC_KEY_283, 0, PUBLIC_KEY_LENGTH, PublicKeyBuffer); <-- data in that nv id is written to publickeybuffer
OsalPort_memcmp(PublicKeyBuffer, tmp, sizeof(PublicKeyBuffer); <-- here I want to see if that publickeybuffer, nv, has been initialized before or empty..
To simply; Use Api to check if NV item contain useful data or has not been initialized yet.
Regards,
Hamza