XMC4500 and the peripheral ETH0

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

cross mob
GoKl_4594211
Employee
Employee
I use DAVE™ (Version 4) for XMC4500 and the peripheral ETH0.

In the XMC Lib in the file xmc_eth_mac.c there is an assert (l. 328 and l. 408), which seem strange to me:
XMC_ASSERT("XMC_ETH_MAC_SendFrame:", eth_mac->regs != ETH0);
Why should the eth_mac->regs not be ETH0?
My Application, that works well, always gets stuck in this assert.
Does it mean something?
0 Likes
6 Replies
Not applicable
HI,

That's strange. 😞

Are you able to send us your simplified project to take a look at this.

Thanks.

Regards,
Daryl
0 Likes
lock attach
Attachments are accessible only for community members.
Not applicable
Hello,

you can take the example of the XMC-Lib:
XMC_Peripheral_Library_v2.1.2\XMCLib\examples\XMC4500_series\ETH\HTTPSERVER_NETCONN
- Add UART.c and UART.h (Attachment UART.txt)
- Add in main.c: #include "UART.h" and in the main function initUART();
- Define XMC_ASSERT_ENABLE and XMC_USER_ASSERT_FUNCTION in Properties
Than you can see it. 🙂
0 Likes
Not applicable
My Application, that works well, always gets stuck in this assert
0 Likes
Not applicable
HI,


This is an error in the assert condition. The actual condition should have been XMC_ASSERT("XMC_ETH_MAC_SendFrame:", eth_mac->regs == ETH0);
The same issue is in the read API. 😞

I have filed a TP (#83388) for this issue, to be fixed in the next release in May.
http://www.infineonforums.com/support/dave3/index.php?option=com_maqmahelpdesk&Itemid=0&id_workgroup...

Regards,
Daryl
0 Likes
GoKl_4594211
Employee
Employee
Daryl, thank you.
0 Likes
Not applicable
HI Werner,

You're welcome! 🙂

Regards,
Daryl
0 Likes