23 0x00000000, 0x00002000, 0x00004000, 0x00006000, 0x00008000,
24 0x00010000, 0x00020000, 0x00030000, 0x00040000, 0x00050000,
25 0x00060000, 0x00070000, 0x00080000, 0x00090000, 0x000A0000,
26 0x000B0000, 0x000C0000, 0x000D0000, 0x000E0000, 0x000F0000,
27 0x00100000, 0x00102000, 0x00104000, 0x00106000, 0x00108000,
28 0x00110000, 0x00120000, 0x00130000, 0x00140000, 0x00150000,
29 0x00160000, 0x00170000, 0x00180000,
67 if (sectorStart < (address +
size) && sectorEnd >= address) {
69 return FLASH_RETURN_BAD_FLASH;
72 size_t sectorSize = sectorEnd - sectorStart + 1;
73 if (flashIsErased(sectorStart, sectorSize) == FALSE)
74 return FLASH_RETURN_BAD_FLASH;
bool intFlashCompare(flashaddr_t address, const char *buffer, size_t size)
Check if the data in buffer are identical to the one in flash memory.