grblHAL / ESP32

grblHAL driver for ESP32
Other
62 stars 39 forks source link

Watchdog task when connecting to WiFi #110

Open SeijiH3N opened 3 weeks ago

SeijiH3N commented 3 weeks ago

The verbose works fine until the moment I connect it to a WiFi (either in STA mode or AP mode). I've tried changing the version of the Espressif and changing the defines configs but nothing seems to work. Could someone help me?

Here are the verbose while connecting:

<Idle|MPos:0.000,0.000,0.000|Bf:100,1023|FS:0,0|Pn:XYZHS> <Idle|MPos:0.000,0.000,0.000|Bf:100,1023|FS:0,0|Pn:XYZHS> I (59623) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<255,255>, prof:1 I (59623) wifi:station: 30:05:05:93:f6:c0 join, AID=1, bgn, 40U [MSG:WIFI AP CONNECTED] E (63683) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (63683) task_wdt: - IDLE (CPU 1) E (63683) task_wdt: Tasks currently running: E (63683) task_wdt: CPU 0: IDLE E (63683) task_wdt: CPU 1: tiT E (63683) task_wdt: Print CPU 0 (current core) backtrace Backtrace:0x4017D7AA:0x3FFB11900x40086ED1:0x3FFB11B0 0x4017F043:0x3FFBFCB0 0x4010B9E2:0x3FFBFCD0 0x4008E305:0x3FFBFCF0 0x40090085:0x3FFBFD10 E (63683) task_wdt: Print CPU 1 backtrace Backtrace:0x40085C35:0x3FFB17900x40086ED1:0x3FFB17B0 0x4000BFED:0x3FFC8270 0x4008F169:0x3FFC8280 0x4008D941:0x3FFC82A0 0x40121ACB:0x3FFC82E0 0x4010F24C:0x3FFC8310 0x4010F307:0x3FFC8330 0x40090085:0x3FFC8360

And here are the PlatformIO configurations:

[platformio] src_dir = main include_dir = main

[wifi_networking] build_flags =

[env:mks_dlc32_2_0] platform = espressif32@5.3.0 framework = espidf board = esp32dev board_build.f_cpu = 240000000L board_build.f_flash = 80000000L board_build.flash_mode = dout build_src_filter = +<.h> +<.s> +<.S> +<.cpp> +<.c> +<.ino> + -<.git/> - - - board_build.partitions = partitions.csv board_build.cmake_extra_args = -DWIFI_ENABLE=1 -DSDKCONFIG_DEFAULTS= "sdkconfig.mks_dlc32_2_0" -DKEYPAD_ENABLE=0 -DmDNS=ON board_build.embed_files = main/embedded/favicon.ico main/embedded/ap_login.html main/embedded/index.html.gz build_flags = -Wimplicit-fallthrough=1 -Wno-missing-field-initializers -Wno-maybe-uninitialized -Wno-stringop-truncation -DBOARD_MKS_DLC32_V2P0=1 ;-DWEBUI_INFLASH=1 -DN_AXIS=3 -DWIFI_ENABLE=1 -DN_AXIS=3 -DWEBUI_ENABLE=3 -DSDCARD_ENABLE=1 -DPROBE_ENABLE=1 -DBLUETOOTH_ENABLE=0 -DTELNET_ENABLE=1 -DWIFI_SOFTAP=1 -DSAFETY_DOOR_ENABLE=0 ;-DKEYPAD_ENABLE=0 -DMDNS_ENABLE=1 -DDEFAULT_PROBE_SIGNAL_INVERT=1 -DDEFAULT_DIR_SIGNALS_INVERT_MASK=1

monitor_speed=115200

lib_compat_mode = off

terjeio commented 3 weeks ago

When I build with IDF v4.4.3 station mode works for me (note that I cannot check the SD card as I only have access to a dev board). A web Builder build with IDF v4.3.2 (platform = espressif32 @ ~4.0.0) also works.