diff --git a/components/esp32/ld/esp32.ld b/components/esp32/ld/esp32.ld index b27a49eeb..2df1b3e89 100644 --- a/components/esp32/ld/esp32.ld +++ b/components/esp32/ld/esp32.ld @@ -16,6 +16,11 @@ */ #include "sdkconfig.h" +/* If BT is not built at all */ +#ifndef CONFIG_BT_RESERVE_DRAM +#define CONFIG_BT_RESERVE_DRAM 0 +#endif + MEMORY { /* All these values assume the flash cache is on, and have the blocks this uses subtracted from the length