Searched refs:FLASH_SECTOR_SIZE_IN_BYTES (Results 1 – 5 of 5) sorted by relevance
16 #define FLASH_SECTOR_SIZE_IN_BYTES 4096 macro17 #define OTA_DATA_BUFFER_SIZE_FOR_BURNING FLASH_SECTOR_SIZE_IN_BYTES18 #define INTERACTION_OTA_NORFLASH_BUFFER_LEN (FLASH_SECTOR_SIZE_IN_BYTES*2)66 uint32_t upgradeSize[(FLASH_SECTOR_SIZE_IN_BYTES - 8) / 4];
19 #define FLASH_SECTOR_SIZE_IN_BYTES 4096 macro20 #define OTA_DATA_BUFFER_SIZE_FOR_BURNING FLASH_SECTOR_SIZE_IN_BYTES
295 uint16_t start_sec = (addr / FLASH_SECTOR_SIZE_IN_BYTES);296 uint16_t end_sec = ((addr + size - 1) / FLASH_SECTOR_SIZE_IN_BYTES);298 if (addr % FLASH_SECTOR_SIZE_IN_BYTES != 0) {308 ret = hal_norflash_erase(HAL_NORFLASH_ID_0, start_addr, FLASH_SECTOR_SIZE_IN_BYTES);313 start_addr += FLASH_SECTOR_SIZE_IN_BYTES;
84 uint8_t buffer[FLASH_SECTOR_SIZE_IN_BYTES] = {0}; in ota_set_bootinfo()110 ret = hal_norflash_erase(HAL_NORFLASH_ID_0, start_addr, FLASH_SECTOR_SIZE_IN_BYTES); in ota_set_bootinfo()116 ret = hal_norflash_write(HAL_NORFLASH_ID_0, start_addr, buffer, FLASH_SECTOR_SIZE_IN_BYTES); in ota_set_bootinfo()
17 #define FLASH_SECTOR_SIZE_IN_BYTES 4096 macro
Completed in 12 milliseconds