LPC54628 UDP example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54628 UDP example

603 Views
aswinprabhu
Contributor III

Hi,

Can someone please direct me to some easy to understand example codes for transmitting data from LPC54628 to a PC (only transmit, no receive) via UDP? Requirement is to transmit ~250 bytes of data every 1 second.

 

Needless to say, I have no idea how UDP/ Ethernet works. I tried going through the 'lpcxpresso54628_lwip_udpecho_bm' example that is part of SDK_2.9.0. But I am unable to find the code section where the actual transmission of UDP data from the microcontroller takes place. If I can find that, I assume I can pass my data (250 bytes of data) to that code section and it will do the rest.

 

Any help would be greatly appreciated. Thanks..

Labels (1)
Tags (2)
0 Kudos
2 Replies

592 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

Recommend you first study some basic UDP knowledge from google or others, then

debug the SDK demo step by step, also refer to User Manual of LPC54628, you can know

the basic configuration and process.

In the SDK demo, it use this function etharp_output() to send.

 

BR

Alice

587 Views
aswinprabhu
Contributor III

Thank you for mentioning the function that is used by the SDK demo for transmitting packets. While searching for etharp_output() function I came across udp.c in lwip/ipv4 and found some more functions as well.

 

Also, I have started reading about UDP on Google. Thanks once again.

0 Kudos