Closed phatpaul closed 6 years ago
Hi @phatpaul I'm using Ota update here with about a 1.2MB image without any issues.
It does sound like you are running into the watchdog issue.
Check your sdkconfig, I think I had to extend some wtd.
CONFIG_INT_WDT=y
CONFIG_INT_WDT_TIMEOUT_MS=1000
CONFIG_INT_WDT_CHECK_CPU1=y
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_PANIC=
CONFIG_TASK_WDT_TIMEOUT_S=5
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=y
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1=y
It looks like it was working.
I was expecting the console to show "Upload done. Sending response" But that was a debug message and I only had Info set.
Perhaps change that console output to Info level, since the begin message is also Info.
I (521305) ota: esp_ota_begin succeeded
I'm making some additions/improvements to the cgiFlash API and improving the html GUI. Would you be interested in merging it in? I'm not bothering to support the older ESP8266 chip (I don't have one).
The API is documented here: https://github.com/phatpaul/libesphttpd/blob/master/README-flash_api.md
Attached a screenshot of the GUI.
Hi Paul.
Sure, that would be great. I think someone with an esp8266 could always back port those changes. I think the 8266 is still pretty popular but the esp32 is certainly the largest growth and where things are going. As long as the changes don’t trash entirely the 8266 support I’ll merge them in.
Btw have you had a look at the esp-idf web server implementation? I know the espressif guys are working on it but haven’t checked up on it.
Chris
On Oct 11, 2018, at 3:19 PM, Paul Abbott notifications@github.com wrote:
I'm making some additions/improvements to the cgiFlash API and improving the html GUI. Would you be interested in merging it in? I'm not bothering to support the older ESP8266 chip (I don't have one).
The API is documented here: https://github.com/phatpaul/libesphttpd/blob/master/README-flash_api.md https://github.com/phatpaul/libesphttpd/blob/master/README-flash_api.md Attached a screenshot of the GUI. https://user-images.githubusercontent.com/3495287/46828320-f07fcb80-cd68-11e8-8e68-3738262a63c2.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chmorgan/libesphttpd/issues/42#issuecomment-429085191, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJ-ANmQQCbjgmt-JD2rHF9oac11vNC0ks5uj5m5gaJpZM4XI0CK.
Cool, I'll open a pull-request on libesphttpd and esphttpd-freertos.
Yes, I saw the new web-server but it didn't seem ready for use and my project has a deadline!
BTW, do you know why are they writing another server? What will it do that this one doesn't?
Anyway, I imaging that my flash-api additions will be portable to that server.
I'm testing the OTA upgrade function cgiUploadFirmware. My .bin file size is ~1.3Meg.
The OTA partition size is 4Meg. (16Meg total flash size)
The OTA process starts and seems to repeat mid-way. Then the ESP32 reboots without any warning message.
Then it appears to be running the new OTA image after rebooting, but I'm afraid it didn't complete flashing it.
Is there a size limit to the HTTP POST data? Is there a watchdog timer expiring? Shouldn't there be some console message indicating that the process completed before reboot?
Also, where are these "I () esp_image: segment x:..." message coming from?
Here's my parition table:
I thought that these options might be incorrect, but it seems that most of them are not even used for ESP32?