2018-06-09 07:49 PM
Hello,
I am working with a STM32F767-NUCLEO board, rev. Z and I am running into a bit of trouble with the example project provided for lwip. Out of the box, I can run the program in debug mode and ping the address acquired via DHCP. The problem I'm having is that if I enforce the static IP address, I can no longer ping the board. Here's what I changed in the example code [app_ethernet.c]
...
case DHCP_WAIT_ADDRESS:
{// if (dhcp_supplied_address(netif))// {// DHCP_state = DHCP_ADDRESS_ASSIGNED;//// BSP_LED_Off(LED3);// BSP_LED_On(LED1);// }// else...
That results in the static IP of 192.168.0.10 being used. I can see the static IP address with my IP scanner, it claims to be 'alive' but I get a timeout when I ping. Am I missing something as to why I can't connect with a static IP but can when it's dynamic?
2018-06-10 08:13 AM
I was pinging the wrong local network, changing the static ip address to the 10.x.x.x realm worked for me.