mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/bootloader_error_handling_code' into 'master'
Add error handling code in bootloader Forgotten error handling See merge request !650
This commit is contained in:
commit
8a9516a973
@ -107,7 +107,12 @@ const void *bootloader_mmap(uint32_t src_addr, uint32_t size)
|
|||||||
Cache_Read_Disable(0);
|
Cache_Read_Disable(0);
|
||||||
Cache_Flush(0);
|
Cache_Flush(0);
|
||||||
ESP_LOGD(TAG, "mmu set paddr=%08x count=%d", src_addr_aligned, count );
|
ESP_LOGD(TAG, "mmu set paddr=%08x count=%d", src_addr_aligned, count );
|
||||||
cache_flash_mmu_set( 0, 0, MMU_BLOCK0_VADDR, src_addr_aligned, 64, count );
|
int e = cache_flash_mmu_set(0, 0, MMU_BLOCK0_VADDR, src_addr_aligned, 64, count);
|
||||||
|
if (e != 0) {
|
||||||
|
ESP_LOGE(TAG, "cache_flash_mmu_set failed: %d\n", e);
|
||||||
|
Cache_Read_Enable(0);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
Cache_Read_Enable(0);
|
Cache_Read_Enable(0);
|
||||||
|
|
||||||
mapped = true;
|
mapped = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user