Hello ESP32 community,
I am currently working on a project where I need to perform firmware updates over the air (OTA) using a cellular network. The chipset I'm using is ESP32S3. However, I am encountering a Guru Meditation Error during the OTA process, specifically within the esp_ota_end() function. The error seems to be related to cache issues during flash write operations.
Logs:
I (301670) esp_image: segment 0: paddr=00250020 vaddr=3c0c0020 size=35b7ch (220028) map
Guru Meditation Error: Core / panic'ed (Cache disabled but cached memory region accessed).
Write back error occurred while dcache tries to write back to flash
Core 0 register dump:
PC : 0x42091700 PS : 0x00060e34 A0 : 0x82070128 A1 : 0x3fcab2b0
0x42091700: sha_ll_fill_text_block at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../../../components/hal/esp32s3/include/hal/sha_ll.h:115
(inlined by) sha_hal_hash_block at C:/Users/Adapt/esp/esp-idf/components/hal/sha_hal.c:83
A2 : 0x00000002 A3 : 0x3c104d40 A4 : 0x00000010 A5 : 0x00000000
A6 : 0x08000000 A7 : 0x3fcab2a0 A8 : 0x7261705f A9 : 0x00000008
A10 : 0x6003b09c A11 : 0x00000000 A12 : 0x00060020 A13 : 0x3fcf7584
A14 : 0x0000000a A15 : 0x3fcab250 SAR : 0x00000008 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0x00000000
Backtrace:0x420916fd:0x3fcab2b00x42070125:0x3fcab2d0 0x4207045e:0x3fcab2f0 0x4206e065:0x3fcab330 0x42030e37:0x3fcab350 0x420309e5:0x3fcab370 0x42030b23:0x3fcab3b0 0x42030b73:0x3fcab410 0x42030cd2:0x3fcab450 0x42030d69:0x3fcab480 0x4202ff71:0x3fcab4a0 0x42014dd4:0x3fcab5d0 0x42014fac:0x3fcadae0 0x42015082:0x3fcadb50 0x42012b3a:0x3fcadc80 0x42012bcf:0x3fcadcb0 0x420aebf2:0x3fcadcd0 0x4037dfb5:0x3fcadcf0
0x420916fd: sha_ll_fill_text_block at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../../../components/hal/esp32s3/include/hal/sha_ll.h:116
(inlined by) sha_hal_hash_block at C:/Users/Adapt/esp/esp-idf/components/hal/sha_hal.c:83
0x42070125: esp_sha_block_mode at C:/Users/Adapt/esp/esp-idf/components/mbedtls/port/sha/dma/sha.c:200 (discriminator 3)
0x4207045e: esp_sha_dma at C:/Users/Adapt/esp/esp-idf/components/mbedtls/port/sha/dma/sha.c:227
0x4206e065: mbedtls_sha256_update_ret at C:/Users/Adapt/esp/esp-idf/components/mbedtls/port/sha/dma/esp_sha256.c:193
0x42030e37: bootloader_sha256_data at C:/Users/Adapt/esp/esp-idf/components/bootloader_support/src/idf/bootloader_sha.c:32
0x420309e5: process_segment_data at C:/Users/Adapt/esp/esp-idf/components/bootloader_support/src/esp_image_format.c:634
0x42030b23: process_segment at C:/Users/Adapt/esp/esp-idf/components/bootloader_support/src/esp_image_format.c:565
0x42030b73: process_segments at C:/Users/Adapt/esp/esp-idf/components/bootloader_support/src/esp_image_format.c:486
0x42030cd2: image_load at C:/Users/Adapt/esp/esp-idf/components/bootloader_support/src/esp_image_format.c:152 (discriminator 6)
0x42030d69: esp_image_verify at C:/Users/Adapt/esp/esp-idf/components/bootloader_support/src/esp_image_format.c:274
0x4202ff71: esp_ota_end at C:/Users/Adapt/esp/esp-idf/components/app_update/esp_ota_ops.c:347
0x42014dd4: ota_example_task_cell at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../components/FOTA/ota_native_app.h:671
0x42014fac: app_fota at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../components/FOTA/ota_native_app.h:843
0x42015082: zn_fota_check_after_transmit at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../components/FOTA/zn_fota.c:90
0x42012b3a: app_integration at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../main/Inc/app.h:15631
0x42012bcf: app_main at C:\Users\Adapt\esp\esp-idf\workspace-z\anchor-go\build/../main/main.c:19
0x420aebf2: main_task at C:/Users/Adapt/esp/esp-idf/components/freertos/port/port_common.c:129 (discriminator 2)
0x4037dfb5: vPortTaskWrapper at C:/Users/Adapt/esp/esp-idf/components/freertos/port/xtensa/port.c:131
ELF file SHA256: f1bcc1f2ef583e21
Rebooting...
Context:
The error occurs when attempting to update the firmware over a cellular network. It appears that the issue is related to cache and flash memory operations during the esp_ota_end() function. I'm seeking assistance in resolving this. Any help is greatly appreciated.
Guru Meditation Error during Cellular Firmware Update with ESP-IDF: Seeking Assistance
-
- Posts: 20
- Joined: Wed Mar 02, 2022 2:39 pm
-
- Posts: 20
- Joined: Wed Mar 02, 2022 2:39 pm
Re: Guru Meditation Error during Cellular Firmware Update with ESP-IDF: Seeking Assistance
Hi,
I have checked the given link and tried the different INTR_IN_IRAM settings but still getting the same issue.
I have checked the given link and tried the different INTR_IN_IRAM settings but still getting the same issue.
Re: Guru Meditation Error during Cellular Firmware Update with ESP-IDF: Seeking Assistance
The error message specifically mentions "Cache disabled but cached memory region accessed," and it seems to be happening during the execution of the esp_ota_end() function.Carefully review the code related to flash write operations, especially in the esp_ota_end() function.
Who is online
Users browsing this forum: Bing [Bot] and 113 guests