]> granicus.if.org Git - esp-idf/commitdiff
Fix int wdt iram, fix some fallout of moving panic stuff to esp32
authorJeroen Domburg <git@j0h.nl>
Fri, 28 Oct 2016 04:05:42 +0000 (12:05 +0800)
committerJeroen Domburg <git@j0h.nl>
Fri, 28 Oct 2016 04:05:42 +0000 (12:05 +0800)
components/esp32/Kconfig
components/esp32/int_wdt.c
components/freertos/FreeRTOS-openocd.c
components/freertos/Kconfig

index 9e141529be204e80989b8dbbfab3d6f9c015e117..3b50dbd2c34bf765177123470d4af1b3994250e4 100644 (file)
@@ -157,7 +157,7 @@ config ULP_COPROC_RESERVE_MEM
 
 choice ESP32_PANIC
     prompt "Panic handler behaviour"
-    default FREERTOS_PANIC_PRINT_REBOOT
+    default ESP32_PANIC_PRINT_REBOOT
     help
         If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is 
         invoked. Configure the panic handlers action here.
index 93a4d9fe62b0713b5094a83e4d09f7b550b821cf..11de8f20d2c6a8e7196a6a9f5ab60aa072d0c88b 100644 (file)
@@ -24,6 +24,7 @@
 #include <esp_types.h>
 #include "esp_err.h"
 #include "esp_intr.h"
+#include "esp_attr.h"
 #include "soc/timer_group_struct.h"
 #include "soc/timer_group_reg.h"
 
@@ -66,7 +67,7 @@ void esp_int_wdt_init() {
 //Not static; the ISR assembly checks this.
 bool int_wdt_app_cpu_ticked=false;
 
-void vApplicationTickHook(void) {
+void IRAM_ATTR vApplicationTickHook(void) {
     if (xPortGetCoreID()!=0) {
         int_wdt_app_cpu_ticked=true;
     } else {
@@ -82,7 +83,7 @@ void vApplicationTickHook(void) {
     }
 }
 #else
-void vApplicationTickHook(void) {
+void IRAM_ATTR vApplicationTickHook(void) {
     if (xPortGetCoreID()!=0) return;
     TIMERG1.wdt_wprotect=TIMG_WDT_WKEY_VALUE;
     TIMERG1.wdt_config2=CONFIG_INT_WDT_TIMEOUT_MS*2;        //Set timeout before interrupt
index 6177f02057e759e13d19986c196d324e17951072..d74564495eafb449c13b5fe42eae2ce10d12f412 100644 (file)
@@ -18,6 +18,6 @@
 #define USED
 #endif
 
-#ifdef CONFIG_FREERTOS_DEBUG_OCDAWARE
+#ifdef CONFIG_ESP32_DEBUG_OCDAWARE
 const int USED uxTopUsedPriority = configMAX_PRIORITIES - 1;
 #endif
\ No newline at end of file
index 413c710d22fe7ef85acff24cd418bd14c4643c50..25d5581e80010c1e7d091176be6aeb86bb37c9f8 100644 (file)
@@ -121,7 +121,7 @@ endchoice
 
 config FREERTOS_BREAK_ON_SCHEDULER_START_JTAG
     bool "Stop program on scheduler start when JTAG/OCD is detected"
-    depends on FREERTOS_DEBUG_OCDAWARE
+    depends on ESP32_DEBUG_OCDAWARE
     default y
     help
         If JTAG/OCD is connected, stop execution when the scheduler is started and the first