Hi,
I am using
- nRF52840
- SDK 15.3.0
- Keil IDE
- The soft device is S140
- JLinkRTTViewer for debug
Device has both Central & peripheral functions.
It takes about 15 seconds to erase flash 63 pages.
It takes too long to erase the flash 63 page in 15 seconds.
Below is the erase command I used.
uint32_t pages_to_erase = (size + 0xFFF) / 0x1000; // (1Sector = 0x1000 (4096) Bytes)
rc = nrf_fstorage_erase (
& fstorage, / * The instance to use. * /
addr, / * The address of the flash pages to erase. * /
pages_to_erase, / * The number of pages to erase. * /
NULL); / * Optional parameter, backend-dependent. * /
Please advise.