Hello @Abdegou_8 ,
1.Open STM32CubeMX, open MCU selector. Select your MCU stm32l431rct6.
2.Configure Ethernet module to control GPIO:
There are two additional GPIO for Ethernet module
RST PC9 Ethernet module hard reset
INT PA0 Interrupt pin
The reset pin can be configured as output mode.
3. Configure SPI1 interface
In this experiment, I connect the Ethernet module to SPI1 interface, and the pin corresponding table is as follows:
It should be noted that SPI chip selection pins are not controlled by hardware SPI peripherals, but are configured as ordinary GPIO and controlled manually.
MISO PA6(SPI1_MISO)
MOSI PA12(SPI1_MOSI)
SCS PA4(SPI1_NSS)
SCLK PA1(SPI1_SCK)
4.Configure the clock .
You can find the W5500 library.
Foued