Open epc-ake opened 3 months ago
Hi @epc-ake! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
if I set CONFIG_IMG_ERASE_PROGRESSIVELY=y
it uploads at least some data before freezing again.
It also freezes during BLE update
Same issue over serial as well. However, it does manage to upload part of the firmware.
@sylvioalves can you give us an update on this? In our last conversation on discord you mentioned that you've evaluated a fix for this.
Hi, the CPU freezes during which step of OTA update (downloading firmware, erasing flash, writing flash, ...) ? Could you debug this. Because I have a similar issue on an homemade OTA update tool on esp32s3 during the flash erase step. CPU raises FATAL EXCEPTION.
I didn't work on this, so no progress here unfortunately. I think writing to the flash causes zephyr to freeze. So it might be a problem with the flash driver.
It seems to be an issue of flash protection
It seems to be an issue of flash protection
This seems to be relevant to the esptool.py
.
Overall I was able to partially update the image...
@epc-ake can you try https://github.com/zephyrproject-rtos/zephyr/pull/78121?
@epc-ake are you, by any chance, running the second image on the APPCPU/cpu1 ?
Info : [esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
[esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
@epc-ake can you try #78121?
Thanks for this. I tried it and it seems to be working for at least UDP. However, I don't have the time right now to test it in depth... I will come back to it in 1-2 weeks.
@epc-ake are you, by any chance, running the second image on the APPCPU/cpu1 ?
Info : [esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000 [esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
Hmm interesting. I didn't notice that. Currently I'm only using the PROCPU. Maybe because I interrupted GDB with (Ctrl+C) it halted on cpu1 by accident?
Discussed in https://github.com/zephyrproject-rtos/zephyr/discussions/76302