lib/third_party/mcu_vendor/espressif/esp-idf/components/bootloader_support/src/bootloader_utility.c
/* Return true if a partition has a valid app image that was successfully loaded */
Return true if a partition has a valid app image that was successfully loaded
Return true if a partition has a valid app image that was successfully loaded
static bool try_load_partition(const esp_partition_pos_t *partition, esp_image_metadata_t *data)
{
    if (partition->size == 0) {
        ESP_LOGD(TAG, "Can't boot from zero-length partition");
        return false;
    }
#ifdef BOOTLOADER_BUILD
    if (esp_image_load(ESP_IMAGE_LOAD, partition, data) == ESP_OK) {
        ESP_LOGI(TAG, "Loaded app from partition at offset 0x%x",
                 partition->offset);
        return true;
    }
#endif
    return false;
}
static bool try_load_partition ( const esp_partition_pos_t * partition , esp_image_metadata_t * data ) { if ( partition -> size == 0 ) { ESP_LOGD ( TAG , " " ) ; return false ; } #ifdef BOOTLOADER_BUILD if ( esp_image_load ( ESP_IMAGE_LOAD , partition , data ) == ESP_OK ) { ESP_LOGI ( TAG , " " , partition -> offset ) ; return true ; } #endif return false ; }
Return true if a partition has a valid app image that was successfully loaded
Return true if a partition has a valid app image that was successfully loaded