Searched refs:otadata (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-3.7.0/components/bootloader_support/src/ |
D | bootloader_utility.c | 286 static esp_err_t write_otadata(esp_ota_select_entry_t *otadata, uint32_t offset, bool write_encrypt… in write_otadata() argument 290 … err = bootloader_flash_write(offset, otadata, sizeof(esp_ota_select_entry_t), write_encrypted); in write_otadata() 357 esp_ota_select_entry_t otadata[2]; local 364 if (read_otadata(&bs->ota_info, otadata) != ESP_OK) { 369 ESP_LOGD(TAG, "otadata[0]: sequence values 0x%08"PRIx32, otadata[0].ota_seq); 370 ESP_LOGD(TAG, "otadata[1]: sequence values 0x%08"PRIx32, otadata[1].ota_seq); 375 if (otadata[i].ota_state == ESP_OTA_IMG_PENDING_VERIFY) { 377 otadata[i].ota_state = ESP_OTA_IMG_ABORTED; 378 … write_otadata(&otadata[i], bs->ota_info.offset + FLASH_SECTOR_SIZE * i, write_encrypted); 384 if ((bootloader_common_ota_select_invalid(&otadata[0]) && [all …]
|