mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-03-30 08:52:11 +02:00
Fix esp32c3 build
This commit is contained in:
parent
bc4972c2ac
commit
233d6abe62
2 changed files with 8 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
default_envs = esp32devdbg
|
default_envs = esp32devdbg
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
platform = espressif32
|
platform = espressif32 @ 5.4.0
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps =
|
lib_deps =
|
||||||
bblanchon/ArduinoJson@^7.2.2
|
bblanchon/ArduinoJson@^7.2.2
|
||||||
|
|
@ -25,7 +25,7 @@ extra_scripts =
|
||||||
post:archive_elf.py
|
post:archive_elf.py
|
||||||
board_build.partitions = huge_app.csv
|
board_build.partitions = huge_app.csv
|
||||||
board_build.filesystem = littlefs
|
board_build.filesystem = littlefs
|
||||||
build_flags =
|
build_flags =
|
||||||
-DCORE_DEBUG_LEVEL=3
|
-DCORE_DEBUG_LEVEL=3
|
||||||
-DCONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=1
|
-DCONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=1
|
||||||
-DCONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=1
|
-DCONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=1
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ void setup() {
|
||||||
ESP_LOGW(TAG, "*** Previous crash coredump found ***");
|
ESP_LOGW(TAG, "*** Previous crash coredump found ***");
|
||||||
ESP_LOGW(TAG, " Task: %s", summary.exc_task);
|
ESP_LOGW(TAG, " Task: %s", summary.exc_task);
|
||||||
ESP_LOGW(TAG, " PC: 0x%08x", summary.exc_pc);
|
ESP_LOGW(TAG, " PC: 0x%08x", summary.exc_pc);
|
||||||
|
#ifdef CONFIG_IDF_TARGET_ARCH_XTENSA
|
||||||
ESP_LOGW(TAG, " Cause: %d", summary.ex_info.exc_cause);
|
ESP_LOGW(TAG, " Cause: %d", summary.ex_info.exc_cause);
|
||||||
char bt_buf[256] = {0};
|
char bt_buf[256] = {0};
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
@ -59,6 +60,11 @@ void setup() {
|
||||||
pos += snprintf(bt_buf + pos, sizeof(bt_buf) - pos, " 0x%08x", summary.exc_bt_info.bt[i]);
|
pos += snprintf(bt_buf + pos, sizeof(bt_buf) - pos, " 0x%08x", summary.exc_bt_info.bt[i]);
|
||||||
}
|
}
|
||||||
ESP_LOGW(TAG, " Backtrace:%s", bt_buf);
|
ESP_LOGW(TAG, " Backtrace:%s", bt_buf);
|
||||||
|
#elif CONFIG_IDF_TARGET_ARCH_RISCV
|
||||||
|
ESP_LOGW(TAG, " Cause: %d", summary.ex_info.mcause);
|
||||||
|
ESP_LOGW(TAG, " MTVAL: 0x%08x RA: 0x%08x SP: 0x%08x",
|
||||||
|
summary.ex_info.mtval, summary.ex_info.ra, summary.ex_info.sp);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
ESP_LOGI(TAG, "Mounting File System...");
|
ESP_LOGI(TAG, "Mounting File System...");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue