Unable to change from dhcp bind to static ip when no dhcp server - device busy

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to change from dhcp bind to static ip when no dhcp server - device busy

1,298 Views
admin
Specialist II

Hi all,

I'm experiencing problems when trying to apply a static ip. The device is configured from start up to poll an ip from a DHCP server (by ipcfg_bind_dhcp). Changing to a fixed IP (using ipcfg_unbind and ipcfg_bind_staticip) is no problem if a server exists in the network however otherwise both functions return IPCFG_BUSY.

When going deeper into the code it looks like that the request_semaphore is not freed and polling for it fails.

What am I doing wrong?

Many thanks in advance

Ren

Labels (1)
Tags (5)
0 Kudos
Reply
1 Reply

948 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Ren,

Have you tried to use ipcfg_bind_dhcp_wait() instead? Make sure that the second parameter is TRUE. This will cause to try auto-ip in case the DHCP request fails.

Hope this helps,

Regards,

Garabo

0 Kudos
Reply