Closed StevenB56 closed 2 years ago
I tried with the OTA HTTP demo, I have the same problem! The error is different, but it's in the same place: after downloading all the firmware.
Going directly through ESP-IDF, there are additional logs. But unfortunately I'm still stuck.
I (43531) AWS_OTA: Received valid file block: Block index=40, Size=4096
I (43551) AWS_OTA: Received final block of the update.
I (43551) corePKCS11: PKCS #11 successfully initialized.
assert failed: spinlock_acquire spinlock.h:75 (lock)
Backtrace:0x40081b8e:0x3ffd9bc00x400885ed:0x3ffd9be0 0x4008fa1d:0x3ffd9c00 0x4008c129:0x3ffd9d20 0x400e2289:0x3ffd9d40 0x400e25db:0x3ffd9d60 0x400e1167:0x3ffd9db0 0x400dc5c5:0x3ffd9de0 0x400dc64b:0x3ffd9e10 0x400dc8d3:0x3ffd9e50 0x400dc93e:0x3ffd9e80 0x400dc9f8:0x3ffd9eb0 0x400d90d7:0x3ffd9ed0 0x400d95a6:0x3ffd9ef0 0x400d9ced:0x3ffd9f20 0x400d95eb:0x3ffd9f70 0x400d9676:0x3ffd9fa0 0x400d9b61:0x3ffd9fd0 0x400d7b9a:0x3ffd9ff0 0x400d2e30:0x3ffda010 0x4008bff1:0x3ffda030
0x40081b8e: panic_abort at D:/Espressif/frameworks/esp-idf-v4.4/components/esp_system/panic.c:402
0x400885ed: esp_system_abort at D:/Espressif/frameworks/esp-idf-v4.4/components/esp_system/esp_system.c:121
0x4008fa1d: __assert_func at D:/Espressif/frameworks/esp-idf-v4.4/components/newlib/assert.c:85
0x4008c129: spinlock_acquire at D:/Espressif/frameworks/esp-idf-v4.4/components/esp_hw_support/include/soc/spinlock.h:75 (inlined by) xPortEnterCriticalTimeout at D:/Espressif/frameworks/esp-idf-v4.4/components/freertos/port/xtensa/port.c:288
0x400e2289: vPortEnterCritical at D:/Espressif/frameworks/esp-idf-v4.4/components/freertos/port/xtensa/include/freertos/portmacro.h:578
(inlined by) initialize_nvs_partition at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/corePKCS11/port/core_pkcs11_pal.c:63
0x400e25db: PKCS11_PAL_FindObject at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/corePKCS11/port/core_pkcs11_pal.c:236
0x400e1167: C_FindObjects at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/corePKCS11/corePKCS11/source/portable/mbedtls/core_pkcs11_mbedtls.c:3141
0x400dc5c5: prvGetCertificateHandle at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/port/ota_pal.c:257
0x400dc64b: prvGetCertificate at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/port/ota_pal.c:308
0x400dc8d3: otaPal_ReadAndAssumeCertificate at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/port/ota_pal.c:366
0x400dc93e: otaPal_CheckFileSignature at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/port/ota_pal.c:414
0x400dc9f8: otaPal_CloseFile at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/port/ota_pal.c:496
0x400d90d7: ingestDataBlockCleanup at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/ota-for-aws-iot-embedded-sdk/source/ota.c:2648
0x400d95a6: ingestDataBlock at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/ota-for-aws-iot-embedded-sdk/source/ota.c:2720
0x400d9ced: processDataHandler at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/ota-for-aws-iot-embedded-sdk/source/ota.c:1185
0x400d95eb: executeHandler at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/ota-for-aws-iot-embedded-sdk/source/ota.c:2816
0x400d9676: receiveAndProcessOtaEvent at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/ota-for-aws-iot-embedded-sdk/source/ota.c:2893
0x400d9b61: OTA_EventProcessingTask at D:/ESP-IDF/tesssst/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/ota-for-aws-iot-embedded-sdk/source/ota.c:2918
0x400d7b9a: otaThread at d:\esp-idf\tesssst\esp-aws-iot\examples\ota\ota_mqtt\build/../main/ota_demo_core_mqtt.c:1477
0x400d2e30: pthread_task_func at D:/Espressif/frameworks/esp-idf-v4.4/components/pthread/pthread.c:195 (discriminator 15)
0x4008bff1: vPortTaskWrapper at D:/Espressif/frameworks/esp-idf-v4.4/components/freertos/port/xtensa/port.c:131
ELF file SHA256: cfebb78e0b3cd33f
Rebooting...
ets Jun 8 2016 00:22:57
Hi,
I have a issue using OTA MQTT demo. After downloading the new firmware, the ESP32 restarts following an error and starts the update again, endlessly.
I am compiling directly from VSCode. I tried on an ESP32 and an ESP32-S3 and with the esp-idf version 4.3.2 and version 4.4 without success. Do you have an idea of the problem ?
Thanks