This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

About The API Of flash_manager for MESH 3.10

Hi

I am having a problem now(maybe a bug).I refer to nest_state.c and access.c build my user_flash.

But some time,when I reset device,write data to flah will be fail.

If repeatedly reset.when my load user data,will read some data from handle 0x220.But in fact I have not use this handle.

So,there are two problems:

1.When I calling function flash_manager_entry_alloc() AND flash_manager_entry_commit(), some time will be fail (In fact, it alternates, first reset will write success, the second reset wile write fail, the third reset will success).

2.if my write data success(handle value 0x0001), reset again and again, the function flash_manager_entries_read(), will callback the data from handle 0x220.

Attach my code of user_flash.c & user_flash.h

user_flash.h