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

DAVE™ Forum Discussions

User5327
Level 4
Level 4
Hello,

I am using "XMC4700-F144x2048". I am looking for some stable web server version for our product.

Can someone advice why latest DAVE application "HTTP server 4.0.14" not working (I need Release version working).

When I load hex file into Controller (by Infineon Memtool) - web page not displayed, also ping command not working.

See my Project in attached.
Please help.


Thanks.

Best Regards,
Koumak



Update1: It seems, program stuck somewhere in the init. Any advice - what is problem in the init?
0 Likes
2 Replies
jferreira
Employee
Employee
First like received 750 replies posted 500 replies posted
Hi,

I just checked your project adapting the pins to a XMC4800 relax kit. I can ping the board and the web server is serving the demo page.

Regards,
Jesus
0 Likes
User5327
Level 4
Level 4
Hi,

I found, program stuck in the init - inside ethernetif.c file - inside "XMC_ETH_PHY_Init()" function ->inside "XMC_ETH_PHY_IsDeviceIdValid()" where status = XMC_ETH_PHY_STATUS_ERROR_DEVICE_ID;
but it occures only in Release version of program - after hard reset (power reset => any communication cable disconected - only ethernet connected and supply).

My solution:
add delay before XMC_ETH_PHY_Init():

...
volatile uint32_t counter = 2000000UL;
while(counter > 0)
{
counter--;
}


int32_t status;
if((status = XMC_ETH_PHY_Init(&eth_mac, ETH_LWIP_0_PHY_ADDR, &eth_phy_config)) != XMC_ETH_PHY_STATUS_OK)
{
ETH_LWIP_Error((ETH_LWIP_ERROR_t)status);
}
...



Clock Divider probably need time for stabilizing...?!

Regards,
Koumak
0 Likes