How to use network.LAN on NUCLEO_F429

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Posts: 1
Joined: Tue Aug 13, 2019 11:21 am

How to use network.LAN on NUCLEO_F429

Post by chg » Tue Aug 13, 2019 11:25 am


either I am too stupid or there is no explanation how exactly to use the network interface on the mentioned nucleo.

I successfully compiled the latest micropython from github with


and the autocompletion shows the existance of "network.LAN" on the REPL but i don't succedd with starting the LAN and requesting an IP address using DHCP.

Any example that helps me to get started?

User avatar
Posts: 404
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: How to use network.LAN on NUCLEO_F429

Post by jimmo » Tue Aug 13, 2019 2:11 pm

Can you share your code that you're using to request a DHCP lease?

I don't have one of these boards, but I think it should be something like:

Code: Select all

import network
lan = network.LAN()
# use lan.ifconfig() to wait for lease

Posts: 6
Joined: Fri Aug 02, 2019 5:40 pm

Re: How to use network.LAN on NUCLEO_F429

Post by kcoelho » Fri Aug 16, 2019 3:37 pm


When I enter the command "network.LAN()" in the REPL prompt, the prompt itself shuts down.

Any ideas as to why this happens?

Post Reply