Page 1 of 1

STM32 Nucleo-F746ZG ethernet

Posted: Mon Dec 26, 2016 12:52 pm
by levsh
Hi!
Sorry for this newbie question )
Is it possible to use onboard ethernet on STM32 Nucleo-F746ZG from micropython?

Re: STM32 Nucleo-F746ZG ethernet

Posted: Sat Dec 31, 2016 1:52 am
by marfis
ethernet support of this board is implemented using the MII interface (which is not supported by micropython at the moment)

Afaik the only way to connect a uPy board to ethernet is by using the wiznet 5xxx modules.

Re: STM32 Nucleo-F746ZG ethernet

Posted: Thu Oct 12, 2017 10:31 pm
by mhanuel
Hi @levsh and everybody reading this,

I want to know if there is any known effort to have STM32 devices with MII ethernet interface under micropython?

I would like to collaborate but want to know before if someone has done anything on this matter,

Please let me know,

Re: STM32 Nucleo-F746ZG ethernet

Posted: Tue Mar 13, 2018 10:54 am
by forester3
Hi,
I found boochow's blog (and repository).
http://blog.boochow.com/article/455508112.html
https://github.com/boochow/micropython/ ... 2-ethernet

It looks RMII(onboard ethernet) ethernet work with lwip stack well.

And I found this pull request.
https://github.com/micropython/micropython/pull/3379

And then, I got STM32F746-Discovery board.
I added several definitions in boards/STM32F7DISC to work on board RMII ethernet.
https://github.com/forester3/micropytho ... net-F7DISC

It worked well,too.

Re: STM32 Nucleo-F746ZG ethernet

Posted: Sun May 27, 2018 4:40 am
by JDubU
Hello forester3,

I was not able to compile your code from Github. The compiler reports many errors that I suspect may be caused by references to the Micropython master code base, which may have changed recently.

I was able to compile and install boochow's version on a Nucleo-F767zi board and use the examples posted on Github but the connection code just times out so a connection is never successful.

Do you have a complete Micropython code example that demonstrates using wired ethernet on the STM32 boards? How do I set the IP information for the wired ethernet interface?

On the ESP8266 board, I can do this:

nic = network.WLAN(network.STA_IF)
nic.ifconfig(('IP', "mask', 'gateway', 'DNS'))

What would be the equivalent for the wired interface on the stm32 boards?

Thank you.

Re: STM32 Nucleo-F746ZG ethernet

Posted: Sat Jun 16, 2018 3:40 am
by forester3
Hello, JDubU

I'm sorry for my slow resoponse.
And I am not good at English, so I have not frequently checked this forum.

Did you resolve your problem?
Latest pull request for RMII ethernet for stm32 Nucleo be found here:
https://github.com/micropython/micropython/pull/3808

>Do you have a complete Micropython code example that demonstrates using wired ethernet on the STM32 boards? How do I set the IP information for the wired ethernet interface?

You can found test code here: https://github.com/micropython/micropython/pull/3379
Test code is in boochow's comment.

best regards,

Re: STM32 Nucleo-F746ZG ethernet

Posted: Sun Jun 17, 2018 9:09 pm
by JDubU
Hi forester3,

Thank you for the link to boochow's test code. It's working now!!