summaryrefslogtreecommitdiff
path: root/ports/esp32/sdkconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-11-28 15:00:45 +1100
committerDamien George <damien.p.george@gmail.com>2018-11-28 15:00:45 +1100
commit485514f57a7e629abf6b23e5ee7e2d5dc7cdf238 (patch)
tree90cba185a7f8a3e46e55822bb8324e4247a553f3 /ports/esp32/sdkconfig.h
parent0233049b794d8ed45f1f8dbaffb30e6b78aabb7e (diff)
esp32: Allocate task TCB and stack from system heap not uPy heap.
This is necessary for two reasons: 1) FreeRTOS still needs the TCB data structure even after vPortCleanUpTCB has been called, so this latter hook function cannot free the TCB, and there is no where else to safely delete it (this behaviour has changed recently in the ESP IDF); 2) when using external SPI RAM the uPy heap is in this external memory but the task stack must be allocated from internal SRAM. Fixes issue #3904.
Diffstat (limited to 'ports/esp32/sdkconfig.h')
-rw-r--r--ports/esp32/sdkconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/sdkconfig.h b/ports/esp32/sdkconfig.h
index 5c6a4c899..ba2930bca 100644
--- a/ports/esp32/sdkconfig.h
+++ b/ports/esp32/sdkconfig.h
@@ -57,7 +57,7 @@
#define CONFIG_SPIRAM_MEMTEST 1
#define CONFIG_SPIRAM_USE_MALLOC 1
#define CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL 32768
-#define CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY 1
+#define CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY 0
#endif
#define CONFIG_FOUR_MAC_ADDRESS_FROM_EFUSE 1