8000 esp32: build with wiznet5k / w5500 driver · Issue #4447 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

esp32: build with wiznet5k / w5500 driver #4447

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

Closed
balku opened this issue Jan 30, 2019 · 12 comments
Closed

esp32: build with wiznet5k / w5500 driver #4447

balku opened this issue Jan 30, 2019 · 12 comments

Comments

@balku
Copy link
balku commented Jan 30, 2019

Hi,
like to build a esp32 port that include the W5500 driver. How can I do this?
Thanks
balku

@dmartauz
Copy link

I am also very interested in this. Having Ethernet support implemented via SPI adapter with the bus shared with other peripherals would be interesting alternative to RMII using built-in Ethernet MAC.

@dpgeorge
Copy link
Member

It is quite a lot of work to do this. The W5500 can run in either managed mode (with TCP/IP stack on the w5500) or in MAC raw mode (TCP/IP stack provided by the host). Integrating it in either of these modes is hard: managed mode requires a completely separate socket implementation (basically taken from the stm32 port) and it wouldn't work seamlessly with the wifi; and MAC raw mode requires hooking it in to the low lwIP layers provided by the ESP IDF. Probably the latter is the better approach.

Such support (in either form) is not on the roadmap for esp32 and would need to be contributed. In the meantime it supports Ethernet via other RMII adapters.

@dpgeorge dpgeorge changed the title build esp32 port including wiznet5k / w5500 driver esp32: build with wiznet5k / w5500 driver Jan 31, 2019
@balku
Copy link
Author
balku commented Jan 31, 2019

Hi Damien,
many thanks for your answer. Which RMII adapters would you recommend for a esp32 port of MP?
Thanks balku

@dpgeorge
Copy link
Member

Which RMII adapters would you recommend for a esp32 port of MP?

I haven't tried any myself. For previous discussion see micropython/micropython-esp32#172 and micropython/micropython-esp32#187

@balku
Copy link
Author
balku commented Jan 31, 2019

Many thanks for your help.

@imliubo
Copy link
Contributor
imliubo commented Dec 8, 2020

Hi, I saw ESP-IDF now is support W5500 in this commit: eth: support W5500 in network examples.

So micropython is also can support it?

@kenjican
Copy link
Bump! we do need support for W5500. I've tried LAN8720 with Wrover , but not luck. The network.LAN need GPIO 17 ,GPIO16 but these two pins are occupied by spiram. and GPIO0 not OUT mode.

And RMII consumes more than 10 pins...it's a little bit wasteful.

@newbie-gk
Copy link

Is this WIZNET5K available in the esp32 port yet?

tannewt added a commit to tannewt/circuitpython that referenced this issue Apr 13, 2021
< 8000 input type="hidden" name="id" value="MDY6Q29tbWl0NjYwMjgyMjc6YjFmNGE5YTlmZDY3OWY0OGNmOWYzZDYyZGZmYWRkYTRlYmEzNmYwNg==" autocomplete="off" data-targets="batch-deferred-content.inputs" />
[synthio] add a simple MidiTrack implementation
@tmecha
Copy link
tmecha commented Sep 17, 2021

Same: W5500 for ESP32 via WIZNET5k option? Can't tell that this issue actually got resolved.

@beyonlo
Copy link
beyonlo commented Nov 24, 2021

Hello.

I'm interested too to use the W5500 on the ESP32 and the ESP32-S3. Anyone know if actually the W5500 is supported by MicroPython port for the ESP32?

Thank you.

@Ayyoubzadeh
Copy link

@beyonlo
Copy link
beyonlo commented Sep 28, 2022

@Ayyoubzadeh Hello!

That's great. Unfortunately I need SSL on driver and better performance, like as a low level driver (not a Python implementation)!

I was starting as well using Python driver (from CircuitPython WizNet driver). Of course your driver is very more dedicated and more tested for MicroPython - excellent.

@andrewleech has implemented is this PR the Wiznet W5100S/W5500 for the rp2040 and that was amazing, works with SSL and very good throughput/performance. The @liudr started a interest to use that work done from @andrewleech to support the Wiznet on the ESP32 as well, but I don't know if that was really continued. I'm talking this story for you because maybe you can follow the same approach if you has interest in to continue that :)

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants
0