Skip to main content
This topic has been closed for replies.

4 replies

dbgarasiya
Senior
Mar 5, 2020 11:28 AM UTC

have you done right pin configuration

vivek
vivekAuthor
Associate III
Mar 6, 2020 4:14 AM UTC

GPIO_InitTypeDef GPIO_InitStructure;

RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);

GPIO_InitStructure.GPIO_Pin=ETH_SCK | ETH_MOSI | ETH_MISO ; 

GPIO_InitStructure.GPIO_Mode=GPIO_Mode_AF_PP;

GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;

GPIO_Init(GPIOB, &GPIO_InitStructure);  

GPIO_InitStructure.GPIO_Pin=ETH_SS; 

GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP;

GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz;

GPIO_Init(GPIOB, &GPIO_InitStructure); 

dbgarasiya
Senior
Mar 5, 2020 11:30 AM UTC

if your pin configuration is right then delay could be the reason

vivek
vivekAuthor
Associate III
Mar 6, 2020 4:19 AM UTC

yes but at the starting time for setting and getting ip return from w5100 showing wrong data.