hi. I have a small question about FDS
As for the setting of page, we intend to use 8k bytes memory to store data, so how should page be set?Should FDS_VIRTUAL_PAGES be set to 2?
This is the space distribution diagram of our products.
hi. I have a small question about FDS
As for the setting of page, we intend to use 8k bytes memory to store data, so how should page be set?Should FDS_VIRTUAL_PAGES be set to 2?
This is the space distribution diagram of our products.
Hi,
As for the setting of page, we intend to use 8k bytes memory to store data, so how should page be set?Should FDS_VIRTUAL_PAGES be set to 2?
Yes, this is correct.
Kind regards,
Håkon
Thank you alseth!
When i set FDS_VIRTUAL_PAGES to 2,do I need to modify the corresponding parameters in the bootloader? I remember in SDK11 you had to tell the bootloader how much flash space the application had?
Like SDK11:Set the macro“DFU_APP_DATA_RESERVED”in bootloader to be 3 pages.
Hi,
kenyon said:When i set FDS_VIRTUAL_PAGES to 2,do I need to modify the corresponding parameters in the bootloader? I remember in SDK11 you had to tell the bootloader how much flash space the application had?
Yes, that is correct. in your bootloaders sdk_config.h, you should set the corresponding "NRF_DFU_APP_DATA_AREA_SIZE" to the total size of FDS.
Please note that "NRF_DFU_APP_DATA_AREA_SIZE" is given in bytes, as compared to the FDS. '8192' should be the value you define if FDS is setup with 2 flash pages (2*1024*4bytes = 8192)
Kind regards,
Håkon
Hi Håkon
The following is a Memory Map of SDK11. I would like to know in SDK17.1, I allocated 8KB of User Data to Flash Data Storage(), where the Device Manager was allocated?
Will the User Data be occupied by flash and not allocated to the Device Manager, resulting in program problems?
Best Regard
Kenyon
Hi Kenyon,
kenyon said:I allocated 8KB of User Data to Flash Data Storage(), where the Device Manager was allocated?
You should erase the two pages in question before giving them to the FDS library. If not, it will return an error that there is data within the page(s).
Kind regards,
Håkon
Hi Håkon
What I want to express is: how to allocate the space of Device Manager? If 8kb of space is allocated to Flash Data Storage, will there be no spare space for Device Manager?
Regards
Kenyon
Hi Håkon
What I want to express is: how to allocate the space of Device Manager? If 8kb of space is allocated to Flash Data Storage, will there be no spare space for Device Manager?
Regards
Kenyon
Hi,
Do you mean peer_manager?
Peer manager uses FDS as a backend:
https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_pm_architecture.html?cp=9_1_3_2_7_0
Kind regards,
Håkon