ESP32/S2/S3 LinuxCNC Controller (6 axis hardware step gen), USB plug-and-play

More
1 year 10 months ago #317142 by Trihwangyudi1990
have problem install with platformio the message is :
 *  Executing task in folder ESP32_LinuxCNC_MotionController_RealTime-main: platformio run --environment esp32-rmii-ethernet

Processing esp32-rmii-ethernet (platform: espressif32@6.5.0; board: esp32dev; framework: arduino)
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (6.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 2.0.14+sha.44da992
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 42 compatible libraries
Scanning dependencies...
Dependency Graph
|-- FastAccelStepper @ 0.30.15
|-- ESP32Ping @ 1.7.0
|-- AsyncTCP @ 1.1.1
|-- ESP32Encoder @ 0.11.7
|-- WiFi @ 2.0.0
|-- ArduinoNvs @ 2.8.0
|-- ESP32Console @ 1.2.2
|-- ArduinoOTA @ 2.0.0
|-- Ethernet @ 2.0.0
|-- Ticker @ 2.0.0
|-- ESP32 Async UDP @ 2.0.0
Building in release mode
Compiling .pio/build/esp32-rmii-ethernet/src/ClientMode.cpp.o
Compiling .pio/build/esp32-rmii-ethernet/src/ConfigManager.cpp.o
Compiling .pio/build/esp32-rmii-ethernet/src/ConsoleMenus.cpp.o
Compiling .pio/build/esp32-rmii-ethernet/src/ControllerMode.cpp.o
In file included from src/Types.hpp:7,
                 from src/ClientMode.h:3,
                 from src/ClientMode.cpp:4:
src/Config.h:11:12: fatal error: Eth.h: No such file or directory

*************************************************************
* Looking for Eth.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Eth.h"
* Web  > registry.platformio.org/search?q=header:Eth.h
*
*************************************************************

   #include "Eth.h"
            ^~~~~~~
compilation terminated.
*** [.pio/build/esp32-rmii-ethernet/src/ClientMode.cpp.o] Error 1
In file included from src/Types.hpp:7,
                 from src/ControllerMode.h:6,
                 from src/ControllerMode.cpp:4:
src/Config.h:11:12: fatal error: Eth.h: No such file or directory

*************************************************************
* Looking for Eth.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Eth.h"
* Web  > registry.platformio.org/search?q=header:Eth.h
*
*************************************************************

   #include "Eth.h"
            ^~~~~~~
compilation terminated.
*** [.pio/build/esp32-rmii-ethernet/src/ControllerMode.cpp.o] Error 1
In file included from src/Types.hpp:7,
                 from src/ConsoleMenus.h:10,
                 from src/ConsoleMenus.cpp:3:
src/Config.h:11:12: fatal error: Eth.h: No such file or directory

*************************************************************
* Looking for Eth.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Eth.h"
* Web  > registry.platformio.org/search?q=header:Eth.h
*
*************************************************************

   #include "Eth.h"
            ^~~~~~~
compilation terminated.
*** [.pio/build/esp32-rmii-ethernet/src/ConsoleMenus.cpp.o] Error 1
In file included from src/Types.hpp:7,
                 from src/ConfigManager.h:9,
                 from src/ConfigManager.cpp:4:
src/Config.h:11:12: fatal error: Eth.h: No such file or directory

*************************************************************
* Looking for Eth.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Eth.h"
* Web  > registry.platformio.org/search?q=header:Eth.h
*
*************************************************************

   #include "Eth.h"
            ^~~~~~~
compilation terminated.
*** [.pio/build/esp32-rmii-ethernet/src/ConfigManager.cpp.o] Error 1
========================================== [FAILED] Took 2.89 seconds ==========================================

Environment          Status    Duration
 
 
esp32-rmii-ethernet  FAILED    00:00:02.890
===================================== 1 failed, 0 succeeded in 00:00:02.890 =====================================

 *  The terminal process "platformio 'run', '--environment', 'esp32-rmii-ethernet'" terminated with exit code: 1.
 *  Terminal will be reused by tasks, press any key to close it.


i searching eth.h file but does not found any

Please Log in to join the conversation.

More
1 year 10 months ago #317144 by michaeln

Please Log in to join the conversation.

More
1 year 10 months ago #317155 by tommylight
#include "Eth.h"
That is Wez's version, somewhere in the files it says the above but the file in question is named eth.h , notice the lower case, edit the src/Config.h with the lover case eth.h, it works then.
Let us know if the Wez's version works for you, it did not work for me, namely the networking on the W5500 does not work, to test in the console type ipconfig, if it reboots, well....
The version Michael linked does work right up until you enable LinuxCNC, then it keeps rebooting for me.

Please Log in to join the conversation.

More
1 year 10 months ago #317196 by Trihwangyudi1990
thanks worked for sybexx... not use from wezzhunter file since sybexx file succes thanks for all guide, now next problem i cant isntall udp driver from linux terminal they says :
$ sudo halcompile --install esp32udp.comp
[sudo] password for triwahyudist:         
Traceback (most recent call last):
  File "/usr/bin/halcompile", line 1553, in <module>
    main()
  File "/usr/bin/halcompile", line 1523, in main
    process(f, mode, outfile)
  File "/usr/bin/halcompile", line 1363, in process
    a, b = parse(filename)
           ^^^^^^^^^^^^^^^
  File "/usr/bin/halcompile", line 434, in parse
    f = open(filename).read()
        ^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'esp32udp.comp'

Please Log in to join the conversation.

More
1 year 10 months ago #317208 by tommylight
You have to run halcompile from inside the folder where esp32udp.comp is located, something like
cd Downloads
if the file is inside Downloads folder.

Please Log in to join the conversation.

More
1 year 10 months ago #317258 by Trihwangyudi1990
thanks tom, maybe have a lot question, wants to make custom board, i see in bottom of thoose file from sybexx and wezzhunter have option of lolin s2 mini, i thinks its would be greats if i put in my custom board's, it will drive shift register chips with 74hc595 to step and dir signal, anyone use thoose board (i mean lolin s2 mini)? are they no need w5500 board for comunication with linuxcnc i mean direct usb type C comunication?

Please Log in to join the conversation.

More
1 year 10 months ago #317352 by beauxnez
hello
 I have 3 cards for 3d printer BTT skr1.4 turbo, MKS tinybee too mard of the parallel port
 is it possible to make my cutter work with qtplasmac with this kind of card?

Please Log in to join the conversation.

More
1 year 10 months ago #317544 by Trihwangyudi1990
rmii dont work with lolin s2 mini, have message :A fatal error occurred: This chip is ESP32-S2 not ESP32. Wrong --chip argument?have anyone succes with esp32 s2 or s3 board?

Please Log in to join the conversation.

More
1 year 9 months ago #319958 by beauxnez
Hello
 I am trying to compile the code with an esp32 but I have an error message?

 

Attachment not found

Please Log in to join the conversation.

More
1 year 9 months ago #319968 by Trihwangyudi1990
check your config.h file.. some case have to change Eth.h with ETH.h , have full message from platformio?

Please Log in to join the conversation.

Time to create page: 1.032 seconds
Powered by Kunena Forum