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

DAVE™ Forum Discussions

User2235
Level 3
Level 3
Hi,
Are there plans for ethernet with Lwip examples for Dave 4 and XMClib?

Ari.
0 Likes
4 Replies
User9076
Level 1
Level 1
Hi,
I’m also waiting for such an example. But I have found one. You have to install additional examples.

Go to Dave Help – Install DAVE App / Examples / … - select the Dave Site “DAVE Project Library Manager”.
There you can select different examples like “xmc4500_relaxkit_lwip_httpserver_netconn”.

Markus
0 Likes
User2235
Level 3
Level 3
Thanks Markus,

This example is a good reference to use the XMClib ethernet driver.
I'm waiting for a LwIP (without RTOS) example for XMClib with IAR project.

Ari.
0 Likes
Ullrich
Employee
Employee
Hi to all,
there is still no example for LWIP with Dave apps. I need some send and receive orders here.
0 Likes
Not applicable
Hi all,

Just to contribute, in case of any help, there is a DAVE example project for Modbus TCP, that uses the ETH_LWIP APP, and thus the LwIP middleware. The example can be had as usual from https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html. In the Keyword Search Filter box, type MODBUS. Two matches should result, namely MODBUS_TCP_MODE_XMC47 and MODBUS_RTU_MODE_XMC47, select the former. To be able to download the projects, as usual tick 'I Agree with the Statement Above'.

The example is for the Infineon XMC4700. I've used successfully with the Infineon XMC4800 Relax evaluation board, and with our own XMC4300 based board design.

The example includes Getting Started - XMC4700_Relax_MODBUS_TCP_Example.pdf. On page 17, you'll see it says, on the APP General Settings tab, to tick the 'Enable RTOS' box. I've used successfully with and without that box ticked. Although I did find that for running RTOSless, on the Network Interface tab, I needed to untick the 'Enable autonegotiation' box, to avoid a 2s hiatus in the activities performed by our application, about 1s after boot. I'm running RTOSless, per contract remit.

You can also dig the bones from my https://www.infineonforums.com/threads/4894-EtherCAT-ModbusTCP thread. The mentioned INTERRUPT_0 LwIP stack penetration issue, went away with an ETH_LWIP LwIP uprev, some months back. I've been running since with INTERRUPT_0 enabled from the get go. On the APP Network interface tab, I've got Poll for received data unticked.

Best regards,

David
0 Likes