Hello,
I want to try out the FDS according to this article.
My base project is the ble_app_uart (periph) from the SDK13 and I am using PCA10040 DK.
I enabled the FSTORAGE and FDS in the sdk_config.h, and I did everything else according to the mentioned article.
What I noticed is that the Init phase succeed (fds_register + fds_init), however I never get a callback from the fds_record_write function. Strangely the return value of this function is FDS_SUCCESS, I just dont get a callback with FDS_EVT_WRITE event. Of course afterwards I can't retrieve any data, the fds_record_find function finds nothing.
I tried this FDS example code with the SDK11 and it worked as expected.
One thing that I found is that in the mentioned article we want to reach the members of fds_record_t with the following names:
- record_key
- record_data.p_chunks
- record_data.num_chunks
but it should be only:
- key
- data.p_chunks
- data.num_chunks
Small thing, but should be corrected later.
Any help is much appreciated! Thanks, Adam