-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
wiznet5k_send_ethernet: fatal error -5 #17242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can confirm that this happens in MicroPython v1.26.0-preview.120 with a W5500 But it seems very random. Most often you get the The interface still seems to work though. Testscript: from microdot import Microdot
from machine import Pin,SPI
import network
import time
spiBus = 0
spiCLK = 18
spiMOSI = 19
spiMISO = 16
ethCS = 17
ethRST = 28
ethINT = 20
pRST = Pin(ethRST,Pin.OUT)
staticIP = '10.0.250.55'
spinet = SPI(spiBus, 10_000_000, sck=Pin(spiCLK), mosi=Pin(spiMOSI), miso=Pin(spiMISO))
wiznet = network.WIZNET5K(spinet,Pin(ethCS),pRST,Pin(ethINT))
print("Activate")
wiznet.active(True)
print("Set IP")
wiznet.ifconfig((staticIP, '255.255.0.0', '10.0.250.1', '8.8.8.8')) #static
#ipconf = wiznet.ifconfig("dhcp") #dhcp
print(wiznet.ifconfig())
while True:
print('Waiting for Ethernet connection...')
if wiznet.isconnected():
print('Connected to Ethernet')
print(wiznet.ifconfig())
break
time.sleep(2)
app = Microdot()
webpage = '''
<html>
<head>
<title>Wiznet test</title>
<meta http-equiv="refresh" content="2">
</head>
<body>
<h2>Wiznet test</h2>
<p>Reloader om 2 sek</p>
</body>
</html>
'''
@app.route('/')
async def index(request):
return webpage, {'Content-Type':'text/html'}
app.run(port=80,debug=True) Result when connecting with a webbrowser:
I can't remember running into this when the driver was first created some years ago. I think @andrewleech made the driver. Is it OK to tag him in here? |
I did write the driver yes, but haven't actually used it since really! I don't know what this error means really, I'm not sure if the wiznet C drivers have any more information about them |
Port, board and/or hardware
Wiznet W5100S-EVB-Pico
MicroPython version
MicroPython v1.25.0 on 2025-04-15; W5100S-EVB-Pico with RP2040
also 1.24.1, and 1.24.0, but 1.23.0 doesn't give the error
Reproduction
MicroPython v1.25.0 on 2025-04-15; W5100S-EVB-Pico with RP2040
Type "help()" for more information.
Expected behaviour
Expected no error to be reported.
However, the error does not seem to affect the operation. The ethernet socket behaviour seems to be working ok.
Observed behaviour
wiznet5k_send_ethernet: fatal error -5
was printed out, but operation of ethernet seems to be working, however I can't be certain all functions are working correctly at this time
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
The text was updated successfully, but these errors were encountered: