Programming WT32-ETH01 with a nodemcu (esp8266). And working EXAMPLE core ESP32 >3.0 (!) #19
arjenv
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am not sure whether this github is still active, but searching the net for examples for my -just arrived- WT32 ETH0 board, the info is scarce.
It appears that most of the examples and libraries are outdated. They are for ESP32 core 2.+ and not for 3.+ I found out the hard way :-(
No example would compile without errors, tried several boards in the IDE. Nothing.
Then finally I stumbled upon the fine library of Juraj: (https://github.com/Networking-for-Arduino/EthernetESP32)
It is in the 'manage library' tab of the Arduino IDE. just search for Ethernetesp32
I used the example helloserver.ini.
Change the driver from
W5500Driver driver;
to
(I just commented out the 1st driver)
I do not have a programmer, but I do have several Nodemcu's lying around. I will use that as a programmer. Don't have fancy graphic software to make a picture but this is what I did:
On the NODEMCU connect Enable pin with GND (effectively bypassing the ESP8266, it is now just an USB-RS232 interface)
Connect TXpin (NodeMCU) to TXpin (ESP32)
Connect RXpin (NodeMCU) to RXpin (ESP32)
Connect +3V3 (NodeMCU) to +3V3 (ESP32)
Connect GND (NodeMCU) to GND (ESP32)
Finally on the WT32 connect Io0 to GND
As you may notice the RX/TX lines are not crossed.
Compile and upload the Sketch.
Disconnect the Io0 from GND
restart the ESP32 (I have to disconnect/reconnect the 3V3 pin, did not find a reset button on the WT32)
Don't forget to connect the WT32 to your network with a UTP cable.
This example gets a DHCP address from you router. It will print this to the serial port. Then I type this IP address in my browser it just returns:
hello from esp32!
So we are in business!
Hope others can benefit from this.
Beta Was this translation helpful? Give feedback.
All reactions