bitluni / ESP32CamTimeLapse

152 stars 56 forks source link

Cyclic "TG1WDT_SYS_RESET" (rst:0x8) after starting timelapse... #21

Open dl9sec opened 1 year ago

dl9sec commented 1 year ago

Hi,

I built the code with the latest Arduino ESP32 BSP (2.0.8). The browser UI and the camera stream works well so far. My 8GB SDHC was detected correctly.

As soon, as I started the timelapse recording, a new directory was added ("\lapseNNN") but then the ESP32 suddenly resets:

:
rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
:

This was cyclically done (within a few seconds).

I couldn't find a programmatic solution for this. The only workaround so far (thanks to bitluni for pointing me to the right direction) was to install version 1.0.6 of the ESP32 BSP. It seems that later BSP-versions (>= 2.0.0) broke the correct function of the code.

Regards, Thorsten

Aztec-C commented 1 year ago

The actual fix is to add a "return ESP_OK;" to the startLapseHandler and stopLapseHandler routines in app_httpd.cpp.

dl9sec commented 1 year ago

Thank you very much for that hint, I will try it...

Regards, Thorsten

dl9sec commented 1 year ago

Great stuff! No unwanted resets anymore :-) Thanks a million...

(Maybe bitluni could put those two lines into the source file...)

Regards, Thorsten

Grey-Lancaster commented 4 months ago

@dl9sec @Aztec-C exactly what is the code for this The actual fix is to add a "return ESP_OK;" to the startLapseHandler and stopLapseHandler routines in app_httpd.cpp. Thanks, Grey

okay found it in 22