mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Flatten mem stats
This commit is contained in:
1 parent
de037d6ef9
commit
069024b41c
17 files changed
+347
-260
No files matched your search
@@ -1,25 +1,22 @@
|
||||
THISDIR = $(realpath $(CURDIR))
|
||||
ROOTDIR = $(realpath $(CURDIR)/../../..)
|
||||
DOCKER ?= docker run --rm $(DA) -v $(ROOTDIR):$(ROOTDIR) -w $(THISDIR) espressif/idf
|
||||
CMD ?= idf.py -DCFLAGS_EXTRA="$(CFLAGS_EXTRA)" build
|
||||
ARCH ?= esp32
|
||||
PORT ?= /dev/ttyUSB0
|
||||
|
||||
CFLAGS_EXTRA ?= -DMG_TLS=MG_TLS_BUILTIN
|
||||
|
||||
all: example
|
||||
|
||||
example:
|
||||
true
|
||||
|
||||
build: Makefile $(wildcard main/*)
|
||||
$(DOCKER) $(CMD)
|
||||
test -d build || $(DOCKER) idf.py set-target $(ARCH)
|
||||
$(DOCKER) idf.py build
|
||||
|
||||
flash:
|
||||
flash: CMD = idf.py flash
|
||||
flash: DA = --device $(PORT)
|
||||
flash: build
|
||||
cd build && esptool --chip $(ARCH) --baud 460800 --port $(PORT) write-flash @flash_args
|
||||
|
||||
clean:
|
||||
test -d build && $(DOCKER) rm -rf build sdkconfig || true
|
||||
test -d build && (rm -rf build sdkconfig || true)
|
||||
|
||||
.PHONY: build
|
||||
@@ -1,3 +1,16 @@
|
||||
#define MG_ARCH MG_ARCH_ESP32
|
||||
|
||||
// Crash reports and mem usage stats
|
||||
// Make sure to add to sdkconfig.defaults the following:
|
||||
// CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
|
||||
// CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y
|
||||
// CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=16
|
||||
// CONFIG_ESP_COREDUMP_STACK_SIZE=2048
|
||||
// CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
|
||||
#define MG_ENABLE_HEALTH 1
|
||||
|
||||
// mdash.net device management support, https://mongoose.ws/docs/guides/mdash/
|
||||
#define MG_ENABLE_MDASH 0
|
||||
#define MG_MDASH_KEY "..."
|
||||
#define MG_FIRMWARE_VERSION "esp32_min.1.0.0"
|
||||
#define MG_TLS MG_TLS_BUILTIN
|
||||
@@ -5,3 +5,5 @@ CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
|
||||
CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=16
|
||||
CONFIG_ESP_COREDUMP_STACK_SIZE=2048
|
||||
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
|
||||
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
|
||||
Reference in new issue
Block a user