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

FDS error in FDS_VIRTUAL_PAGE_SIZE 1024 ?? (NRF51)

FDS error in FDS_VIRTUAL_PAGE_SIZE 1024 ?? (NRF51)

github.com/.../nRF52-fds-example

If I use FDS_VIRTUAL_PAGES 3, FDS_VIRTUAL_PAGE_SIZE 1024, then there comes FDS_ERR_BUSY. DO I HAVE TO GIVE DELAY BETWEEN fds_register fds_init??

(I'd like to save about 3KB size Structure. So, PAGE_SIZE(1024)*4byte = 4KB might be needed.)

(This Error doesn't occurs in FDS_VIRTUAL_PAGE_SIZE 512. Why this error happens?) (I've initialized FDS same as upper github example.)

My SDK is v12.2.0

(ps. how can I manually reset fds's record_desc.record_id of fds_record_desc_t?)
it's type is uint32_t, and it's increasing infinitely when I run this.
how can I reset this record_id to 0 ??

  • Yeah, I've calculated as it is, from here : devzone.nordicsemi.com/.../

    and the code is 56kb, + Softdevice 107 kb so there will be more than 12kb space. (nRF51QFAC)

    and also, I thought If I set more size than the available size, than My FDS Pages will overwrite the code section. So in this point of view, Setting more than available size might occur errors with my source code, but It works well! (well I'm not sure it's running well, but I thought there might be some problem with running source code, so It might not be run at all but it works a bit.)

  • If you are positive that you have enough space, then you could try to use the fds implementation found in 12.3 or 13, which contains some minor fixes. I don't believe it will solve your problem but it might provide a more detailed error code that could help us to debug this issue. Also, fds will not overwrite any existing data in flash even if you configure it to use more space than what is available.

  • oh, thanks for the help!!.

    I have another question,

    Also, fds will not overwrite any existing data in flash even if you configure it to use more space than what is available.

    does this means, that FDS Size will not be configured as I setted? or is it just safe Before I access the code Size of the Flash?

Related