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

More
28 Jan 2025 18:44 #320008 by beauxnez
thanks I changed to ETH.h same problem

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
Compiling .pio\build\esp32-rmii-ethernet\src\I2SOut.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\esp32-rmii-ethernet\src\Pins.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-rmii-ethernet\src\ConfigManager.cpp.o] Error 1
*** [.pio\build\esp32-rmii-ethernet\src\ClientMode.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-rmii-ethernet\src\ConsoleMenus.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-rmii-ethernet\src\ControllerMode.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-rmii-ethernet\src\I2SOut.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-rmii-ethernet\src\Pins.cpp.o] Error 1
=========================================================================================== [FAILED] Took 4.53 seconds ===========================================================================================

Processing esp32-spi-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 43 compatible libraries
Scanning dependencies...
Dependency Graph
|-- FastAccelStepper @ 0.30.15
|-- AsyncTCP @ 1.1.1
|-- AsyncUDP_ESP32_Ethernet @ 2.1.0
|-- WebServer_ESP32_W5500 @ 1.5.3
|-- WebServer_ESP32_W6100 @ 1.5.3
|-- WebServer_ESP32_ENC @ 1.5.3
|-- ESP32Encoder @ 0.11.7
|-- ESP32Ping @ 1.7.0
|-- 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-spi-ethernet\src\ClientMode.cpp.o
Compiling .pio\build\esp32-spi-ethernet\src\ConfigManager.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\esp32-spi-ethernet\src\ConsoleMenus.cpp.o
*** [.pio\build\esp32-spi-ethernet\src\ClientMode.cpp.o] Error 1
*** [.pio\build\esp32-spi-ethernet\src\ConfigManager.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-spi-ethernet\src\ConsoleMenus.cpp.o] Error 1
=========================================================================================== [FAILED] Took 5.00 seconds ===========================================================================================

Processing esp32-wokwi-simulator (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 (custom) 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
|-- AsyncTCP @ 1.1.1
|-- ESP32Encoder @ 0.11.7
|-- ESP32Ping @ 1.7.0
|-- 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 debug mode
Compiling .pio\build\esp32-wokwi-simulator\src\ClientMode.cpp.o
Compiling .pio\build\esp32-wokwi-simulator\src\ConfigManager.cpp.o
Compiling .pio\build\esp32-wokwi-simulator\src\ConsoleMenus.cpp.o
Compiling .pio\build\esp32-wokwi-simulator\src\ControllerMode.cpp.o
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
Compiling .pio\build\esp32-wokwi-simulator\src\I2SOut.cpp.o
*** [.pio\build\esp32-wokwi-simulator\src\ClientMode.cpp.o] Error 1
*** [.pio\build\esp32-wokwi-simulator\src\ConfigManager.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-wokwi-simulator\src\ConsoleMenus.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-wokwi-simulator\src\ControllerMode.cpp.o] Error 1
xtensa-esp32-elf-g++: error: CreateProcess: No such file or directory
*** [.pio\build\esp32-wokwi-simulator\src\I2SOut.cpp.o] Error 1
=========================================================================================== [FAILED] Took 3.96 seconds ===========================================================================================

Environment Status Duration


esp32-rmii-ethernet FAILED 00:00:04.525
esp32-spi-ethernet FAILED 00:00:05.000
esp32-wokwi-simulator FAILED 00:00:03.956
===================================================================================== 3 failed, 0 succeeded in 00:00:13.482 =====================================================================================

* The terminal process "C:\Users\HP-ELITEONE\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Please Log in or Create an account to join the conversation.

More
28 Jan 2025 19:37 #320013 by michaeln
I don't had this problem.

But additional to the ETH.h - problem i had to change in ClientMode.cpp:

From    ESP32Encoder::useInternalWeakPullResistors = puType::UP;
to    ESP32Encoder::useInternalWeakPullResistors = puType::up;

 

Please Log in or Create an account to join the conversation.

More
29 Jan 2025 18:05 #320103 by beauxnez
thanks same error message with the modification

Please Log in or Create an account to join the conversation.

More
30 Jan 2025 06:25 - 30 Jan 2025 06:26 #320135 by michaeln
Hello beauxnez,

on a fresh install from Linuxcnc from the ISO 2.9.4 it works with the two changes (ETH.h and puType::up;)
 
I think your problem is your system.
On which system do you work? Have you cleaned platformio/vscode?

 
Attachments:
Last edit: 30 Jan 2025 06:26 by michaeln.

Please Log in or Create an account to join the conversation.

More
30 Jan 2025 16:27 #320156 by beauxnez
I work on Windows 11 with Visual Studio Code, I haven't cleaned it, I don't even know how to do it.

Please Log in or Create an account to join the conversation.

More
30 Jan 2025 20:16 #320176 by michaeln
For me it works under a fresh installation from VisualStudioCode with the extension PlatformIO and GIT under Windows, too.

Ther are in the folder c:\Users\Your-User\ the folders .vscode and .platformio and C:\Users\Your-User\AppData\Roaming\Code . I think if you delete all it's like a fresh installation.

Please Log in or Create an account to join the conversation.

More
31 Jan 2025 21:39 #320263 by beauxnez
it works on another computer without modifying anything I have an esp32 wroom with an spi card do I have to change the card number here?
and by what number?

Please Log in or Create an account to join the conversation.

More
01 Feb 2025 10:34 #320311 by beauxnez
ok,
 I just found on the subject the config page on the github github.com/SybexX/ESP32_LinuxCNC_MotionC...in/SerialCommands.md,
 I don't understand where you have to type the commands to configure the card?

Please Log in or Create an account to join the conversation.

More
01 Feb 2025 12:06 #320319 by michaeln
you can use the serial commands with a terminal like picocom.
try picocom -b 115200 /dev/ttyUSB0
But the spiethconfig does not work. Use the default settings

Please Log in or Create an account to join the conversation.

More
01 Feb 2025 17:46 #320337 by beauxnez
I succeeded, I am at the part "sudo halcompile --install esp32udp.comp" what should I do?
  it's not very clear for a novice

 
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.251 seconds
Powered by Kunena Forum