From 475a746e4670f032f54b6ad680f7f001b607e46c Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 31 Oct 2019 15:19:17 +1100 Subject: [PATCH] bt: Include DMA reserved pool when allocating internal-only memory Fix for root cause of https://github.com/espressif/esp-idf/issues/3592 --- components/bt/controller/bt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/controller/bt.c b/components/bt/controller/bt.c index 8a14e5a783..8435f09a1b 100644 --- a/components/bt/controller/bt.c +++ b/components/bt/controller/bt.c @@ -767,7 +767,7 @@ static int IRAM_ATTR cause_sw_intr_to_core_wrapper(int core_id, int intr_no) static void *malloc_internal_wrapper(size_t size) { - return heap_caps_malloc(size, MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL); + return heap_caps_malloc(size, MALLOC_CAP_8BIT|MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL); } static int32_t IRAM_ATTR read_mac_wrapper(uint8_t mac[6])