cancel
Showing results for 
Search instead for 
Did you mean: 

LwIP_HTTP_Server_Netconn_RTOS example + Static IP + STM32F767ZI

christopher nagy
Associate
Posted on June 10, 2018 at 04:49

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?   

1 REPLY 1
christopher nagy
Associate
Posted on June 10, 2018 at 17:13

I was pinging the wrong local network, changing the static ip address to the 10.x.x.x realm worked for me.