AnsweredAssumed Answered

The DHCP question in the MQX

Question asked by Robin Zou on Sep 18, 2014
Latest reply on Sep 22, 2014 by Daniel Chen

My device is MK64FN1M0VMD12.The hardware is TWR-K64F120M. My compiler is IAR 7.2.

The MQX is Freescale_MQX_4_1_TWRK64F120M.

I write a tftps program.

When the function “ipcfg_bind_staticip (phy_addr,
&ip_data)” is used to bind the IP.

The tftps can work immediately after the program print   "\nTFTP Server is running."

 

But when the function “ipcfg_bind_dhcp_wait(phy_addr, 1,&ip_data)” is used to bind the IP .The tftps can not work immediately after the program
print   "\nTFTP Server isrunning." It costs about 6 seconds to run the tffps .

What is the reason?

 

The source code.

Outcomes