Skip to content

Commit edde413

Browse files
authored
Merge pull request #6 from cjkas/scz/123
Fix esp32c3 build & update release build tag
2 parents 508f717 + 89eb1b6 commit edde413

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ jobs:
5454
- name: Check out code
5555
uses: actions/checkout@v4
5656

57+
- name: Update version from release tag
58+
run: |
59+
VERSION="${{ github.event.release.tag_name }}"
60+
VERSION="${VERSION#v}"
61+
sed -i "s/#define FW_VERSION \"v[0-9.]*\"/#define FW_VERSION \"v${VERSION}\"/" src/ConfigSettings.h
62+
sed -i "s/^[0-9.].*/${VERSION}/" data-src/appversion
63+
sed -i "s/\?v=[0-9.]*c/?v=${VERSION}c/g" data-src/index.html
64+
sed -i "s/appVersion = 'v[0-9.]*'/appVersion = 'v${VERSION}'/" data-src/index.js
65+
5766
- name: Set up Python
5867
uses: actions/setup-python@v5
5968
with:

platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
default_envs = esp32devdbg
1313

1414
[env]
15-
platform = espressif32
15+
platform = espressif32 @ 5.4.0
1616
framework = arduino
1717
lib_deps =
1818
bblanchon/ArduinoJson@^7.2.2
@@ -25,7 +25,7 @@ extra_scripts =
2525
post:archive_elf.py
2626
board_build.partitions = huge_app.csv
2727
board_build.filesystem = littlefs
28-
build_flags =
28+
build_flags =
2929
-DCORE_DEBUG_LEVEL=3
3030
-DCONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=1
3131
-DCONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=1

src/SomfyController.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,19 @@ void setup() {
5252
ESP_LOGW(TAG, "*** Previous crash coredump found ***");
5353
ESP_LOGW(TAG, " Task: %s", summary.exc_task);
5454
ESP_LOGW(TAG, " PC: 0x%08x", summary.exc_pc);
55+
#ifdef CONFIG_IDF_TARGET_ARCH_XTENSA
5556
ESP_LOGW(TAG, " Cause: %d", summary.ex_info.exc_cause);
5657
char bt_buf[256] = {0};
5758
int pos = 0;
5859
for (int i = 0; i < summary.exc_bt_info.depth; i++) {
5960
pos += snprintf(bt_buf + pos, sizeof(bt_buf) - pos, " 0x%08x", summary.exc_bt_info.bt[i]);
6061
}
6162
ESP_LOGW(TAG, " Backtrace:%s", bt_buf);
63+
#elif CONFIG_IDF_TARGET_ARCH_RISCV
64+
ESP_LOGW(TAG, " Cause: %d", summary.ex_info.mcause);
65+
ESP_LOGW(TAG, " MTVAL: 0x%08x RA: 0x%08x SP: 0x%08x",
66+
summary.ex_info.mtval, summary.ex_info.ra, summary.ex_info.sp);
67+
#endif
6268
}
6369
ESP_LOGI(TAG, "Mounting File System...");
6470

0 commit comments

Comments
 (0)