-
Notifications
You must be signed in to change notification settings - Fork 36
Description
I am having issues connecting an Ethernet Featherwing with a Feather RP2040 microcontroller. I used the "adafruit-circuitpython-adafruit_feather_rp2040-en_US-8.2.9.uf2" (Latest Stable) file to image the RP2040. I added adafruit_wiznet5k, adafruit_bus_device, and adafruit_requests.mpy to the lib folder. I got these from the "adafruit-circuitpython-bundle-8.x-mpy-20240118" bundle.
When running wiznet5k_simpletest_manual_network.py, it gives this error:
eth = WIZNET5K(spi_bus, cs)
Traceback (most recent call last):
File "code.py", line 48, in <module>
File "/lib/adafruit_wiznet5k/adafruit_wiznet5k.py", line 243, in __init__
File "/lib/adafruit_wiznet5k/adafruit_wiznet5k.py", line 1059, in _wiznet_chip_init
RuntimeError: Failed to initialize WIZnet module.
I tried messing with the Baurdrates. Nothing worked there. I tried putting every library file in that bundle in the lib folder just in case. I tried getting the most updated version of Adafruit_CircuitPython_Wiznet5k and Adafruit_CircuitPython_BusDevice. Now I have the wiznet5k .py files instead of .mpy files on the board so I can debug further. I found that this is where it's getting caught:
def _detect_and_reset_w5500() -> bool:
...
self._write_mr(0x08)
if self._read_mr() != 0x01:
return False
...
Do you have any suggestions on a fix for this? Any help would be appreciated.