esp-idf/components/esp32
Mahavir Jain b3aff63db4 app_update: fix intermittent failure with firmware updates
Routine `spi_flash_cache2phys` sometimes return incorrect value,
resulting in failure in getting currently running ota partition.
This in turn aborts firmware update process.This issue was more
prominent with SPIRAM enabled cases.

Fix ensures proper cache guards during `spi_flash_cache2phys`, and
also for few other similar APIs.

In addition, `esp_ota_get_running_partition` has also been optimized
to save currently running partition for subsequent invocations.

Fixes https://github.com/espressif/esp-idf/issues/2451
2018-10-18 04:38:31 +00:00
..
hwcrypto nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
include app_update: fix intermittent failure with firmware updates 2018-10-18 04:38:31 +00:00
ld Merge branch 'feature/bss_seg_in_external_memory' into 'master' 2018-10-10 14:40:21 +08:00
lib@5b468952c7 mesh: fix a bug in generating ESP-SSID IE 2018-10-17 17:52:29 +08:00
test Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
brownout.c esp32: add API to get reset reason 2018-08-20 16:49:20 +08:00
cache_err_int.c esp32: fix cache error interrupt handler 2017-09-08 09:59:09 +08:00
cache_sram_mmu.c Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
clk.c bootloader_support: Fix enable rtc_wdt for resolve issue with varying supply 2018-09-03 05:43:01 +00:00
CMakeLists.txt Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
coexist_internal.h component/esp32 : clear some minor thingsw about PM and coexistence 2018-04-03 20:13:49 +08:00
coexist.c component/esp32 : clear some minor thingsw about PM and coexistence 2018-04-03 20:13:49 +08:00
component.mk doc: update document of external memory 2018-09-26 10:39:57 +08:00
core_dump.c coredump: Fixes exception stack frame structure indicator 2018-07-05 22:20:20 +03:00
cpu_start.c Merge branch 'feature/bss_seg_in_external_memory' into 'master' 2018-10-10 14:40:21 +08:00
crosscore_int.c esp32: Move esp_crosscore_isr_handle_yield() to IRAM 2018-06-13 11:36:15 +10:00
dbg_stubs.c esp32: Adds GCOV debug stubs support 2018-05-18 16:16:03 +03:00
dport_access.c dport: Bigfix dport_read code move to IRAM 2018-05-21 22:00:51 +05:00
dport_panic_highint_hdl.S xtensa: remove unused header files 2018-05-31 02:21:36 +00:00
esp_clk_internal.h bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC 2018-03-21 13:27:56 +05:00
esp_err_to_name.c Merge branch 'bugfix/lwip_compat_headers' into 'master' 2018-09-27 11:21:37 +08:00
esp_err_to_name.c.in esp32: esp_err_to_name_r: print error code as hex and decimal 2018-06-15 15:49:23 +08:00
esp_himem.c Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
esp_system_internal.h esp32: add API to get reset reason 2018-08-20 16:49:20 +08:00
esp_timer_esp32.c Fixed typos on booleans. 2018-07-09 14:36:06 +08:00
esp_timer_impl.h sleep: fix deadlock in esp_timer_impl_advance after light sleep 2018-05-09 22:52:50 +08:00
esp_timer.c Merge branch 'bugfix/light_sleep_fixes' into 'master' 2018-05-02 20:09:36 +08:00
ets_timer_legacy.c wifi/bt coexistence: Fix disabled cache access race when writing to flash 2017-10-16 19:47:33 +08:00
event_default_handlers.c esp32: fix the bug that SYSTEM_EVENT_STA_GOT_IP is forbidden when gateway is 0.0.0.0 2018-09-06 14:52:04 +08:00
event_loop.c add mesh feature 2018-04-04 22:57:45 +08:00
fast_crypto_ops.c esp32/wpa_supplicant: fix some bugs introduced by wifi os adapter 2018-05-31 17:09:40 +08:00
freertos_hooks.c esp32: fix regression introduced in automatic light sleep pm 2018-09-26 08:52:15 +05:30
gdbstub.c Resolve problems found by enabling -Wwrite-strings compilation flag 2018-04-10 08:53:43 +02:00
hw_random.c esp32: Add esp_fill_random() function 2018-09-03 04:39:45 +00:00
int_wdt.c Dump the frame of the other core when interrupt watchdog happens 2018-01-18 23:10:29 +00:00
intr_alloc.c driver(interrupt): fix the issue that interrupt might be allocated and freed on different cores 2018-09-26 10:31:09 +08:00
ipc.c ipc: fix esp_ipc_call_blocking to return after callback execution is completed 2018-09-07 14:19:35 +05:30
Kconfig Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
lib_printf.c component/esp32 : clear some minor thingsw about PM and coexistence 2018-04-03 20:13:49 +08:00
libhal.a Initial public version 2016-08-17 23:08:22 +08:00
Makefile.projbuild Merge branch 'feature/expansion_space_for_bootloader' into 'master' 2018-06-18 12:34:53 +08:00
panic.c esp32: Add macro to check a condition without abort 2018-10-09 08:57:23 +02:00
phy_init_data.h Merge branch 'master' into feature/cmake 2018-09-05 10:35:04 +08:00
phy_init.c esp32: fix WiFi timer inaccurate bug 2018-10-17 09:47:25 +08:00
phy.h esp32: some changes relating to phy v3900 2018-05-22 14:16:09 +08:00
pm_esp32.c esp32: fix regression introduced in automatic light sleep pm 2018-09-26 08:52:15 +05:30
pm_impl.h esp32: fix regression introduced in automatic light sleep pm 2018-09-26 08:52:15 +05:30
pm_locks.c pm: initial version of power management APIs 2017-10-18 14:19:16 +08:00
pm_trace.c freertos,esp32: automatic light sleep support 2018-05-18 03:14:46 +00:00
pm_trace.h freertos,esp32: automatic light sleep support 2018-05-18 03:14:46 +00:00
reset_reason.c reset_reason: fix setting wake stub entry point to 0x80000000 2018-08-27 19:01:03 +08:00
restore.c esp_system: remove link time dependency on WiFi stack 2017-06-15 18:15:36 +08:00
sleep_modes.c uart: fix uart_tx_wait_idle to wait for fifo empty 2018-10-15 20:08:16 +08:00
spiram_psram.c bugfix(psram): fix psram driver 2018-10-08 19:55:13 +08:00
spiram_psram.h bugfix(psram): fix psram driver 2018-10-08 19:55:13 +08:00
spiram.c Spiram: Add option to reserve MMU banks; add himem API to make use of those banks 2018-10-15 14:32:58 +08:00
stack_check.c esp32: Adds Stack Smashing Protection Feature 2017-11-17 12:08:36 +03:00
system_api.c defination: fix the bug that esp_derive_local_mac() defination missing 2018-09-05 14:36:37 +08:00
task_wdt.c esp32: Add macro to check a condition without abort 2018-10-09 08:57:23 +02:00
wifi_init.c wifi: Set default wifi library log level based on sdkconfig 2018-05-02 15:11:21 +10:00
wifi_os_adapter.c Add OS adapter to WiFi driver 2018-05-26 17:22:23 +08:00