webserver (crashes & dumps)

This commit is contained in:
Marc Pasteur 2026-03-13 18:57:27 +01:00
parent 77e8116d54
commit 67e6d1cfaa
4 changed files with 9 additions and 5 deletions

View File

@ -121,6 +121,7 @@ set(DEVICE "esp32p4")
# --- Nom final du binaire ---
set(OTA_BIN_NAME "${PROJECT_NAME}-v${FW_VERSION}.bin")
set(BUILD_BIN "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.bin")
set(BUILD_ELF "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.elf")
message(STATUS "Firmware version: ${FW_VERSION}")
@ -130,6 +131,9 @@ add_custom_target(ota_push ALL
COMMAND ${CMAKE_COMMAND} -E copy
${BUILD_BIN}
${OTA_DIR}/${OTA_BIN_NAME}
COMMAND ${CMAKE_COMMAND} -E copy
${BUILD_ELF}
${OTA_DIR}/latest.elf
COMMENT "📦 Copy firmware to OTA server directory"
DEPENDS app
)

View File

@ -35,10 +35,11 @@ void ihm_gateway_post_event(xIHMEvent_t *evt) {
extern lv_subject_t wifiStatus;
static xIHMEvent_t *evt = NULL;
void ihm_gateway_process_queue(void) {
if (!xIHMEventQueue) return;
xIHMEvent_t *evt = NULL;
#if CONFIG_IDF_TARGET_LINUX
while (xQueueReceive(xIHMEventQueue, &evt, pdMS_TO_TICKS(0)) == pdTRUE)

View File

@ -73,8 +73,8 @@
<h1>Developed by Mark</h1>
<h2>How to save and Download crash dump</h2>
</br></br>
<button class="btn success"><a href="http://192.168.4.1/download">Download</a></button></br></br>
<button class="btn success"><a href="http://192.168.4.1/crash">Crash</a></button>
<button class="btn success"><a href="./download">Download</a></button></br></br>
<button class="btn success"><a href="./crash">Crash</a></button>
</center>
</body>
</html>

View File

@ -1077,8 +1077,7 @@ void app_main(void)
esp_ota_mark_app_valid_cancel_rollback();
start_webserver();
}
void boucleMeteo()