AnsweredAssumed Answered

LwIP_HTTP_Server_Netconn_RTOS example + Static IP + STM32F767ZI

Question asked by christopher nagy on Jun 10, 2018

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?   

Outcomes