SAM9X75 Curiosity LAN Kit - Getting Started Guide for MPLAB® Harmony V3
Introduction
Thank you for taking the time to evaluate the SAM9X75 Curiosity LAN Kit. This guide will help you run the demonstration application included with the board. For a deeper dive into the features and capability of the board, refer to the links provided in the "Additional Information" section of this guide.
This getting started guide will allow you to perform an Iperf networking test between your PC (acting as TCP Client) and the SAM9X75 Curiosity Board (acting as TCP Server), through your local network infrastructure.
MPLAB® Harmony Demo Setup
Connect the components as shown in the accompanying image:
Ethernet cable to J5 connector on the LAN8840 EDS2 Daughter Card.
SD card inserted on the SD Boot J14 slot.
Serial-USB dongle to UART DEBUG J35 header.
USB-A to Micro USB-B cable to J2 Micro USB-B port for power.
Set Up and Start SAM9X75 Curiosity Board Serial Terminal
Set up SAM9X75 Curiosity Board Serial Terminal on Host Computer
On the host computer, open a Serial terminal with the following settings:
- Baud Rate: 115200
- Data: 8-bit
- Parity: None
- Stop: 1-bit
- Flow Control: None
On the Category > Connection select Serial then set the configuration.
Note: The Serial Line (COM10) can be confirmed using Window's Device Manager. Set to what the Device Manager assigned line.
Press the RESET (SW3) button on the SAM9X75 Curiosity Board to force a reset.
When the system is ready, the Serial Terminal that was set up in Step 6 should show a prompt. This is the TCP Server terminal on the PC.
Note the IP Address assigned to the board.
The screen shot shows 10.14.63.72.
Your board will show a different IP Address. Use your board's IP Address instead of the one given in the screen shot when you run the iperf test.
On the TCP Server Terminal opened in Step 6:
Start the TCP Server on the curiosity board by running the following command.
The TCP Server terminal should show the iperf application started executing and listening to the port:
Start PC Command Line
On the host computer run a command line application to execute the iperf application.
Open Command Prompt.
Start the TCP Client on the PC by running the following command. Note the IP Address used should match the IP Address recorded in Step 7.3.
This will test the performance of the network transfers between the PC and the Curiosity Board.
The TCP Client terminal should show the results of the test:
Go to the TCP Server terminal and confirm the test executed.
The TCP Server terminal should show the results of the test:
Additional Information
- SAM9X75 Curiosity LAN Kit
- LAN8840 EDS2 Daughter Card
- Full Demo Documentation of iperf Application for MPLAB Harmony
- iperf Speed Test
Troubleshooting
Common
Serial Terminal is not showing anything | There are multiple possible reasons when the terminal does not show anything:
|
Running iperf command in the host terminal results in Connection refused error. [ 1] tcp connect to 10.14.63.70 port 5001 failed (Connection refused) on 2024-05-31 11:43:21 (US Mountain Standard Time) | Verify the IP address used when sending the iperf command matches the target IP address. |
Terminal shows RomBoot message. |
|
MPLAB Harmony Demo
Running iperf command in the host terminal results Connection refused error. | Verify the IP address used when sending the iperf command matches the target IP address. |