Bunch of projects for STM32 Ethernet connection based on ENC28J60 IC physical layer. The first part is devoted to creating ENC28J60 SPI driver and its configuration and setting up. Here is a basic connection diagram:
Demo project uses SPI1 peripheral of STM32F103C8 and well-known development board BluePill. List of used peripherals includes SPI lines and some GPIOs in output mode:
If you need a full description in addition to the sources, it can be found on my site.