WT32-ETH01
Moderators: grovkillen, Stuntteam, TD-er
Re: WT32-ETH01
How can i attempt to resolve that?
Re: WT32-ETH01
Not sure, I have to look into the code for this.
Re: WT32-ETH01
Code: Select all
217 : Info : Connect to:
217 : Info : Ethernet
218 : Info : Eth Wifi mode: Ethernet ETH: PHY Typee: LAN8710 PHYAddr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 16 MIO Pin: 17 Power Pin: -1
222 : Info : ETH Started
4223 : Info : ETH Connected
4224 : Info : firstLoopConnectionsEstablished
7230 : Info : ETH MAC: A4:CF:12:64:B3:8F IPv4: 10.0.1.44 (ESP-Easy) GW: 10.0.1.1 SN: 255.255.255.0 FULL_DUPLEX 100Mbps
![Uber Geek :ugeek:](./images/smilies/icon_e_ugeek.gif)
Re: WT32-ETH01
Ah, so it does have its own crystal oscillator?
Yep, then you should set it to have one external![Lach :)](./images/smilies/icon_e_smile.gif)
Yep, then you should set it to have one external
![Lach :)](./images/smilies/icon_e_smile.gif)
Re: WT32-ETH01
Yep. Just spotted it also..
The new lan8720 i put on has quite different look then old one. It is more round off whereas the old was very edgy, alot like these bga memory chips. Wasnt easy to get it on with a paint removal gun
The new lan8720 i put on has quite different look then old one. It is more round off whereas the old was very edgy, alot like these bga memory chips. Wasnt easy to get it on with a paint removal gun
- Attachments
-
- 6FDBCAAC-9725-49F9-B6A6-7C093D6D4B26.jpeg (2.96 MiB) Viewed 52836 times
-
- 9A82A939-5364-4CB8-A70E-73AAB967446B.jpeg (2.98 MiB) Viewed 52836 times
Re: WT32-ETH01
Wow, you removed it using a paint removal gun?
The LAN8710A does have 32 pads, while the LAN8720A has only 24 (25 if you count the GND at the bottom)
Difference between both is that the LAN8720A only supports RMII and no longer the older 4 wire version.
But since we only use that one, it doesn't matter to us.
The LAN8710A does have 32 pads, while the LAN8720A has only 24 (25 if you count the GND at the bottom)
Difference between both is that the LAN8720A only supports RMII and no longer the older 4 wire version.
But since we only use that one, it doesn't matter to us.
Re: WT32-ETH01
Weapon of choice ![😎](//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f60e.svg)
- Attachments
-
- 67193D76-B3C3-4EFC-A2CD-C6322B022575.jpeg (3.93 MiB) Viewed 52829 times
Re: WT32-ETH01
Well I don't think I can do that with such a blower myself, so respect ![Lach :)](./images/smilies/icon_e_smile.gif)
![Lach :)](./images/smilies/icon_e_smile.gif)
Re: WT32-ETH01
Now could you aybe add the setting for the wESP32 in the code so there will also be a .bin which has directly the correct settings inside for other users that maybe also like the wESP32? despte its higher price its pretty well made thing with proper PoE power identification and galvnic isolation etc.
Re: WT32-ETH01
Please show me the settings you now use and I will add them.
Re: WT32-ETH01
Code: Select all
Eth Wifi mode: Ethernet ETH: PHY Typee: LAN8710 PHYAddr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 16 MIO Pin: 17 Power Pin: -1
Re: WT32-ETH01
Hi,
is in the current release for ESP32 .bin which one can flasch to WT32-ETH1?
Or I need to create my own for WT32.
is in the current release for ESP32 .bin which one can flasch to WT32-ETH1?
Or I need to create my own for WT32.
Re: WT32-ETH01
You can flash any esp32 eth build as long as your board uses LAN8710A or LAN8720A (or the tk<somewhat> board which I forgot the name)
Only thing is, you may need to configure the eth yourself by hand as we don't have a predefined "factory default" setting for it yet.
Only thing is, you may need to configure the eth yourself by hand as we don't have a predefined "factory default" setting for it yet.
Re: WT32-ETH01
Everything works.
To summarize:
Board WT32-ETH01
USB to RS232 converter
IO0 to GND
Flash: ESP_Easy_mega_20210114_normal_ESP32_4M316k_ETH-factory.bin
Connect to wifi and setting lan. Disconnect IO0
Restart and the module will connect to the lan.
To summarize:
Board WT32-ETH01
USB to RS232 converter
IO0 to GND
Flash: ESP_Easy_mega_20210114_normal_ESP32_4M316k_ETH-factory.bin
Connect to wifi and setting lan. Disconnect IO0
Restart and the module will connect to the lan.
Re: WT32-ETH01
Re: WT32-ETH01
@TD-er perhaps it is safe to assume it is time to set a predefined setting for this ?
-D
Re: WT32-ETH01
I created a nice enclosure for the WT32-ETH01 + Relays
see thingiverse.. https://www.thingiverse.com/thing:4750234
see thingiverse.. https://www.thingiverse.com/thing:4750234
Re: WT32-ETH01
Yep.
Can you make an issue on Github for it, as these things on the forum as next to impossible to find back later when I'm at a computer I can actually code and compile on and the forum doesn't have a mark unread....
Re: WT32-ETH01
Nice enclosure!hamster wrote: ↑04 Feb 2021, 21:38 I created a nice enclosure for the WT32-ETH01 + Relays
see thingiverse.. https://www.thingiverse.com/thing:4750234
Re: WT32-ETH01
Is there any chance to start lan8720 on esp 32 DevKit V1? I have no GPIO-0!
- Attachments
-
- esp32_pinout.png (93.34 KiB) Viewed 47948 times
Re: WT32-ETH01
You should be able to use another unused GPIO pin instead of GPIO0, the configuration for the LAN interface on the _ETH builds is quite flexible.
Might be better to avoid the (few) input-only pins, I assume, those can be used for switches etc.
Might be better to avoid the (few) input-only pins, I assume, those can be used for switches etc.
/Ton (PayPal.me)
Re: WT32-ETH01
GPIO-0 is sadly the only one to use when your LAN board has an external crystal, like those boards sold on Ali Express.
But, there is hope, as I am also using those on my board designs![Lach :)](./images/smilies/icon_e_smile.gif)
There are 2 ways you can make this work:
- Wire a GPIO pin to the enable pin of the crystal (probably need a transistor to make sure it remains low at boot)
- Add one of those "analog switch" chips to toggle between the LAN clock and "normal GPIO-0" mode.
I implemented the latter as it seemed to be easier for me, when designing my own boards. But those chips are quite small so no way to implement it on a breadboard.
See part of my schematics below.
The 2x7 pins pinheader is wired for those boards from Ali.
The NC pin on that header is here labelled for "OSC_EN" just in case I needed to go for option 1, but the analog switch performs fine.
On previous builds I used another chip, but those are out of stock at JLCPCB, so that's why I used this one.
Keep in mind that the clock signal is high frequency (25 or 50 MHz), so keep it as short as possible.
The LAN chip may take quite a lot of current. 50 - 100 mA is not uncommon when enabled.
If your board doesn't have GPIO-0 output to a pin, you may want to look at the "boot" switch, as that one is connected to GPIO-0
But for an external eth board with crystal you must use GPIO-0.
Not sure what may happen if you just short the crystal output by pressing the button, so you may also remove the button and make it into a pin header. In case of emergency you can then disconnect the ETH clock signal and short the pins to enter flash mode (if the onboard transistors can't help you here)
But, there is hope, as I am also using those on my board designs
![Lach :)](./images/smilies/icon_e_smile.gif)
There are 2 ways you can make this work:
- Wire a GPIO pin to the enable pin of the crystal (probably need a transistor to make sure it remains low at boot)
- Add one of those "analog switch" chips to toggle between the LAN clock and "normal GPIO-0" mode.
I implemented the latter as it seemed to be easier for me, when designing my own boards. But those chips are quite small so no way to implement it on a breadboard.
See part of my schematics below.
The 2x7 pins pinheader is wired for those boards from Ali.
The NC pin on that header is here labelled for "OSC_EN" just in case I needed to go for option 1, but the analog switch performs fine.
On previous builds I used another chip, but those are out of stock at JLCPCB, so that's why I used this one.
Keep in mind that the clock signal is high frequency (25 or 50 MHz), so keep it as short as possible.
The LAN chip may take quite a lot of current. 50 - 100 mA is not uncommon when enabled.
If your board doesn't have GPIO-0 output to a pin, you may want to look at the "boot" switch, as that one is connected to GPIO-0
But for an external eth board with crystal you must use GPIO-0.
Not sure what may happen if you just short the crystal output by pressing the button, so you may also remove the button and make it into a pin header. In case of emergency you can then disconnect the ETH clock signal and short the pins to enter flash mode (if the onboard transistors can't help you here)
- Attachments
-
- 2021-11-22 08_59_08-Schematic_Brick4U ESP32 rev7.10 ext. LAN8720A DC-DC onboard_2021-11-20.pdf - Ado.png (119.29 KiB) Viewed 47944 times
Re: WT32-ETH01
So many manipulation. Easy way is buy new esp32)TD-er wrote: ↑22 Nov 2021, 09:03 GPIO-0 is sadly the only one to use when your LAN board has an external crystal, like those boards sold on Ali Express.
But, there is hope, as I am also using those on my board designs
There are 2 ways you can make this work:
- Wire a GPIO pin to the enable pin of the crystal (probably need a transistor to make sure it remains low at boot)
- Add one of those "analog switch" chips to toggle between the LAN clock and "normal GPIO-0" mode.
I implemented the latter as it seemed to be easier for me, when designing my own boards. But those chips are quite small so no way to implement it on a breadboard.
See part of my schematics below.
The 2x7 pins pinheader is wired for those boards from Ali.
The NC pin on that header is here labelled for "OSC_EN" just in case I needed to go for option 1, but the analog switch performs fine.
On previous builds I used another chip, but those are out of stock at JLCPCB, so that's why I used this one.
Keep in mind that the clock signal is high frequency (25 or 50 MHz), so keep it as short as possible.
The LAN chip may take quite a lot of current. 50 - 100 mA is not uncommon when enabled.
If your board doesn't have GPIO-0 output to a pin, you may want to look at the "boot" switch, as that one is connected to GPIO-0
But for an external eth board with crystal you must use GPIO-0.
Not sure what may happen if you just short the crystal output by pressing the button, so you may also remove the button and make it into a pin header. In case of emergency you can then disconnect the ETH clock signal and short the pins to enter flash mode (if the onboard transistors can't help you here)
I found this solution but it works, i guess, only with custom firmware. can't figure out how starting it with my esp.
Re: WT32-ETH01
What do you mean by only working with a custom build?
Which eth module do you use?
And what do you mean with "how starting it with my esp."
I assumed it was about the GPIO-0 being toggled at boot.
Another way is to let the ESP32 send the clock to the eth board, but that probably requires modification on the external eth board, if you're using the one I think you are using.
Which eth module do you use?
And what do you mean with "how starting it with my esp."
I assumed it was about the GPIO-0 being toggled at boot.
Another way is to let the ESP32 send the clock to the eth board, but that probably requires modification on the external eth board, if you're using the one I think you are using.
Re: WT32-ETH01
Custom means firmware for arduino. i forget send link http://arduino.ru/forum/apparatnye-vopr ... -devkit-v1TD-er wrote: ↑22 Nov 2021, 09:44 What do you mean by only working with a custom build?
Which eth module do you use?
And what do you mean with "how starting it with my esp."
I assumed it was about the GPIO-0 being toggled at boot.
Another way is to let the ESP32 send the clock to the eth board, but that probably requires modification on the external eth board, if you're using the one I think you are using.
I using lan8720
starting means how can i get this works with esp32.
Td-er please read the link above, maybe You can find out how get this work together.
Re: WT32-ETH01
If Google translate didn't mess up, then I think this is almost exactly what I described:
Either disable the crystal during boot by connecting the OSC_EN pin with the eth power pin (which can be configured in ESPEasy)
Only you have to probably invert the signal, hence my remark for the transistor.
The other idea they mention, so you don't need to use the clock on GPIO-0 is to use it on GPIO-17 (which is one of the options in ESPEasy if I'm not mistaken) but then you need to keep the OSC_EN pin pulled down.
Just make sure all other pins you need (see my schematic) are present on your board.
If GPIO-0 is missing, what other pins may be missing too?
Either disable the crystal during boot by connecting the OSC_EN pin with the eth power pin (which can be configured in ESPEasy)
Only you have to probably invert the signal, hence my remark for the transistor.
The other idea they mention, so you don't need to use the clock on GPIO-0 is to use it on GPIO-17 (which is one of the options in ESPEasy if I'm not mistaken) but then you need to keep the OSC_EN pin pulled down.
Just make sure all other pins you need (see my schematic) are present on your board.
If GPIO-0 is missing, what other pins may be missing too?
Re: WT32-ETH01
I have all pins needed except GPIO-0. I tryed his wiring but don`t get success.TD-er wrote: ↑22 Nov 2021, 10:17 If Google translate didn't mess up, then I think this is almost exactly what I described:
Either disable the crystal during boot by connecting the OSC_EN pin with the eth power pin (which can be configured in ESPEasy)
Only you have to probably invert the signal, hence my remark for the transistor.
The other idea they mention, so you don't need to use the clock on GPIO-0 is to use it on GPIO-17 (which is one of the options in ESPEasy if I'm not mistaken) but then you need to keep the OSC_EN pin pulled down.
Just make sure all other pins you need (see my schematic) are present on your board.
If GPIO-0 is missing, what other pins may be missing too?
in second case GPIO-17 i should connect to nINT/RETCLK (lan 8270). NC no need connection so it`s empty.
help with my screenshot please.
Re: WT32-ETH01
Ah, another reason to avoid those 30 pin ESP32-Devkit1 boards, they lack some GPIOs being made available externally
and especially GPIO0 can be nice to have available...
When using the, rather good available, actual WT32-ETH1 board, this shouldn't be an issue, AFAICS.
![Verrast :o](./images/smilies/icon_e_surprised.gif)
When using the, rather good available, actual WT32-ETH1 board, this shouldn't be an issue, AFAICS.
/Ton (PayPal.me)
Re: WT32-ETH01
Not sure how much difference it makes, but selecting the "Ethernet PHY type: LAN8720" could be of help?
/Ton (PayPal.me)
Re: WT32-ETH01
Yep. Now i know.
Re: WT32-ETH01
Pleae try with I2C address set to 1
Re: WT32-ETH01
You probably need to pull the enable pin down via a 4k7 resistor.
And how is the clock signal connected to the ESP?
And how is the clock signal connected to the ESP?
Re: WT32-ETH01
I don't know if the phase of the clock matters here.
GPIO-17 is the inverse signal of GPIO-16 (at least when it is set to be used as clock)
So you may also try GPIO-16.
Does the log suggest the ETH board is found?
GPIO-17 is the inverse signal of GPIO-16 (at least when it is set to be used as clock)
So you may also try GPIO-16.
Does the log suggest the ETH board is found?
Re: WT32-ETH01
FOund something
AP Mode: Client connected:Connected devices: 1
213841: UNKNOWN WIFI/ETH EVENT: 18
216695: WD : Uptime 4 ConnectFailures 0 FreeMem 175572 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
216702: UNKNOWN WIFI/ETH EVENT: 18
Re: WT32-ETH01
The summary like "ETH PHY Type: " should even be printed before it attempts to initialize the eth module.
Make sure it is still set to use Ethernet and not WiFi.
Make sure it is still set to use Ethernet and not WiFi.
Re: WT32-ETH01
I did it about a year ago.
It worked, but I don't remember the settings.
Then I bought a WT32.
It worked, but I don't remember the settings.
Then I bought a WT32.
Re: WT32-ETH01
What build are you running?
And especially what reported SDK version?
Re: WT32-ETH01
TD-er wrote: ↑22 Nov 2021, 11:31What build are you running?
And especially what reported SDK version?
Re: WT32-ETH01
If you have another of those modules, maybe you can (later) try it.
The LAN7820 is not as ESD resistant as I would have hoped.
I do have 2 boards here that show symptoms of ESD damage (or maybe bad solder joints?) which are not found anymore by the ESP, but the LED comes to life when you plugin in an ethernet cable.
So it is not entirely dead, but it is unusable.
The LAN7820 is not as ESD resistant as I would have hoped.
I do have 2 boards here that show symptoms of ESD damage (or maybe bad solder joints?) which are not found anymore by the ESP, but the LED comes to life when you plugin in an ethernet cable.
So it is not entirely dead, but it is unusable.
Re: WT32-ETH01
Can you help me with uploading?
Code: Select all
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM8
Uploading .pio\build\esp32-wt32-eth01-ble-eth\firmware.bin
esptool.py v3.1
Serial port COM8
Connecting....
Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 8c:ce:4e:94:89:b0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00170fff...
Compressed 17104 bytes to 11191...
Writing at 0x00001000... (100 %)
Wrote 17104 bytes (11191 compressed) at 0x00001000 in 0.4 seconds (effective 374.8 kbit/s)...
File md5: c7cb2e45cc40c8b7cce87e020697828a
Flash md5: c0cd99e3e52010a71f140072d1617ce2
MD5 of 0xFF is 7ea35274918423fa507e1777596ea577
A fatal error occurred: MD5 of file does not match data in flash!
Re: WT32-ETH01
Are you uploading the "factory" file (bin file with "factory" in the name) ?
Re: WT32-ETH01
Hmm that doesn't look like the ESPEasy project.
So I have no idea if the file is even correct.
You can check it by uploading it to just any ESP32 board, to see if that will work, just to make sure it is a correct binary.
So I have no idea if the file is even correct.
You can check it by uploading it to just any ESP32 board, to see if that will work, just to make sure it is a correct binary.
Re: WT32-ETH01
Sorry, that was openmqttgateway, but with ESPEasy same situation
ESP Easy flasher:
Code: Select all
[04.01.2022 14:11:23] trying to connect
[04.01.2022 14:11:23] flush start
[04.01.2022 14:11:23] setting serial port timeouts to 1 ms
[04.01.2022 14:11:23] setting serial port timeouts to 1000 ms
[04.01.2022 14:11:23] flush complete
[04.01.2022 14:11:23] espcomm_send_command: sending command header
[04.01.2022 14:11:23] espcomm_send_command: sending command payload
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] espcomm_send_command: receiving 4 bytes of data
[04.01.2022 14:11:23] Uploading 1711296 bytes from C:\Users\dangerd\Downloads\ESPEASY\bin\ESP_Easy_mega_20211224_normal_ESP32_4M316k_ETH.bin to flash at 0x00000000
[04.01.2022 14:11:23] erasing flash
[04.01.2022 14:11:23] size: 1a1cc0 address: 000000
[04.01.2022 14:11:23] first_sector_index: 0
[04.01.2022 14:11:23] total_sector_count: 418
[04.01.2022 14:11:23] head_sector_count: 16
[04.01.2022 14:11:23] adjusted_sector_count: 402
[04.01.2022 14:11:23] erase_size: 192000
[04.01.2022 14:11:23] espcomm_send_command: sending command header
[04.01.2022 14:11:23] espcomm_send_command: sending command payload
[04.01.2022 14:11:23] setting serial port timeouts to 16256 ms
[04.01.2022 14:11:23] read 0, requested 1
[04.01.2022 14:11:23] setting serial port timeouts to 1000 ms
[04.01.2022 14:11:23] warning: espcomm_send_command: didn't receive command response
[04.01.2022 14:11:23] warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
[04.01.2022 14:11:23] closing bootloader
[04.01.2022 14:11:23] flush start
[04.01.2022 14:11:23] setting serial port timeouts to 1 ms
[04.01.2022 14:11:23] setting serial port timeouts to 1000 ms
[04.01.2022 14:11:23] flush complete
[04.01.2022 14:11:23] error: espcomm_upload_mem failed
[2022-01-04 14:11:23] DONE! BUT WITH (1) ERRORS!
############################
[2022-01-04 14:11:23] The COM port was already in use... the post-flash did not complete.
[2022-01-04 14:11:23] JOB COMPLETED, over and out!
RX/TX connected to TX0/RX0, IO0 to GND and 3v3 to 3v3...
Re: WT32-ETH01
Don't use the ESPEasy flasher (the blue/white Windows tool) with ESP32.
You can use the included Espressif download tool.
Also make sure to use a flasher which can handle enough current as the eth part does add 40 - 100 mA to the current consumption.
You can use the included Espressif download tool.
Also make sure to use a flasher which can handle enough current as the eth part does add 40 - 100 mA to the current consumption.
Re: WT32-ETH01
If you get checksum errors, it may be that your AV is interfering with your build process. You may want to exclude the ESPEasy folder (and subfolders) from scanning by AV. And possibly processes like the flash tools.
/Ton (PayPal.me)
Who is online
Users browsing this forum: No registered users and 24 guests