laoniaokkk commented on issue #8833:
URL: https://github.com/apache/nuttx/issues/8833#issuecomment-1475092844

   I use this pins for w5500:
   PB12 ---> ETH_INT
   PB13 ---> SPI_CLK
   PB14 ---> SPI_MISO
   PB15 ---> SPI_MOSI
   PD8 ---> ETH_CS
   PE14 ---> EHT_RST
   
   and this is my pin configs:
   #define GPIO_SPI2_MISO    GPIO_SPI2_MISO_1
   #define GPIO_SPI2_MOSI    GPIO_SPI2_MOSI_1
   #define GPIO_SPI2_SCK     GPIO_SPI2_SCK_2
   #define GPIO_W5500_CS      (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\
                                GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN8)
   
   #define GPIO_W5500_RESET   (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\
                                GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN14)
   
   #define GPIO_W5500_INTR     (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|\
                                GPIO_OPENDRAIN|GPIO_PORTB|GPIO_PIN12)
   
   and this is the ifconfig show on console:
   nsh> ifconfig
   eth0    Link encap:Ethernet HWaddr 00:e0:de:ad:be:ef at UP
           inet addr:192.168.1.100 DRaddr:192.168.1.1 Mask:255.255.255.0
   
                IPv4   TCP   UDP  ICMP
   Received     0000  0000  0000  0000
   Dropped      0000  0000  0000  0000
     IPv4        VHL: 0000   Frg: 0000
     Checksum   0000  0000  0000  ----
     TCP         ACK: 0000   SYN: 0000
                 RST: 0000  0000
     Type       0000  ----  ----  0000
   Sent         0000  0000  0000  0000
     Rexmit     ----  0000  ----  ----
   nsh> ping 192.168.1.3
   PING 192.168.1.3 56 bytes of data
   No response from 192.168.1.3: icmp_seq=0 time=1000 ms
   No response from 192.168.1.3: icmp_seq=1 time=1000 ms
   No response from 192.168.1.3: icmp_seq=2 time=1000 ms
   
   I can not ping PC by board or ping board by PC.
   Only when i write the registers(ip netmask gateway) in function 
"w5500_unfence(FAR struct w5500_driver_s *self)",i can ping board by PC,but can 
not ping PC by board
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to