partition_table: Move from 0x4000 to 0x8000

Also fix a bug with correctly padding bootloader image when length is
already a multiple of 16.
This commit is contained in:
Angus Gratton
2016-11-07 14:35:23 +11:00
parent 64f3893cb9
commit 7402a1b973
4 changed files with 14 additions and 6 deletions

View File

@@ -94,11 +94,11 @@ void bootloader_unmap(const void *mapping)
esp_err_t bootloader_flash_read(size_t src_addr, void *dest, size_t size)
{
if(src_addr & 3) {
ESP_LOGE(TAG, "bootloader_flash_read src_addr not 4-byte aligned");
ESP_LOGE(TAG, "bootloader_flash_read src_addr 0x%x not 4-byte aligned", src_addr);
return ESP_FAIL;
}
if((intptr_t)dest & 3) {
ESP_LOGE(TAG, "bootloader_flash_read dest not 4-byte aligned");
ESP_LOGE(TAG, "bootloader_flash_read dest 0x%x not 4-byte aligned", (intptr_t)dest);
return ESP_FAIL;
}