Crashing on esp_ota_end()

philippK
Posts: 2
Joined: Tue May 16, 2023 9:23 am

Crashing on esp_ota_end()

Postby philippK » Tue May 16, 2023 10:35 am

Hello everyone,
I am trying to do an ota via modbus rtu. But after having written the image to flash with esp ota write(), the call to esp ota end
makes the esp crash with "Guru Meditation Error: Core / (Cache disabled but cached memory region accessed).
Write back error occurred while dcache tries to write back to flash".

I suspect a similar issue to this one: https://esp32.com/viewtopic.php?t=19141
But the solution in the provided issue doesent work, because I am using v5.0

The chip is esp32s3.
Attachments
sdkconfig.txt
(52.12 KiB) Downloaded 137 times

philippK
Posts: 2
Joined: Tue May 16, 2023 9:23 am

Re: Crashing on esp_ota_end()

Postby philippK » Mon May 22, 2023 9:12 am

I figured the issue myself out.
For anyone else having a similar issue:
I was calling strtok with the version string from esp_app_desc_t which changed the version string. So when esp_ota_end was using it, the string was NULL.
Copying the version string in a buffer and then calling strtok on the buffer resolved the issue for me.

Who is online

Users browsing this forum: 137502805@qq.com and 103 guests