This application implements a responder for Connection Test Protocol (CTP), aka Loop packets at the Ethernet layer. CTP packets are used as part of Mbed OS's test suite, and you must have a second Mbed board running this application present on the network for the EMAC test in the Greentea test suite to pass.
- Clone it to your machine. Don't forget to use
--recursive
to clone the submodules:git clone --recursive https://github.com/mbed-ce/mbed-ethernet-ctp-server.git
- You may want to update the mbed-os submodule to the latest version, with
cd mbed-ethernet-ctp-server/mbed-os && git fetch origin && git reset --hard origin/master
- Set up the GNU ARM toolchain (and other programs) on your machine using the toolchain setup guide.
- Set up the CMake project for editing. We have three ways to do this:
- On the command line
- Using the CLion IDE
- Using the VS Code IDE
- Build the
flash-ctp-server
target to upload the code to a connected device.