ESP32 micropython support of W5500 Ethernet

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

ESP32 micropython support of W5500 Ethernet

Post by liudr » Mon May 02, 2022 5:05 am

I've searched around the internet and couldn't find a micropython module that supports W5500 Ethernet adapter. I think it's a necessary component of MP's ecosystem since most MP-compatible boards don't have WiFi like ESP32 does and Ethernet also provides stable networking. The circuitpython module that "works" with W5500 doesn't actually work even under circuitpython. I got it to receive IP address with DHCP but couldn't do any requests as the requests module was not found.

So is there any effort to write an MP driver so all MP boards could benefit from having this? Thanks!

User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

Re: ESP32 micropython support of W5500 Ethernet

Post by liudr » Mon May 02, 2022 5:16 am

I found this reference:

https://docs.micropython.org/en/v1.17/l ... NET5K.html

But when I tried it on my MP 1.17 ESP32, there is no network.WIZNET5K. Here is a blurb:
The particular chipset that is supported by the firmware is selected at compile-time via the MICROPY_PY_WIZNET5K option.
Does this mean I have to attempt to compile my own mp firmware if I want to use this feature?
Has anyone done it to confirm that compiling my own mp firmware will let me use W5500?
I've used IDF extensively but it's been some time since I last did a project on it. It would be great to see some tutorial how to compile mp firmware. I also want to expand the file system to 8MB or even 16MB with WROVER-E modules that have 16MB FLASH. I guess I can only do that if I compile my own mp firmware, correct?

Lobo-T
Posts: 36
Joined: Tue Nov 16, 2021 2:36 pm

Re: ESP32 micropython support of W5500 Ethernet

Post by Lobo-T » Mon May 02, 2022 6:57 am

Wiznet support is being worked on for the RP2040 now (https://github.com/micropython/micropython/pull/8540).
When that is working it will probably be possible to get it working with ESP32 aswell.

User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

Re: ESP32 micropython support of W5500 Ethernet

Post by liudr » Mon May 02, 2022 2:46 pm

That's Great! I noticed your forum handle. Are you anyway related to the lobos firmware that was out around 2018-19?

Lobo-T
Posts: 36
Joined: Tue Nov 16, 2021 2:36 pm

Re: ESP32 micropython support of W5500 Ethernet

Post by Lobo-T » Mon May 02, 2022 3:05 pm

No, different Lobo. :D

User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

Re: ESP32 micropython support of W5500 Ethernet

Post by liudr » Fri May 20, 2022 1:22 pm

Not sure the progress. The git pull comments are too technical for me. Any update?

Lobo-T
Posts: 36
Joined: Tue Nov 16, 2021 2:36 pm

Re: ESP32 micropython support of W5500 Ethernet

Post by Lobo-T » Fri Jun 10, 2022 11:23 am

liudr wrote:
Fri May 20, 2022 1:22 pm
Not sure the progress. The git pull comments are too technical for me. Any update?
The RP2040 version is in the Master branch now. And the Wiznet driver should now be relatively easy to get to work on other ports.

https://github.com/micropython/micropyt ... 1147986269
https://github.com/micropython/micropyt ... 1151701493


But someone has to actually do it...

User avatar
liudr
Posts: 211
Joined: Tue Oct 17, 2017 5:18 am

Re: ESP32 micropython support of W5500 Ethernet

Post by liudr » Fri Jun 10, 2022 7:17 pm

Thanks. I am just a developer, not very well-versed in git. I have no idea how to do this. I have cloned micropython and micropython-libs and just pulled from master. I can also build python. I did that a few times so I can refer to my notes and experience using IDF. Then if you could point out to me how I can include the Wiznet driver in my build and run a simple example, that would be great!
I know that last time I did the build, the build didn't include a wiznet driver. I did help("modules") on it.

Post Reply