Page 1 of 1

stm32L476RG on W5500 cann't find driver.

Posted: Sat Mar 10, 2018 4:43 am
by john3368863
I downloaded the firmware of stm32L476RG, and I want to connect a w5500 adapter on it. When I start writing code, it reminds me that I have no WIZNET5K driver. How can I add the driver to the firmware? Ask for help

source:
import network
nic = network.WIZNET5K(pyb.SPI(1),pyb.Pin.board.X5,pyb.Pin.board.X4)
print(nic.ifconfig())

error:
Traceback (most recent call last):
File "main.py", line 4, in <module>
AttributeError: 'module' object has no attribute 'WIZNET5K'

Re: stm32L476RG on W5500 cann't find driver.

Posted: Tue Jun 26, 2018 3:07 am
by mheruian
i have the same issues also, i had tried doing dfu setup and uploading the 1.9.4 version of firmware dedicated for network using dfuse. Why is it now working?

Re: stm32L476RG on W5500 cann't find driver.

Posted: Tue Jun 26, 2018 3:08 am
by mheruian
Trying dfu-util also but i can download the dfu-util on sourceforge because the site cannot be reached. Alternatives?

Re: stm32L476RG on W5500 cann't find driver.

Posted: Tue Jun 26, 2018 3:38 am
by mheruian
Able to fixed it after dfu firmware update 1.9.3 then factory reset pyboard v1.1

After factory reset, w/o dfu firmware update, following lines now work

import network
nic = network.WIZNET5K(pyb.SPI(1),pyb.Pin.board.X5,pyb.Pin.board.X4)
print(nic.ifconfig())

:D don't know why is it like that.