How to use ENC28J60 Ethernet module

Hello,

I want to use the ENC28J60 ethernet module in my UNO R4 WiFi card. Since the Ethercard library only works on AVR-based cards, I cannot use that library. When I try to use the Ethernet library that comes by default, I get a module not found error. The connection diagram is as follows;

ENC28J60 - UNO R4
CS - 10
SI - 11
SCK - 13
SO - 12

Is there anyone who can help with this?

Please post the full error output.

Failed to configure Ethernet using DHCP
Ethernet shield was not found.  Sorry, can't run without hardware. :(

use the EhernetENC library