-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
I've been trying to get a knock-off LAN8270 board to work on my STM32F407VET6 black board.
I have this board https://os.mbed.com/users/hudakz/code/STM32F407VET6_Hello/
Which I have compiled MicroPython for using this config https://github.com/mcauser/BLACK_F407VE
MicroPython works just fine but I cannot get the LAN8270 board to enable.
The network.LAN module doesn't take an arguments on STM32 and when I try to enable the network this is what I get:
>>> import network
>>> l = network.LAN()
>>> l.active(1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 110] ETIMEDOUT
I checked if the LAN8270 board isn't faulty by connecting it to an ESP32 MicroPython board and it works like it should.
>>> import network
>>> from machine import Pin
>>> lan = network.LAN(mdc=Pin(16), mdio=Pin(17), power=None, id=None, phy_addr=1, phy_type=network.PHY_LAN8720)
>>> lan.active(True)
True
>>> lan.ifconfig()
('192.168.0.107', '255.255.255.0', '192.168.0.1', '192.168.0.1')
Checked config files, pin definitions and everything else I could find. Can't seem to find an answer on how to fix it.
Any tips on what I could be doing wrong?
Reference: mcauser/BLACK_F407VE#6 (comment)