WT32-ETH01 board not working with Arduino IDE 2.0

I use a WT32-ETH01 board and I use the Arduino IDE (Version 2.0.0-rc5) on Mac OS.

After that, I installed the board "ESP32 by Espressif Systems (Version 2.0.2)" with the Boards Manager and installed libraries (such as WebServer_WT32_ETH01 or Websockets_Generic).

I also added the following line to the Arduino IDE Preferences:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

After all the installation work, I tried to compile some Example sketches.

However, no matter which WT32-ETH01 library Example sketch I try to compile and run, I get the following error message:

../Library/Arduino15/packages/esp32/hardware/esp32/2.0.2/cores/esp32/Arduino.h:201:10: fatal error: pins_arduino.h: No such file or directory
#include "pins_arduino.h"
^~~~~~~~~~~~~~~~
compilation terminated.

Why does this board not work with the newest Arduino IDE 2.0 ?


And I also tried using the old Arduino IDE 1.18.19 - but same error message.

What is wrong with the ESP32 Boards Manager installation ? Why is the WT32-ETH01 board not working with the standard library Examples (such as, for example, WebServer_WT32_ETH01 or Websockets_Generic) ?

Or what steps am I missing with this board installation ?

This is a bug of the latest ESP32 core, for WT32_ETH01. You have to select Board = ESP32_DEV to compile and run normally. It'll be helpful if you can file an issue to the ESP32 core.

Thanks for using my WebServer_WT32_ETH01 and Websockets_Generic libraries.

I recognized the same issue in the past. Just testing again and it's OK now. Possibly you have to reinstall the ESP32 core v2.0.2 with some recent updates.

I re-installed ESP32 core v2.0.2 and also the two libraries WebServer_WT32_ETH01 and Websockets_Generic - but without any success. Still the same error.

However, I saw that you are using Arduino IDE 1.8.16. I am using 1.8.19 - but I don't think this causes the issue, or does it ?

Which "additional Boards Manager URLs have you defined" under Preferences ??

(I have the following three ones defined under Preferences :

https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,

https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json,

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

(all separated by a comma)

Are you on Windows or Mac ?


Compiling as Board = ESP32_DEV Module goes one step further - but I get the next error as seen on the following screenshot.

Arduino v1.8.19 is OK as well. I'm using


Linux Ubuntu 20.04LTS

Possibly I recently updated to new esp32-s3 test core and the issue was solved there

https://github.com/espressif/arduino-esp32/raw/esp32-s3-support/package/package_esp32_index.template.json

As found here, you can overcome the second error by doing the following in a terminal on your Mac:

sed -i -e 's/=python /=python3 /g' ~/Library/Arduino15/packages/esp32/hardware/esp32/*/platform.txt

With this done, I have the Board = ESP32_DEV Module now working.

Still, I would like the Board = WT32-ETH Ethernet Module also working - since this is the actual board and it should work also, no?

Any ideas ?


Ah ok, I just read your answer (i.e. our messages crossed).

Therefore esp32-s3 test core might have solved it.

Should we just wait then until ESP32 core will also have it solved ?

And next error:

When using the Example "WT32_ETH01_WebSocketClient_Sticky_SocketIO" (from the library Websockets_Generic) then I get the following error:

Any ideas to why this out-of-the-box Example does not work ?

Try the ESP32-S3 branch

If you have issue, research or post on ESP32 core issue as I saw some people have ask the about the installation procedure.

Ethernet is working normally on WT32_ETH01 using ESP32_DEV, for normal ESP32 core v2.0.2 as well esp32-s3 branch.

IMHO, you'd better install the esp32-s3 branch to test as early as possible to see if there is any core issue.

OK I can do that.

Will the above Hash.h error also go away this way ?

You have real issue with your installation. Everything is OK with me here.

hm ok - it might be a Mac M1 thing. Because I have done not more than installed everything with the Arduino IDE just a minute ago. I don't see what I could have messed up with my installation.

Except that I have quite many libraries installed on the Arduino IDE (which might bite each other for some unknown reason). I will try to clean up some to see if this helps.

You can comment out the line and still be OK

//#include <Hash.h>

Update:

Just redundant dangerous leftover from ESP8266 code. I'll fix later.

ok - I understand.

Just one last question: How do I install the new esp32-s3 test core ?

When I replace (under Preferences):

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

by

https://github.com/espressif/arduino-esp32/raw/esp32-s3-support/package/package_esp32_index.template.json

then I do no longer see the ESP32 boards under Tools-->Board.

And also, the code does then not compile.

Do you have any detailed manual on how to replace the board to s3 ?

Just go to esp32-s3 branch, download and follow instructions there to install.

This ESP32-S3 Support #5594 is the thread to support the new esp32-s3 branch.

Did you restart Arduino IDE after update the .json for esp32-s3 ?

Also check

  1. esp32-s3-support
  2. Arduino IDE Install

Update:

If successful, the Board Manager will show ESP32_S3 as follows

Yes, I did restart after putting the .json for esp32-s3. And that is when the problems started: i.e. I was no longer able to install the ESP32 board with the Boards Manager. The following screenshot shows the error "no protocol" (see below).

How can I manually install the custom esp32-s3 board with the Arduino IDE ??

Or is your .json for esp32-s3 false ?

Sorry I have no idea why it's not working for you, as I don't remember now there was anything special to install esp32-s3 branch many months ago.

It's better to research / ask in ESP32 core or Forum about how to install esp32-s3 branch.

Good Luck,

Try the new ESP32 core v2.0.3-RC1 if you still have issue installing new core to support ESP32-S3

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.