Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Sakthivel
Level 3
Level 3
50 sign-ins 10 questions asked First like received

Hi team,

We had designed custom board of Aurix TC39x. We are working on bringing up Ethernet. For the Ethernet evaluation we are using the existing Ethernet_1_KIT_TC397_TFT project. We are using KSZ9897 (7-port ethernet switch) to which the RGMII data of GETH will be driven to port-6 of KSZ9897 in MAC mode(No internal PHY). We had configured the GETH module and RGMII data has been sent to port-6 of KSZ9897.

We could able to assign static IP to Aurix and could able to ping from other device which is connected to the same switch.
If we enable DHCP in Aurix firmware, we are facing some issues.

Our observation:-

1. We found that DHCP client(Aurix) haven't send "discover" packet to initiate the DHCP mechanism.

2. Ifx_Lwip_pollTimerFlags() function directing to dhcp_start which leads to discover the DHCP server. This is happening only when IFX_LWIP_FLAG_DHCP_FINE and NETIF_FLAG_LINK_UP are set. In our case they are not getting set.

3. We are forcing to call dhcp_fine_tmr() in Ifx_Lwip_pollTimerFlags() without checking IFX_LWIP_FLAG_DHCP_FINE and NETIF_FLAG_LINK_UP flags.

4. This leads to discover the DHCP server. DHCP IP is assigned.  We could not able to ping from peer device.

5. After getting assigned with IP address, DHCP reboot is happening repeatedly. (Brief debug log is attached to this thread)

As it is not the standard procedure to initiate DHCP mechanism, we would like to know when and what conditions update the IFX_LWIP_FLAG_DHCP_FINE , NETIF_FLAG_LINK_UP flags and other timer flags.

How do we need to take care of IFX_LWIP_FLAG_DHCP_FINE and NETIF_FLAG_LINK_UP flags in order to have a smooth DHCP mechanism?

Help is most appreciated.

Regards,

Sakthivel.

3 Replies
Sakthivel
Level 3
Level 3
50 sign-ins 10 questions asked First like received

Hi team,

Hope you have understood the query. We are looking forward for your response.

Regards,

Sakthivel.

0 Likes
Sakthivel
Level 3
Level 3
50 sign-ins 10 questions asked First like received

Hi team,

We had brought up the DHCP and IP got assigned.

We could able to ping from peer device but we could not able to access the client terminal using PuTTY.
We had debugged on it, and we noticed that echoAccept call back is not been called.

TCP binding with default port 80 but it is not accepting the devices? 

Can we have any debugging tips on it?

Help is most appreciated.

Regards,

Sakthivel.

0 Likes
Translation_Bot
Community Manager
Community Manager
Community Manager
100 likes received

Do you have any ideas to solve this? I also encountered this problem. After troubleshooting, the function echoAccept was not called

Thanks.

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/AURIX/%E4%BB%A5%E5%A4%AA%E7%BD%91-DHCP-IP-%E5%9C%B0%E5%9D%80%E9%97%AE%E9%A2%98/m-p/674515

0 Likes