From b1e7c410e74bcdcb2c816981de731b989104bccc Mon Sep 17 00:00:00 2001 From: Our Air Quality Date: Thu, 1 Mar 2018 18:12:32 +1100 Subject: [PATCH] Disable the low icache for some examples, to gain more malloc heap. --- examples/aws_iot/Makefile | 3 +++ examples/http_get_bearssl/Makefile | 3 ++- examples/http_get_mbedtls/Makefile | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/aws_iot/Makefile b/examples/aws_iot/Makefile index 677148a6..42a15fdc 100644 --- a/examples/aws_iot/Makefile +++ b/examples/aws_iot/Makefile @@ -1,3 +1,6 @@ PROGRAM=aws_iot EXTRA_COMPONENTS = extras/paho_mqtt_c extras/mbedtls + +EXTRA_CFLAGS += -DESP8266_ENABLE_LOW_ICACHE=0 + include ../../common.mk diff --git a/examples/http_get_bearssl/Makefile b/examples/http_get_bearssl/Makefile index 5f0b736f..cadff933 100644 --- a/examples/http_get_bearssl/Makefile +++ b/examples/http_get_bearssl/Makefile @@ -1,6 +1,7 @@ PROGRAM=http_get_bearssl EXTRA_COMPONENTS = extras/bearssl -EXTRA_CFLAGS +=-DCONFIG_EPOCH_TIME=$(shell date --utc '+%s') +EXTRA_CFLAGS += -DESP8266_ENABLE_LOW_ICACHE=0 +EXTRA_CFLAGS += -DCONFIG_EPOCH_TIME=$(shell date --utc '+%s') include ../../common.mk diff --git a/examples/http_get_mbedtls/Makefile b/examples/http_get_mbedtls/Makefile index 7e7a4322..ff44b847 100644 --- a/examples/http_get_mbedtls/Makefile +++ b/examples/http_get_mbedtls/Makefile @@ -1,4 +1,6 @@ PROGRAM=http_get_mbedtls EXTRA_COMPONENTS = extras/mbedtls +EXTRA_CFLAGS += -DESP8266_ENABLE_LOW_ICACHE=0 + include ../../common.mk