Problems with Ethernet without RTOS

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.
Not applicable
Hi,

i tried to build a UDP/IP connection without an RTOS. As a basis i used an example from Dave "Help – Install DAVE App / Examples / … - select the Dave Site “DAVE Project Library Manager", which is called “xmc4500_relaxkit_lwip_httpserver_netconn” and tried to build in an Connection without RTOS using the NO_SYS option in lwipopts.h.

I have a problem during the configuration of the Ethernet port (see image below). In the original program there are no problems.
1492.attach
With wireshark i only get one ARP Request from the µC and ping doesn`t work.
I just can`t figure out what i`m doing wrong.

The program is attached to this Thread. Can somebody help me with my problem?
I use an XMC4500 Relax Kit.

Kind regards
Andreas
0 Likes
4 Replies
lock attach
Attachments are accessible only for community members.
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The example project you tried is using the netconn API that is only available if NOSYS is zero, i.e. in a RTOS environment.
Use the attached example if you do not want to use an RTOS.

Best regards,
Jesus
0 Likes
Not applicable
Hello Jesus,

thank you for the fast answer. My project is now working.
The only problem is, that after maybe 20 seconds i lose the connection. What should i do to run connection continuously?

Best regards,
Andreas
0 Likes
lock attach
Attachments are accessible only for community members.
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Thanks for reporting.I made some modifications.
Please try again.

Best regards,
Jesus
0 Likes
lock attach
Attachments are accessible only for community members.
User11706
Level 2
Level 2
Hello Jesus,

Using Dave4 IDE and latest updates,
I tried to adapt the xmc4500_relaxkit_lwip_httpserver_raw application you attached in this previous post
to run on XMC4400 Hexagon board, but I cannot make it build.
Aparently the link file "linker_script.ld" of the XMC4400 is not compatible (see error below)

Can someone tell me why ?
Eventually point me to an example of lwip use WITHOUT RTOS on XMC4400 ?
I just need to send UDP packets.

Any help is welcome

Jorge
0 Likes