cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing w5500 to stm32l431rct6

Abdegou_8
Associate II

Hi everyone

I'm a student and I'm totally new to stm32 controllers

I spend two weeks trying connecting stm32l431rct6 to w5500 but I failed

can any one guide me to a tutorial or some videos that I can use ? or can anyone help me

thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Foued_KH
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Foued_KH
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Abdegou_8
Associate II

tahank you very much for you responding

I already did that but I did not know how to send the data

anyway thank you