From c42975f28f11b4b4c240ea5d0f46e74823303e7b Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Thu, 5 Jul 2018 14:31:30 +0800 Subject: [PATCH] feat(freertos): Enable cache when panic Some function may disable cache. --- components/freertos/port/esp8266/panic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/freertos/port/esp8266/panic.c b/components/freertos/port/esp8266/panic.c index e79fcefc..c35b1843 100644 --- a/components/freertos/port/esp8266/panic.c +++ b/components/freertos/port/esp8266/panic.c @@ -89,6 +89,9 @@ static void IRAM_ATTR panic_stack(StackType_t *start, StackType_t *end) */ void IRAM_ATTR panicHandler(void *frame) { + // for panic the function that disable cache + Cache_Read_Enable_New(); + int *regs = (int *)frame; int x, y; const char *sdesc[] = {