SAM9X75 Curiosity LAN Kit - Getting Started Guide for MPLAB® Harmony V3

Last modified by Microchip on 2024/08/08 11:37

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.

Confirm the following components are present out of the box:

  • SAM9X75 Curiosity Board
  • LAN8840 EDS2 SODIMM extension board (P/N: EV12N54A)
  • SD card
  • USB A to Micro-USB B cable (power)

Required components not included in the box:

  • Serial to USB dongle
  • Ethernet cable

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.

Information

Note: The instructions in this guide are intended for the iperf2 version of the networking test executable running on Windows®. The version is downloadable as provided in the instructions. 


MPLAB® Harmony Demo Setup

Download the iperf.zip from the repository, GitHub_EV31H43A.

Unzip the downloaded iperf.zip file into any directory of your choice. Note the location where the files are unzipped. You will execute the iperf.exe from this location using a terminal to run the TCP Client.

Download the harmony.bin & boot.bin from the repository, GitHub_EV31H43A.

Copy the downloaded harmony.bin and boot.bin to the SD card.

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.

Connect components

Information

Note:

  • SAM9X75 Curiosity Board Serial Terminal set up in Step 6 will be referred to as TCP Server terminal.
  • The Host Computer command line started in Step 8 will be referred to as TCP Client prompt. 

Back to Top

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
Open Putty.
putty icon

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. 

Putty configuration

Press Open.

Back to Top


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.

Verify that the iperf Harmony application is running and displaying on the TCP Server terminal.
TCP Server terminal
Press the Enter key to show the prompt.
TCP Server terminal

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.

Back to Top


On the TCP Server Terminal opened in Step 6:

Start the TCP Server on the curiosity board by running the following command.

iperf -s -i 1

The TCP Server terminal should show the iperf application started executing and listening to the port: 

TCP Server terminal

Back to Top

Start PC Command Line

On the host computer run a command line application to execute the iperf application.
Open Command Prompt.

Command prompt

Back to Top


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.

iperf -c 10.14.63.72 -p 5001 -i 1 -t 5

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: 

TCP Server terminal

Back to Top


Go to the TCP Server terminal and confirm the test executed.

The TCP Server terminal should show the results of the test: 

TCP Server terminal

Back to Top

Additional Information

Back to Top

Troubleshooting

Common

Serial Terminal is not showing anything

There are multiple possible reasons when the terminal does not show anything:

  • Double-check if the RX-TX signals of the serial cable is properly connected to the RX-TX signals of the board.
  • Double-check ground signal is properly connected.
  • Verify if the SD card contains the right files.

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.
  • Verify if the SD card contains the right files.
  • Verify that the SD card is inserted properly.

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.

Back to Top