-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 with W5500 and platform 3 compille error #45
Comments
I had the exact same issue, the only way to get it to compile is switching to a platform version <3.0.0, the reason being that version 3.0.0 and higher doesn't include the TCP/IP Adapter library anymore, having been deprecated in favour of ESP NETIF. I understand that for this library to work with ESP NETIF it would require a complete review a rewrite following the migration guide, however I don't know if there's a fork that already includes these changes or if anyone is willing to do it. My suggestion would be to use platformIO where you can specifify the platform version, and hence the ESP-IDF version, in this case Arduino ESP32 version 2.0.17 uses ESP-IDF v4.4.7, in platformIO you can specify:
which uses ESP-IDF v4.4.3 and should compile nicely, I've tested it and it does work, whilst I was unable to compile in Arduino IDE unless I downgraded ESP32 platform to 2.0.17. Then I went on and tested with platform 6.7.0, which is the latest, and it does indeed work. It's known that Arduino IDE and Arduino framework inside platwormIO diverge substantially, so this must be one of those cases. At any rate I've always found PIO better for developing. |
a pity, if anybody is willing to fork/adapt the software to make it compile and work again in the Arduino IDE (Linux) for Heltec Wifi Kit 32(V3) (which i use most recently) will be ready to give and hand financially say 100€. |
I had the same issue when migrating from Arduino 2.x to 3.0.7. I managed to patch the source code myself and it worked again until I upgraded to Arduino 3.1.0. Broken again, again several hours of debugging, but managed to fix it again. Needs a lot of Mutexes wrapped around many calls to net_if. |
@martinusGH would you mind to share your results, maybe in a forked repository? |
I've trashed my github development setup a few years ago, and not really planning to restart that. I can try to add the two patched files in here, hope you are able to use those into a working solution. My skills seemed sufficient to make this library work again, but really someone with deep knowledge on ESP32-IDF based networking should try to take over the maintenance of this library. |
Thank you very much @martinusGH for sharing your work! However, the supplied archive seems to miss an updated version of WireGuard-ESP32.h, if am I not getting wrong the following error messages:
I tried to compile the WireGuard-ESP32 v0.1.5 with your patched files on esp32 3.0.7, 3.1.0 and 3.1.1 with similar results. |
I cannot remember changing that file, but let me just upload the entire library that I have now |
ESP32 with connected W5500 ethernet adapter, esp platform 3 compille error
The text was updated successfully, but these errors were encountered: