I wanna ask about this code. Why we use "memset" before read flash?. Must i create new token before read flash.
#define RECORD_KEY 0x2222
fds_flash_record_t flash_record;
fds_record_desc_t record_desc;
fds_find_token_t ftok;
/* It is required to zero the token before first use. */
memset(&ftok, 0x00, sizeof(fds_find_token_t));
/* Loop until all records with the given key and file ID have been found. */
{
{
/* Handle error. */
}
/* Access the record through the flash_record structure. */
/* Close the record when done. */
{
/* Handle error. */
}
}