AttributeError: 'module' object has no attribute 'WIZNET5K' #12870
Unanswered
skylin008
asked this question in
STM32 / Pyboard
Replies: 1 comment 6 replies
-
WIZNET is misspelt. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used the micropython V1.22, I rebuild the firmware support the network and w5500 as follow:
make MICROPY_PY_LWIP=1 MICROPY_PY_NETWORK_WINZNET5K=5500 BOARD=PYBV11 -j , buit when run the follow code shows error:
def init(self, maxtry = 100):
_spi = SPI(1, baudrate = 21_000_000) # SPI1 highest speed for 42M
_cs = Pin('E_SS', Pin.OUT)
_rst = Pin('E_RST', Pin.OUT)
_rst(0)
sleep_ms(10)
_rst(1)
self._maxtry = maxtry
self._isRuning = False
self.nic = network.WIZNET5K(_spi, _cs, _rst)
Beta Was this translation helpful? Give feedback.
All reactions