2023-04-06 05:04 AM
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
Solved! Go to Solution.
2023-04-06 05:52 AM
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.
2023-04-06 05:52 AM
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.
2023-04-06 07:32 AM
tahank you very much for you responding
I already did that but I did not know how to send the data
anyway thank you