UDP Diagnostics example
Introduction
This example shows how to change the diagnostics stream from a UART to
go across a UDP port. The application just displays a message to the
UDP diagnostics stream. The MP3
player example makes more extensive use of this technique.
Building the example
Change directory to the udpDiagnostic example
cd %LF_HOME%\examples\udpDiagnostic
Rebuild the application
lfmake
clean all
Running the example
To run the example on the board
lfdownload -u 0 udpdiag.bin
The -u 0 option enables receiving of UDP stream 0. Each
time a UDP stream is opened by the Lightfoot application, it uses a
different instance. If all three output streams are diverted to UDP,
start lfdownload with support for all three streams with '-u
0 -u 1 -u 2'.
Features
This example demonstrates the following SDK features.