STM32 Nucleo-F746ZG ethernet

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
levsh
Posts: 1
Joined: Thu Sep 29, 2016 6:49 pm

STM32 Nucleo-F746ZG ethernet

Post by levsh » Mon Dec 26, 2016 12:52 pm

Hi!
Sorry for this newbie question )
Is it possible to use onboard ethernet on STM32 Nucleo-F746ZG from micropython?

User avatar
marfis
Posts: 215
Joined: Fri Oct 31, 2014 10:29 am
Location: Zurich / Switzerland

Re: STM32 Nucleo-F746ZG ethernet

Post by marfis » Sat Dec 31, 2016 1:52 am

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.

mhanuel
Posts: 2
Joined: Wed Jan 25, 2017 3:26 am

Re: STM32 Nucleo-F746ZG ethernet

Post by mhanuel » Thu Oct 12, 2017 10:31 pm

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,

forester3
Posts: 22
Joined: Sat Oct 21, 2017 5:01 am

Re: STM32 Nucleo-F746ZG ethernet

Post by forester3 » Tue Mar 13, 2018 10:54 am

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.

JDubU
Posts: 2
Joined: Sun May 27, 2018 4:11 am

Re: STM32 Nucleo-F746ZG ethernet

Post by JDubU » Sun May 27, 2018 4:40 am

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.

forester3
Posts: 22
Joined: Sat Oct 21, 2017 5:01 am

Re: STM32 Nucleo-F746ZG ethernet

Post by forester3 » Sat Jun 16, 2018 3:40 am

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,

JDubU
Posts: 2
Joined: Sun May 27, 2018 4:11 am

Re: STM32 Nucleo-F746ZG ethernet

Post by JDubU » Sun Jun 17, 2018 9:09 pm

Hi forester3,

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

Post Reply