Skip to content

Commit ed55004

Browse files
authored
Include ESP-Insights component for esp32 target (#99)
* Added esp-insights to esp32 target build * Enabled coredump partition for esp-insights * Disabled ESP-Insights debug
1 parent d97e0ed commit ed55004

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# CMakeLists in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.5)
44

5-
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/components/esp-rainmaker/components)
5+
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/components/esp-rainmaker/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)
66

77
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
88
project(arduino-lib-builder)

configs/builds.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"target": "esp32",
101-
"features":["qio_ram"],
101+
"features":["qio_ram","insights"],
102102
"idf_libs":["qio","80m"],
103103
"bootloaders":[
104104
["qio","80m"],

configs/defconfig.insights

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
CONFIG_ESP_INSIGHTS_ENABLED=y
2+
# CONFIG_ESP_INSIGHTS_DEBUG_ENABLED is not set
3+
CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE=y
4+
# CONFIG_ESP_INSIGHTS_TRANSPORT_MQTT is not set
5+
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS=y
6+
7+
CONFIG_DIAG_ENABLE_METRICS=y
8+
CONFIG_DIAG_ENABLE_WIFI_METRICS=y
9+
CONFIG_DIAG_ENABLE_HEAP_METRICS=y
10+
CONFIG_DIAG_ENABLE_VARIABLES=y
11+
CONFIG_DIAG_ENABLE_NETWORK_VARIABLES=y
12+
13+
CONFIG_ESP32_ENABLE_COREDUMP=y
14+
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y
15+
CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF=y
16+
CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32=y
17+
CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM=64
18+
CONFIG_ESP32_CORE_DUMP_STACK_SIZE=1024
19+
20+
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y
21+
CONFIG_MBEDTLS_DYNAMIC_FREE_PEER_CERT=y
22+
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
23+
24+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
25+
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
26+
CONFIG_PARTITION_TABLE_OFFSET=0x8000
27+
CONFIG_PARTITION_TABLE_MD5=y

tools/update-components.sh

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
66
DL_REPO_URL="https://github.com/espressif/esp-dl.git"
77
SR_REPO_URL="https://github.com/espressif/esp-sr.git"
88
RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
9+
INSIGHTS_REPO_URL="https://github.com/espressif/esp-insights.git"
910
DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
1011
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
1112
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
@@ -121,6 +122,20 @@ else
121122
fi
122123
if [ $? -ne 0 ]; then exit 1; fi
123124

125+
#
126+
# CLONE/UPDATE ESP-INSIGHTS
127+
#
128+
129+
if [ ! -d "$AR_COMPS/esp-insights" ]; then
130+
git clone $INSIGHTS_REPO_URL "$AR_COMPS/esp-insights" && \
131+
git -C "$AR_COMPS/esp-insights" submodule update --init --recursive
132+
else
133+
git -C "$AR_COMPS/esp-insights" fetch && \
134+
git -C "$AR_COMPS/esp-insights" pull --ff-only && \
135+
git -C "$AR_COMPS/esp-insights" submodule update --init --recursive
136+
fi
137+
if [ $? -ne 0 ]; then exit 1; fi
138+
124139
#
125140
# CLONE/UPDATE ESP-DSP
126141
#

0 commit comments

Comments
 (0)