Hi everyone
Heltec Wireless Tracker board.
The example program is HTTP_Server_AES_OTA_Update. Everything works perfectly.
When the library #include "HT_st7735.h"
is connected, and HT_st7735 st7735; st7735.st7735_init();
is called, an unexpected reboot occurs due to an error at the end of the update download.
17:39:10.479 -> Compile Host OS : windows
17:39:10.479 -> ESP-IDF Version : v5.3.2-282-gcfea4f7c98-dirty
17:39:10.479 -> Arduino Version : 3.1.1
17:39:10.479 -> ------------------------------------------
17:39:10.479 -> Board Info:
17:39:10.479 -> ------------------------------------------
17:39:10.479 -> Arduino Board : HELTEC_WIRELESS_TRACKER
17:39:11.129 -> Arduino Variant : heltec_wireless_tracker
There is no crash dump available.
In my program, based on this example, the same situation occurs.
Guru Meditation Error: Core / panic’ed (Cache disabled but cached memory region accessed).
17:52:42.552 -> Write back error occurred while dcache tries to write back to flash
17:52:42.552 -> The following backtrace may not indicate the code that caused Cache invalid access
Core 0
Decoding stack results
0x4037c7b3: esp_cpu_wait_for_intr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/xtensa/include\xt_utils.h:82
0x420223b9: esp_vApplicationIdleHook at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system\freertos_hooks.c:58
0x40381393: prvIdleTask at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel\tasks.c:4353
0x40380216: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\port.c:139
Core 1
Decoding stack results
0x420946e3: sha_hal_hash_block at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/hal/esp32s3/include/hal\sha_ll.h:139
0x4206d527: esp_sha_dma at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/port/sha/dma\sha.c:167
0x4206a47a: mbedtls_sha256_update at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/mbedtls/port/sha/dma\esp_sha256.c:171
0x4202069c: bootloader_sha256_data at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bootloader_support/src/idf\bootloader_sha.c:32
0x420204a3: process_segments at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bootloader_support/src\esp_image_format.c:734
0x42020571: image_load at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bootloader_support/src\esp_image_format.c:148
0x42020651: esp_image_verify at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/bootloader_support/src\esp_image_format.c:294
0x4201f013: image_validate at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/app_update\esp_ota_ops.c:97
0x4201f1b8: esp_ota_set_boot_partition at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/app_update\esp_ota_ops.c:443
0x4200fb64: UpdateClass::_verifyEnd() at C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\Update\src\Updater.cpp:468
0x4200fe67: UpdateClass::end(bool) at C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\Update\src\Updater.cpp:525
0x420040f8: is in std::_Function_handler<void(), CreateAP()::<lambda()> >::_M_invoke(const std::_Any_data &) (C:\Work\Arduino\Heltec_gps_rx/Heltec_gps_rx.ino:712).
0x42014152: std::function<void at )>::operator()() const (C:/Users/User/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2405/xtensa-esp-elf/include/c++/13.2.0/bits\std_function.h:591
0x420141ad: is in FunctionRequestHandler::upload(WebServer&, String const&, HTTPUpload&) (C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\WebServer\src\detail/RequestHandlersImpl.h:117).
0x420121fb: is in WebServer::_parseForm(NetworkClient&, String const&, unsigned long) (C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\WebServer\src\Parsing.cpp:545).
0x42012e39: WebServer::_parseRequest(NetworkClient&) at C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\WebServer\src\Parsing.cpp:238
0x420148a9: WebServer::handleClient() at C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\libraries\WebServer\src\WebServer.cpp:434
0x420066bf: loop() at C:\Work\Arduino\Heltec_gps_rx\Heltec_gps_rx.ino:1208
0x4201d4f8: loopTask(void*) at C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.1\cores\esp32\main.cpp:74
0x40380216: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\port.c:139
I think the problem lies in the incorrect operation of SPI. Could you advise how to disable it during the update?
SPI.end(); spi_bus_free(SPI2_HOST); st7735_spi.end();
do not help; the error persists.