Skip to content

Ooznest: Latest pinmap and workaround for Ethernet (W5500)#196

Merged
terjeio merged 1 commit into
grblHAL:masterfrom
Ooznest:master
May 18, 2026
Merged

Ooznest: Latest pinmap and workaround for Ethernet (W5500)#196
terjeio merged 1 commit into
grblHAL:masterfrom
Ooznest:master

Conversation

@petervanderwalt

Copy link
Copy Markdown
Contributor
  • Implemented hc595.c Expansion (74HCT595 on same SPI bus as SD card)
  • Updated pinmap / platformio.ini for Production pinmap of board, which uses the expansion pins
  • Updates to board driver (motor iteration for current setting)
  • Enabled ESP-IDF W5500 driver in sdkconfig for use with enet.c (which does not use networking plugin's w5500 driver)
  • main/CMakeLists.txt - changed from conditional to unconditional include of both enet.c and wifi.c. Looks like the C preprocessor #if ETHERNET_ENABLE inside each file handles which actually runs. With the conditional in CMakeLists ETHERNET_ENABLED fails because when PlatformIO passes -D ETHERNET_ENABLE=1 it just creates a C preprocessor define, NOT a CMake variable.

Linking .pio\build\ooznest-cnc\firmware.elf
c:/users/user/.platformio/packages/toolchain-xtensa-esp32s3@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ooznest-cnc/main/driver.o:(.literal.driver_setup+0x24): undefined reference to enet_start' c:/users/user/.platformio/packages/toolchain-xtensa-esp32s3@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/ooznest-cnc/main/driver.o:(.literal.driver_init+0x144): undefined reference to enet_init'

Likely I took the wrong approach here, but it compiles now after removing the conditional.

  • At this time Ethernet (W5500 module on same SPI as SD/HC595) starts ip, gets static IP config from grbl settings config, comes online and I can ping it! Telnet/Websocket doesnt respond though just yet (Is enabled in $70) - Ethernet with W5500 #34 makes it sound like Telnet should work with it.

@terjeio

terjeio commented May 18, 2026

Copy link
Copy Markdown
Contributor

Telnet/Websocket doesnt respond though just yet

Can you try with DHCP, I've never tested the code with static IP:
image

I do not have a board with a W5500 and AFAIK noone has yet used ethernet with ESP32.

@terjeio terjeio merged commit a2a8055 into grblHAL:master May 18, 2026
1 check passed
@petervanderwalt

Copy link
Copy Markdown
Contributor Author

I do not have a board with a W5500 and AFAIK noone has yet used ethernet with ESP32.

(: I have a set on its on way to you with the I2C Expansions

Will try DHCP a bit later thanks!

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

Successfully merging this pull request may close these issues.

2 participants