problems with security_webserver project

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

problems with security_webserver project

Jump to solution
688 Views
feraro
Contributor IV

Hello.

I'm testing the demo "security_webserver" and I have the following problem, if DEMOCFG_ENABLE_SNTP = 1 and DEMOCFG_ENABLE_DHCP = 1, it works fine, but if DEMOCFG_ENABLE_SNTP = 1 and DEMOCFG_ENABLE_DHCP = 0, the function "RTCS_resolve_ip_address ()" returns me a 0. Anyone know the cause?.

I need to use this function with DHCP to OFF.

I´m working with MQX3.7


Thanks in advance.

Labels (1)
0 Kudos
1 Solution
466 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Fernando,

Are you sure you are assigning a static IP address to the board that is in the same network where it is connected?

You can set the IP in the file Security.h. Look for the ENET_IPADDR define:

#define ENET_IPADDR  IPADDR(169,254,3,3)

If you are using the IP 192.168.1.5, for instance then you have to change to:

#define ENET_IPADDR  IPADDR(192,168,1,5)

Hope this helps,

Regards,

-Garabo

View solution in original post

0 Kudos
1 Reply
467 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Fernando,

Are you sure you are assigning a static IP address to the board that is in the same network where it is connected?

You can set the IP in the file Security.h. Look for the ENET_IPADDR define:

#define ENET_IPADDR  IPADDR(169,254,3,3)

If you are using the IP 192.168.1.5, for instance then you have to change to:

#define ENET_IPADDR  IPADDR(192,168,1,5)

Hope this helps,

Regards,

-Garabo

0 Kudos