Not getting IP address on S5D9 IOT ENABLER board

Hi,

I am not able to get get an IP_ADDRESS on my S5D9 board. When I call nx_http_client_get_start, it is always returning status as 21.

 

I installed the bsp for this board using instruictions from here https://renesasrulz.com/synergy/f/synergy---forum/8894/from-seedstudio-s5d9-vs-pk-s5d9/33540#33540

 

  • Hi suru,

    Are you running DHCP client in your application? Have you called nx_dhcp_start and been waiting (nx_ip_status_check) until IP status changes to NX_IP_ADDRESS_RESOLVED?

    Regards,
    adboc
  • In reply to adboc:

    Hi Adboc,

    I have called nx_dhcp_start and it returning 0(SUCCESS). As shown below

    status_dhcp = nx_dhcp_start(&g_dhcp_client0);                  // Getting 0

    err_one = nx_ip_interface_status_check(&g_ip0, 0, NX_IP_LINK_ENABLED, &status, NX_WAIT_FOREVER); // Taking infinite time

    err_two = nx_ip_status_check(&g_ip0, NX_IP_ADDRESS_RESOLVED, &status, TX_WAIT_FOREVER);

     

     

    In this case status_dhcp is 0 and nx_ip_interface_status_check is taking long time since i have passed NX_WAIT_FOREVER, if i specified  timeout value err_one is getting 0x43

    I am using S5D9 IOT ENABLER Board.  So is there any problem with BSP packages ?

  • In reply to suru:

    This same code is working perfectly on s7g2 board
  • In reply to suru:

    Hi sure,

    Have you set proper Reset Pin in NetX Port ETHER on sf_el_nx module? According to design data available at github.com/.../S5D9 Kit.zip it's P404 (IOPORT_PORT_04_PIN_04, for channel 0 as S5D9 has one ETH channel).

    Regards,
    adboc
  • In reply to adboc:

    Thanks Adboc,
    It working now. I changed the pin and channel in the properties of the ethernet driver from the configuration menu