Are the virtual page sizes only allowed to be 1024 and 2048 for the nRF52840?
// This is a multiple of the physical page size. Is this allowed or not?
// <i> Expressed in number of 4-byte words.// <i> By default, a virtual page is the same size as a physical page.// <i> The size of a virtual page must be a multiple of the size of a physical page.// <1024=> 1024 // <2048=> 2048
#define FDS_VIRTUAL_PAGE_SIZE (1024*3)
The nRF52840 has 4kB flash pages, and a virtual page must be an integer multiple of a physical page size.
It is is not limited to 1024 and 2048.
The comment in SDK seems off. Must be a leftover from older NRF51 stuff.
My NRF52840 here has 4KB code pages, but FDS works here with 1KB virtual page size. Please disregard my previous post!