Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use ESP32 driver when wifi is enabled #634

Open
DLR3D opened this issue Dec 4, 2024 · 10 comments
Open

Cant use ESP32 driver when wifi is enabled #634

DLR3D opened this issue Dec 4, 2024 · 10 comments

Comments

@DLR3D
Copy link

DLR3D commented Dec 4, 2024

Hello, I am using the latest version of the grblHAL for ESP32, using a lolin esp32 board.

There is a issue that's impeding me from continuing the configuration, whenever wifi and webui is enabled the grbl does not load. The web interface is active and I can see setings and files but no commands receive response and no stepping signal is generated, also the serial interface keeps printing these errors over and over:

[0;31mE (241483) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:[0m
[0;31mE (241483) task_wdt: - IDLE (CPU 1)[0m
[0;31mE (241483) task_wdt: Tasks currently running:[0m
[0;31mE (241483) task_wdt: CPU 0: IDLE[0m
[0;31mE (241483) task_wdt: CPU 1: tiT[0m
[0;31mE (241483) task_wdt: Print CPU 0 (current core) backtrace[0m


Backtrace:0x40176D3B:0x3FFB1140 0x400853AD:0x3FFB1160 0x4017A263:0x3FFBF8A0 0x40176ABB:0x3FFBF8C0 0x4008D155:0x3FFBF8E0 0x4008EFB1:0x3FFBF900

[0;31mE (241483) task_wdt: Print CPU 1 backtrace[0m


Backtrace:0x40089C05:0x3FFB1740 0x400853AD:0x3FFB1760 0x4000BFED:0x3FFCBB50 0x4008F21E:0x3FFCBB60 0x4008C9AA:0x3FFCBB80 0x4011C36B:0x3FFCBBC0 0x4010A1BC:0x3FFCBBF0 0x4010A273:0x3FFCBC10 0x4008EFB1:0x3FFCBC40

I have tried:

  • Changing webui versions, same result
  • Disabling SD card, same result
  • Disabling Telnet, same result
  • Disabling FTP, same result
  • Disabling wifi completely, the board boots correctly and responds and generates steps via serial. No watchdog errors show up

Can anyone help me solve this problem as I am at a loss of what to try next to fix this.

@terjeio
Copy link
Contributor

terjeio commented Dec 4, 2024

Which board did you build for?

@DLR3D
Copy link
Author

DLR3D commented Dec 4, 2024

I built using Visual Studio Code Platform IO for the ESPDUINO-32 Wemos D1 R32 and also tried building it manually for this board (lolin esp32 lite, I created a new definition on platformio.ini), the result is the same.

I have made some more test and the default version from the online builder for ESPDUINO-32 Wemos D1 R32.boots and the web interface and GRBL are working, the only problem are the pin definitions that are completely wrong. If I try compiling using PlatfomIO the error appears once again so for now I am unable to change the pins.

@terjeio
Copy link
Contributor

terjeio commented Dec 4, 2024

the only problem are the pin definitions that are completely wrong.

Completely wrong in relation to what?

If I try compiling using PlatfomIO the error appears once again

Which SDK version are you using? The Web Builder uses 4.3.2.

@DLR3D
Copy link
Author

DLR3D commented Dec 4, 2024

Completely wrong in relation to what?

Wrong in relation to what I needed from this board. Sorry, I wasn't clear with the use case. I am using a custom board so I need to redefine the default pinout.

Which SDK version are you using? The Web Builder uses 4.3.2.

I used the default version of espressif32 4.0.0 platform that was defined on the platformio.ini config, I will try with that version and report back.
edit: I checked the sdk version being used on platformio is 4.3.2 the bug still remains

@DLR3D
Copy link
Author

DLR3D commented Dec 4, 2024

Managed to fix the issue by using Linux virtual machine and compiling using the recommended method using the files I had previously changed. The board is now working as it is supposed to.

There is still and issue to be solved, there is some error in the platform.io configuration in your files that makes compiling using it impossible, it would be amazing to fix this as it would allow multi platform usage with almost no configurations for users, any way I can help debug the issue?

@msepulve
Copy link

msepulve commented Jan 5, 2025

Hi!
I’m experiencing exactly the same problem when trying to use compiled version on my MKS TinyBee. Web builder versions work just fine.
Compilation as per the GitHub instructions work fine, upload, vie settings via usb terminal Ok. Problem start immediately after a device connects to the AP:
Domingo, can you share what did you do to compile a working version?

@DLR3D
Copy link
Author

DLR3D commented Jan 6, 2025 via email

@msepulve
Copy link

msepulve commented Jan 6, 2025

Obrigado Domingo. Please tell us the library that was causing you the problem? I have been struggling with the same issue for days but not seeing/recording any error during the compilation I wouldn’t know where to start. I also compile form platformio command line and have been looking for solutions changing settings in the sdkconfig files to no avail. Look forward to know your solution, thanks in advance

@DLR3D
Copy link
Author

DLR3D commented Jan 6, 2025 via email

@msepulve
Copy link

msepulve commented Jan 6, 2025

Thanks to Domingo inspiration, I moved to a brand new updated Ubuntu 24 installation and installed everything afresh, following grblHAL GitHub instruction step by step. Then created a platformio.ini for my MKS TinyBee, using the settings as per the Web Builder. But the results are the same as what Domingo encountered; as soon as a device connects to the AP, the cycling messages star showing up. Please someone have any ideas about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants