Replies: 6 comments 3 replies
-
Hello,
=> Please do so then ESP32 are dual core, should work fine even if one core is super busy. I have an app doing a lot of things on core 0 and leaves core 1 for ESPAsyncWS. Have a look at the recommended flags in the doc also. Disabling the TWDT is not recommended, and for now, nothing proves this is the twdt of asynctcp that is causing you issues. AsyncTCP twdt is there to make sure your app callbacks are not taking too much time. If so, this is a design issue in your app. |
Beta Was this translation helpful? Give feedback.
-
Sorry for disturbing. |
Beta Was this translation helpful? Give feedback.
-
Hello Mathieu.
|
Beta Was this translation helpful? Give feedback.
-
if I remove EspAsynchWebServer from lib_deps I have no more watch dog event. Many thanks for your help ! |
Beta Was this translation helpful? Give feedback.
-
@Vorms : you are not using the right set of libraries. Make sure you use the latest AsyncTCP and ESPAscynWebServer from ESPAsync org. |
Beta Was this translation helpful? Give feedback.
-
Hello, many thanks for your reply. [env:esp32dev]
board = esp32dev
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
lib_ldf_mode = chain
framework = arduino
board_build.flash_mode = qio
build_flags = -Ilib
-I"${PROJECT_DIR}/lib"
-DARDUINOJSON_ENABLE_COMMENTS=1
build_src_filter =
+<../lib/*/src/*.*>
-<PCF8574/test/>
board_build.partitions = huge_app.csv
board_build.filesystem = littlefs
monitor_filters = esp32_exception_decoder, direct, log2file
build_type = debug
monitor_speed = 115200
upload_speed = 921600
lib_deps =
emelianov/modbus-esp8266@^4.1.0
robtillaart/PCF8574@^0.4.1
esp32async/AsyncTCP @ 3.3.8
esp32async/ESPAsyncWebServer @ ^3.7.4
bblanchon/[email protected]
lib_ignore =
AsyncTCP_RP2040W
ESPAsyncTCP And the errors are:
Many thanks if you can have a look... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
ESP32
IDE / Tooling
PlatformIO
What happened?
My project is an PLC (Programmable logi controler). So the cpu is occuped full time to the PLC part. On my code it's only only the main thread. My code discard web socket message to an internal queue and there is another queue to send responses. My code has a lot of vtaskDelay(1) because some time there is a lot of time before the main loop. Even with all vtaskDelaym the watchdog kill the system after 370 seconds approx.
The developpement plateform is PlateformIO with the Arduino framework. The version of ESPAsyncWebServer is 3..6.0 and the version of /AsyncTCP is 3.3.2. What can I do to prevent watch dog ? Best regards
Stack Trace
379405:: Refresh: vTaskDelay
379406:: Refresh: vTaskDelay
379407:: Refresh: vTaskDelay
ets Jul 29 2019 12:21:46
rst:0x8 (TG1WDT_SYS_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffbfddef
invalid header: 0xdfdffdff
invalid header: 0xffffffff
Minimal Reproductible Example (MRE)
run the code at https://github.com/Borne-Universelle/PLC/tree/PlateformIO branck PlateformIO
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions