Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIE DBYDNV
== ISO/TS16949==
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device applications and the like is provided only for your convenience and may be
superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO
REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,
MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold
harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or
otherwise, under any Microchip intellectual property rights unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate, AVR, AVR logo, AVR Freaks, BitCloud, chipKIT, chipKIT logo, CryptoMemory,
CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KeeLoq, Kleer, LANCheck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR,
MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, SAM-BA, SpyNIC, SST, SST
Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other
countries.
ClockWorks, The Embedded Control Solutions Company, EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS, mTouch, Precision
Edge, and Quiet-Wire are registered trademarks of Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom, CodeGuard, CryptoAuthentication,
CryptoAutomotive, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN,
In-Circuit Serial Programming, ICSP, INICnet, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM,
PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon, QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI,
SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other
countries.
All other trademarks mentioned herein are property of their respective companies.
Microchip received ISO/TS-16949:2009 certification for its worldwide
QUALITYMANAGEMENTS
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
DS50002789A-page 2 2018 Microchip Technology Inc.
Worldwide Sales and Service .....................................................................................48
DS50002789A-page 4 2018 Microchip Technology Inc.
SAMA5D3
ETHERNET DEVELOPMENT SYSTEM
USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our website
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
ge, in front of the page number. The numbering convention for the DS number is
pa
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
®
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
IDE online help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
SAMA5D3. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• The Microchip Website
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes the Microchip SAMA5D3 Ethernet Development System
Board.
• Chapter 1. “Overview” – This chapter provides a brief description of the
SAMA5D3 Ethernet Develo
• Chapter 2. “Getting Started” – This chapter includes instructions on how to get
started w
• Chapter 3. “Board Details and Configuration” – This chapter includes instruc-
tions on how to configure the SAMA5D3 Ethernet Development System Board to
wor
• Chapter 4. “Software Configuration and Operation” – This chapter explains
w to establish a communication channel from a PC to the SAMA5D36 MPU. It
ho
also provides some examples of things to do in the bootloader and Linux environments once connected.
• Appendix A. “Programming the SAMA5D3 EDS Board” – This appendix
cludes instructions on how to program the SAMA5D3 EDS on-board NAND
in
flash an
pment System Board.
ith the SAMA5D3 Ethernet Development System Board.
k with the EVB-KSZ9563 3-port switch evaluation board.
Microchip provides online support via our website at www.microchip.com. This website
is used as a means to make files and information easily available to customers. Acces
sible by using your favorite Internet browser, the website contains the following information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases, and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program, and
member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors, and factory representatives
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notifications whenever there are changes,
updates, revisions, or errata related to a specified product family or development tool
of interest.
To register, access the Microchip website at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
-
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB
assemblers (including MPASM assembler); all MPLAB linkers (including MPLINK
object linker); and all MPLAB librarians (including MPLIB object librarian).
• Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB REAL ICE and MPLAB ICE 2000 in-circuit emulators.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit 3 debug
express.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and
MPLAB SIM simulator, as well as general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB
ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included
are nonproduction development programmers such as PICSTART Plus and
PIC-kit 2 and 3.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
®
C compilers; all MPLAB
DS50002789A-page 8 2018 Microchip Technology Inc.
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the website at:
DS50002789A-page 10 2018 Microchip Technology Inc.
1.1INTRODUCTION
SAMA5D36
MCU
EthernetRGMIIPort
High‐speedConnector
EthernetRMIIPor t
D‐subConnector
SDRAMNANDFlash
USBPortA
MicroAB
USBPortB
USBPortC
SDCardSlot
Power
12VBarrelJack
Regulators
JTAGHeader
RGMII/MII
RMII
MDIO
MDIO
5V
12V
3.3V
3.3V
VDDIOP1
SerialUART
SPI/I2C
2.5V
EMAC
GMAC
The Microchip SAMA5D3 Ethernet Development System (EDS) Board is an
MPU-based platform for evaluating Ethernet switch and PHY products. Compatible
switch and PHY evaluation boards connect to the EDS board via either an RGMII connector or an RMII connector. These daughter b
board is not intended for stand-alone use and has no Ethernet capabilities when no
daughter board is connected. See Figure 1-1.
The SAMA5D3 EDS board comes with pre-installed Linux and Ethernet drivers. When
ma
ted to a switch evaluation board, the included software can run protocols, such as
RSTP, DHCP, and PTP (1588). Users can also access registers and statistics counters
in the PHY or switch, set up VLAN and other configurations in a switch, and perform
traffic testing to/from the MCU. Source code is available for download from the website
for this board, and users may modify and append to it for their needs.
This board is built around a Cortex
memory, two Ethernet MACs (one gigabit and one 100 Mbit), three USB ports, an SD
card slot, and a Serial UART interface. It is similar to the SAMA5D3 Xplained Evaluation Board (SAMA5D3-XPLD) but with the PHYs r
and RGMII connectors. The two boards share the same development environment.
5. Connect a 12V power adapter to the SAMA5D3 EDS board. When the board is
powered on, it boots the installed Linux operating system.
6. The default IP address for the MPU is 192.168.0.210. Functionality of the Ethernet daughter board can be verified by connecting a PC to an Ethernet port on the
daughter board and pinging the MPU. (Ensure that the PC is set up with a com
patible IP address in the same subnet.)
7. Follow the instructions in Section 4.2 “Communication Options” to communi-
cate with the MPU from a PC.
-
DS50002789A-page 14 2018 Microchip Technology Inc.
Chapter 3. Board Details and Configuration
3.1INTRODUCTION
The SAMA5D3 EDS board is designed to connect to compatible Microchip Ethernet
switch and PHY evaluation boards. The board is built around the integration of a Cor-
®
-A5-based microcontroller with external SDRAM and Flash memory, dual Ethernet
tex
ports, two host USB ports, and one device USB port, an SD interface, and a serial
debug interface. It comes programmed with Linux, Ethernet drivers, and protocol
stacks for switch and PHY evaluation.
3.2POWER SOURCE
Power is supplied to the board via a power jack. The nominal supply voltage is 12V,
and the acceptable range is 7V to 20V. The current requirement is less than 500 mA
without external loads. The barrel connector has an inner diameter of 2.5 mm.
This board can supply power to the other boa
and to the RMII connector J6.
Green power LEDs D2 and D3 indicate 3.3V and 5V power, respectively.
The board cannot be powered via USB.
SAMA5D3
ETHERNET DEVELOPMENT SYSTEM
USER’S GUIDE
rds connected to the RGMII connector J5
3.3PROCESSOR AND MEMORY
The board has 256 MB of SDRAM and 256 MB of NAND flash. As shown in Figure 3-1,
a card slot at the bottom of the board accepts an SD card. The processor can boot
either from the on-board NAND flash or from an SD card.
When booting, the SD card takes precedence.
attempts to boot from the on-board flash. The J20 jumper must be installed to enable
writing and reading the on-board flash memory.
Note:T
he voltage selection on the J2 jumper controls the voltage for the SD card
interface. Set J2 for 3V3 whenever using an SD card.
FIGURE 3-1:SD CARD SLOT ON THE BOTTOM OF THE BOARD
3.4FLASH MEMORY PROGRAMMING
The board is preprogrammed with a Linux image that includes an Ethernet driver and
evaluation code. Users may reprogram the on-board flash memory via the micro-AB
USB port (USB port A). The latest Linux image can be found in the product page of the
board on the Microchip website. For on-board flash memory and SD card programming
instructions, refer to Appendix A. “Programming the SAMA5D3 EDS Board”. The
jumper must be installed to enable the on-board flash memory for programming.
J20
However, when reprogramming an already programmed board, it may be necessary to
follow these steps:
1. Remove the J20 jumper (this prevents the MCU from booting from the on-board
flash me
2. Power on the board
3. Install the J20 jumper (This enables the flash memory for programming.)
4. Program the on-board flash memory.
mory).
3.5RESET
The SW1 push button can be used to reset the MCU.
DS50002789A-page 16 2018 Microchip Technology Inc.
Board Details and Configuration
3.6RGMII/MII GMAC CONNECTOR
This connector allows a daughter board to be connected to the GMAC port of the
SAMA5D3. (See Figure 3-2.) The daughter board is a Microchip evaluation board for
Ethernet PHY or an Ethernet switch. This interface is used primarily for RGMII, and
an
the supplied software operates it as RGMII. This GMAC can also operate as MII, but
this is a secondary option that is not necessarily supported by the pre-installed software. Daughter boards may support only RGMII, only
check the daughter board documentation for details.
FIGURE 3-2:RGMII CONNECTOR
MII, or both RGMII and MII, so
A daughter board receives power from the SAMA5D3 EDS board via any of the available supplies: VDDIOP1 (VARIO), 2V5, 3V3, 5
tation specifies which power rail(s) are used. Jumpers J3, J7, J13, and J17 are used to
nect/disconnect 12V, 5V, 3V3, and 2V5 to this connector. Normally, all of these
con
jumpers should be installed even if some voltages are not needed by the daughter
board.
Header J2 is used to select the voltage for VDDIOP1
to Figure 3-3.) Except for the two I
at I/O voltage VDDIOP1. The I
The VDDIOP1 must be set at 3.3V whenever the SD card or the I
boards may or may not use VDDIOP1 supplied from the SAMA5D3 board. All daughter
ards are compatible with VDDIOP1 = 3.3V, but not necessarily with 2.5V or 1.8V.
bo
Check the daughter board documentation for I/O voltage compatibility and possible
configuration details.
FIGURE 3-3:VDDIP (VARIO) VOLTAGE SELECT
2
C signals, all the signals on this connector operate
2
C signals operate at 3.3V, independent of VDDIOP1.
V, or 12V. The daughter board documen-
: either 3.3V, 2.5V, or 1.8V. (Refer
2
C is used. Daughter
Three indicator LEDs make it easy to visually verify the VDDIOP1 (VARIO) voltage:
If the daughter board uses both SPI and MDIO at the same time (which is uncommon),
then use header J4 to select MDIO. SPI would use other non-muxed pins on the RGMII
connector.
Additional signals on the RGMII connector:
• Reset. Th
e SAMA5D3 EDS board combines both hardware and software generated reset signals into one reset signal that is ava
daughter board may or may not use this reset signal. The hardware reset is generated at power-on, and can also be generated
The SAMA5D3 can also generate a reset from software via GPIO pin PD19.
terrupt (IRQ_N). This is an input to the MPU from the daughter board. It goes to
• In
MPU I/O pin PB28.
• PME input
from the daughter board. It connects to MPU I/O pin PD17, but the
standard software release may not utilize it.
• SAMA5D3 GPIO pins PD14, PD15, and PD
nector and are available for general use.
illator Y3. This clock does not need to be supplied by the daugh-
ble across the RGMII connector: SPI,
ilable to the daughter board. The
by pressing the push-button SW1.
16 are also wired to the RGMII con-
or each interface option.
3.7RMII EMAC CONNECTOR
J6 is a four-piece, 30-pin connector for connecting an Ethernet daughter board to the
MPU's EMAC interface via RMII. The SAMA5D3 EDS board supplies 3.3V power to the
daughter board.
MPU and the RMII connector for the daughter board. Separate SPI and MDIO interfaces at the connector allow the MPU to manage the daughter board device. The MPU
ses Serial Peripheral Interface 1 (SPI1) with NPCS3 for SPI and the EMAC
u
MDC/MDIO for MDC/MDIO. See Figure 3-4.
DS50002789A-page 18 2018 Microchip Technology Inc.
An on-board 50 MHz oscillator provides the RMII REFCLK to both the
FIGURE 3-4:RMII CONNECTOR
3.8USB PORTS
The SAMA5D3 EDS board features three USB ports:
• Port A: High-speed and full-speed host multiplexed with
• Port B: High-speed and full-speed host, standard Type A connector J23
• Port C: Full-speed host, standard Type A connector J24
Board Details and Configuration
high-speed USB device,
micro-AB connector J12
3.9SERIAL UART INTERFACE
Serial I/O communication to the MPU is available on 1x6 pin header J10. Only the RX,
TX, and GND pins are used. The other pins are either not connected or can be ignored.
The default serial port settings are 115200 baud, 8 bits, no parity, and 1 Stop bit (8N1).
This is a 3.3V interface. See Section 4.2.2 “USB-to-Serial Communication Option”
more details on using this connector.
for
3.10JTAG PORT
A standard 2 x 10-pin JTAG header (J11) is implemented on the board to enable software development and debugging of the boar
interface signals have a voltage level of 3.3V.
3.11BOARD FEATURES AND SPECIFICATIONS
Figure 3-5 shows the top view of the SAMA5D3 EDS board with its key features, and
Ta bl e 3-2 details the specifications of the SAMA5D3 EDS board.
cessor with v7-A Thumb®-2 instruction set, core frequency
up to 536 MHz
Memory2 x 1 Gb DDR2 (16M x 16 bits x 8 banks)
1 x 2 Gb NAND flash (256M x 8 bits)
Optional on-board memoryOne I2C EEPROM
One SPI Serial Flash
SDOne 8-bit SD card slot
USBTwo USB Hosts
One micro-AB USB device
EthernetOne 1 Gb MAC with RGMII interface
One 10/100 Mb MAC with RMII interface
Debug portOne JTAG interface connector
One serial debug interface (3.3V level)
Board supply voltage12V power jack
User interfaceReset push button
LEDs for power, reset, USB, and NAND flash disable
ExpansionOne 8 x 2 GPIO header with two-wire, SPI, and audio
One 1 x 6 GPIO header with USART
DS50002789A-page 20 2018 Microchip Technology Inc.
ETHERNET DEVELOPMENT SYSTEM
Chapter 4. Software Configuration and Operation
4.1INTRODUCTION
The SAMA5D3 EDS board is pre-configured with Linux and Ethernet drivers. This
includes some command line utilities for controlling certain switch functions. In addition,
the user can interact with the driver to monitor and control the attached switch daughter
board.
This chapter explains how to establish a communication channel from a PC to the
SAMA5D36 MPU and gives some examples of things to do in the bootloader and Linux
environments once connected. Additional documentation on the software capabilities
and usage for this board is available on the Microchip website at
4.2COMMUNICATION OPTIONS
There are two ways to establish a communication interface from a PC to the MPU:
either via Ethernet or via USB-to-serial.
SAMA5D3
USER’S GUIDE
www.microchip.com.
4.2.1Ethernet Communication Option – Telnet
1. Connect a compatible Ethernet daughter board to either the RGMII or RMII connector and ensure that all jumper settings are correct on both boards.
2. Connect an Ethernet cable between the daughter board and a PC.
3. Set the network port IP address on the PC to 192.168.0.100 and set the subnet
mask to 255.255.255.0.
4. From a command prompt window on the PC, enter the following command: ping
192.168.0.210
a) If ping doesn't work, there may be a problem with the RGMII/RMII or
SPI/I2C/MDIO interfaces between the boards, with the PC network settings,
or with the IP address on the SMA5D3 EDS board. If the problem cannot be
readily resolved, try the USB-to-Serial option instead.
5. From the same command window on the PC, enter the following command: telnet 192.168.0.210
a) It may be necessary to enable Telnet on a Windows PC by going to Control
Panel > Programs and Features > Turn Windows Features On or Off and
then check the box for Telnet Client.
b) Alternatively, many communication programs such as PuTTY and TeraTerm
can be used to open a Telnet session.
6. The command prompt window should change to Telnet and should display a
login prompt for Linux. The login is “root” (no quotes). No password is required.
See
7. The Linux file system root is located with command: cd /
4.2.2USB-to-Serial Communication Option
This option provides direct access to the SAMA5D3 MPU via a UART interface. It does
not require knowledge of the IP address and setting the IP address on the PC. In addition, it does not depend on a switch or PHY
SAMA5D3 EDS board.
1. Get a USB-to-serial cable and install the PC
the Microchip PICkit™ Serial Analyzer, the USB-to-TTL Serial Cable from Adafruit (Product ID 954), and the FTDI TTL-232R-3V3 or TTL-232R-5V.
2. Connect the USB-to-serial cable to header J10 on the SAMA5D3 EDS board.
a) If using the Adafruit USB-to-Serial Cable (Product ID 954), connect white to
pin 2, green to pin 3, and black to pin 6. Red is not used. See Figure 4-2.
J10
daughter board being attached to the
driver if necessary. Examples are
FIGURE 4-2:ADAFRUIT USB-SERIAL CABLE CONNECTION TO HEADER
0
J1
b) If using a TTL-232R cable from FTDI, the 6-pin SIL connector on the cable
plugs directly into J10 on the board, with green at J10 pin 1 and black at J10
pin 6. See Figure 4-3.
DS50002789A-page 22 2018 Microchip Technology Inc.
Software Configuration and Operation
FIGURE 4-3:FTDI TTL-232R USB-SERIAL CABLE CONNECTION TO
HEADER J10
3. On the PC, open a serial port session using TeraTerm, PuTTY or similar commu-
nication software. The settings are 115200 baud, 8 bits, no parity, 1 Stop bit
N1).
(8
4. The MPU outputs text as shown in Figure 4-4 when it powers up.
FIGURE 4-4:LINUX LOGIN PROMPT
5. The login is “root” (no quotes). No password is required.
6. The Linux file system root is
4.3SOFTWARE VERSION
The software installed on the board may not be the latest revision. Users are encouraged to compare the installed software version with the latest version available on the
ochip website and update it if necessary. The software version can be checked as
All SAMA5D3 EDS boards currently come with the same IP and MAC addresses. Use
the ipaddr or ifconfig commands to check the IP and MAC addresses:
# ipaddr or # ifconfig
Either address may be changed at the bootloader level as described in
Section 4.5 “Ethernet Device Register Address”.
4.5ETHERNET DEVICE REGISTER ADDRESS
When logged into Linux on the board, the registers of the Ethernet switch or PHY on
the attached daughter board can be accessed using the regs_bin utility. The KSZ Switch Utilities User’s Guide provides more details about regs_bin and other utilities for
certain KSZ switches.
Below is an example of byte, word and double-word reads and writes using regs_bin.
When a switch daughter board is connected to the SAMA5D3 EDS board, the driver
makes the per-port MIB counters available for reading.
# cat /sys/class/net/eth0/sw0/0_mib // read MIB counters for port 1
# cat /sys/class/net/eth0/sw1/1_mib // read MIB counters for port 2
# cat /sys/class/net/eth0/sw2/2_mib // read MIB counters for port 3
To clear the MIB counters for individual ports:
# echo 0 > /sys/class/net/eth0/sw0/0_mib // clear MIB counters for port 1
# echo 0 > /sys/class/net/eth0/sw1/1_mib // clear MIB counters for port 2
# echo 0 > /sys/class/net/eth0/sw2/2_mib // clear MIB counters for port 3
DS50002789A-page 24 2018 Microchip Technology Inc.
Software Configuration and Operation
To clear the MIB counters for all ports at once:
# echo 0 > /sys/class/net/eth0/sw/mib
4.7BOOTLOADER SETTINGS
Several variables, including device addresses, can be set in the U-Boot bootloader. To
access the boot loader settings, either reboot the processor with the “reboot” command
or press the reset button (SW1) on the board. Then, quickly press any keyboard key
early in the boot process at the message, “Hit any key to stop autoboot,” as shown in
Figure 4.5.
// clear MIB counters for all ports
FIGURE 4-5:U-BOOT EN
Type “print” to see a listing of environment variable settings. Below are examples of
how to set some variables. To make the changes permanent, use the “saveenv” command after making the changes.
=> print
=> setenv ethaddr 00:10:A1:94:77:01
=> setenv ipaddr 192.168.0.201
=> saveenv
=> boot
/ / o p t i o n a l , s ho w t h e e n vironment variable settings
// saves settings to NV memory
TRY POINT
// sets th e M AC address
// sets the I P address
4.8AUTOMATICALLY RUNNING PROCESS
Depending on the software revision and the attached Ethernet daughter board, some
processes such as AVB or RSTP may be set to run automatically when the system is
powered up. To check if they are running, read the appropriate files in the folder
/sys/class/net/eth0/sw
For switch daughter boards that support IEEE1588 Precision Time Protocol (PTP), the
PTP protocol can be run by navigating to the appropriate file system directory, then run
ning the script found there. There are directories for end-to-end (e2e) and peer-to-peer
(p2P). The default.cfg file found in the e2e and p2p directories can be edited to change
the PTP parameters. Additional details can be found in the software setup guide for the
given switch.
# cd /ptp/e2e
# cd /ptp/p2p
# /linuxptp.sh
4.10VLAN SETUP
VLAN control of switches is handled through the driver. The user can access the
driver's VLAN functions via files located at /sys/class/net/eth0/sw. Reading
/sys/class/net/eth0/sw/vlan_table shows the valid entries in the VLAN table. See the
appropriate switch reference guide for further details.
4.11DHCP
-
To enable DHCP, change the word “static” to “dhcp” in the file /etc/network/interfaces.
4.12NUTTCP TRAFFIC TESTING
The Linux installation includes the nuttcp utility, which has similar capabilities as iperf.
If you install nuttcp on another device such as a PC, you can perform traffic testing
between the two devices. A help menu is included. Additional details about nuttcp can
be found on the Internet.
DS50002789A-page 26 2018 Microchip Technology Inc.
SAMA5D3
ETHERNET DEVELOPMENT SYSTEM
USER’S GUIDE
Appendix A. Programming the SAMA5D3 EDS Board
A.1INTRODUCTION
The software installed on the board may not be the most recent, so users should check the software version
as described in
Microchip website.
A.2NAND FLASH PROGRAMMING
A.2.1NAND Flash Programming on Linux
Note: The following procedure is tested with the Ubuntu x64 14.04.05 LTS distribution.
1. Open a terminal window and unzip the file to a folder (for example, /home).
$ unzip SAMA5D3_EDS _Images_Vxx.xx.xx.zip
$ cd SAMA5D3_EDS_Images/linux
2. Connect the micro-USB (J12) connector of the SAMA5D3 EDS board to the Linux PC.
3. Connect 12V of power to the SAMA5D3 EDS board.
4. Remove the NAND enable (J20) jumper and press the reset button.
The /dev/ttyACM0 ____ is created. Execute the $ tail –f /var/log/kernel.log command
to see this.
5. Insert the NAND enable (J20) jumper.
6. If you are using an x86 system, then run the flash_board script in the terminal window. If you are
using an x64 system, then run the flash_board_x64 script.
$ sudo flash_board (for x86 system)
$ sudo flash_board_x64 (for x64 system)
7. Once “DONE” is displayed, press the reset button to reboot the SAMA5D3 EDS board.
Section 4.4 “IP and MAC Addresses” and update it to the latest version available on the
A.2.2NAND Flash Programming on Windows
Note: This procedure is tested on Win7 x64 and Win10 x64 versions of Windows.
1. Unzip the zip file to a folder (for example, C:\tmp).
2. Open Command Prompt and change the SAMA5D3_EDS_Images\windows folder (for example,
C:\tmp\SAMA5D3_EDS_Images\windows).
3. Connect the micro-USB (J12) connector of the SAMA5D3 EDS board to the Windows PC.
4. Connect 12V of power to the SAMA5D3 EDS board.
5. Remove the NAND enable (J20) jumper and press the reset button.
6. When the PC has Internet connection, it will install “Bossa Program Port” automatically. (The port
number may be different on the system.) See
FIGURE A-1:DEVICE MANAGER - BOSSA PROGRAM PORT INSTALLED
7. If the PC does not have Internet connection, find “Unknown device” under “Other devices” in Device
Manager and install the driver from the folder. See Figure A-2: SAMA5D3_EDS_Images\windows\sam-ba_3.1.4\driver
(for example, C:\tmp\SAMA5D
3_EDS_Images\windows\sam-ba_3.1.4\driver)
DS50002789A-page 28 2018 Microchip Technology Inc.
Programming the SAMA5D3 EDS Board
FIGURE A-2:DEVICE MANAGER - OTHER DEVICES>UNKNOWN DEVICE
8. After successful installation, the Device Manager window shows AT91 USB to Serial Converter
“Ports.” See Figure A-3.
FIGURE A-3:DEVICE MANAGER - AT91 USB TO SERIAL CONVERTER SHOWN
9. Wait for few seconds before performing the following steps after board power-up. Make sure the
device driver installation is complete. Figure A-4 shows the console display after the NAND flash programming is complete.Insert the NAND enable (J20) jumper.
10. Using Command Prompt, execute flash_bo
program the NAND flash.
> cd SAMA5D3_EDS_Images\windows
> flash_board.bat
ard.bat under SAMA5D3_EDS_Images\windows to
DS50002789A-page 30 2018 Microchip Technology Inc.
Programming the SAMA5D3 EDS Board
FIGURE A-4:EXECUTING THE FLASH_BOARD.BAT COMMAND IN COMMAND PROMPT
If the error in Figure A-5 appears, rerun the flash_board.bat command.
FIGURE A-5:FLASH_BOARD.BAT COMMAND ERROR
A.3SD CARD IMAGE PROGRAMMING
The SAMA5D3_ESD_Images_Vxx.xx.xx.zip file contains an SD card image that must be flashed to the
SD card. The image is available in the SAMA5D3_ESD_Images/images folder.
To flash images to the SD card, the Etcher tool is
https://etcher.io. The Etcher tool provides the
For Windows, download and install the 32-bit installer
For Linux, download the x86 or x64 package depending on your Linux system. This procedure is tested on
Ubu
ntu x64 14.04.05 LTS distribution.
recommended. The tool can be downloaded from
same GUI interface both for Windows and Linux.
package. This procedure is tested on Win7x64.
A.3.1SD Card Programming
Note:An SD card size of 16 GB or greater is required.
1. Unzip the zip file to a folder (for example, C:
2. The SD card image (s
(c:\tmp\ SAMA5D3_
3. Start the Etcher tool and select the image (sdcard.img).
selected because all the contents of the SD card will be erased.
4. Select Flas
h! to program the SD card. See Figure A-6.
dcard.img) is located in the SAMA5D3_ESD_Images\images folder.
ESD_Images\images\sdcard.img)folder
\tmp).
Make sure the appropriate SD card is
DS50002789A-page 32 2018 Microchip Technology Inc.
Programming the SAMA5D3 EDS Board
FIGURE A-6:ETCHER TOOL
After the programming is successfully completed, the SD card can be used to boot the SAMA5D3 EDS
board.
A.4BOOTING THE SAMA5D3 EDS
The serial communication interface must be connected to a PC using an FTDI USB-to-Serial
(TTL-232R-3V3) cable. A 12-V power must also be connected to the SAMA5D3 EDS board.
A.4.1Booting from NAND Flash
The SAMA5D3 EDS board boots with the new image if MCU reset or power on/off is pressed after programming the NAND flash. The “buildroot login:” prompt is di
press <Enter>.
A.4.2Booting from SD Card
After burning the SD card, insert the SD card into the SD slot. Reset the board either using the reset button
or powering on/off the board. The board boots with the SD card, and “buildroot login:” is prompted. To open
Command Prompt, enter ‘root’ and press <Enter>.
Microchip Technology, Inc.
USB/Network Group - UNG
www.Microchip.com
Altium.com
Table of Contents
1
DescriptionSheet
2
3
4
Power - Regulation and MCU
Revision History
A
Revision SummaryRevisionDate
Initial release
Author
11/16/2016
6
Title Page & Block Diagram
5
Block Diagram
SoC Main - Flash, SD card, USB
RGMII and RMII, EEPROM, Security. LCD
SoC GPIO
SDRAM
RGMII / MII
12V barrel jack
3V3
2V5
VBUS
1V8
1V2
Regulators
RMII
RGMII I/F Connector (QTS)
RMII I/F Connector
(Curiosity)
3V3
2V5
VDDIOP1 (VARIO)
5V
3V3
12V
MDIO
EEPROM
& MAC ID
Security
USB Port A
Micro AB
Connector
DDR2 RAM
USB
Port C
Typ e A
USB
Port B
Typ e A
SD
Card Slot
JTAG
Header
LCD Connector
GPIO
Headers
SAMA5D36
MCU
USB HS
USB HS
USB HS
Ethernet Switch FDB Base Board with SAMA5D36
NAND Flash
Carl Johnson
B09/08/2017Carl JohnsonErrata fixed, 12V added, new minor features
12V
5V
B110/02/2017Carl JohnsonReversed Rt/Rb for 3V3 regulator divider.
C12/07/2017Replaced oscillators with crystals for 12MHz and 32.768kHz, revised legend
103/20/2018Released
Jennifer Hancock
MDIO
Kelly Maas05/16/2018 Block diagram corrections, title revision
GMACEMAC
SPI / I2C
SPI
DS50002789A-page 36 2018 Microchip Technology Inc.
SAMA5D3 Ethernet Development System User’s Guide
FIGURE B-1:ETHERNET SWITCH FDB BASE BOARD WITH SAMA5D36
Keep DDR2 nets as short as possible.
Therefore, place the DDR2 devices as close as possible to the SAMA5D3.
Control the trace impedance of the DDR2 lines to Z0= 50ohm.
Address, control and data group traces may not exceed 1.3 inches (33mm).
Match trace lengths within the address, control and data groups to within 0.1 inch (2.54mm).
Match address and control group trace lengths to the data group to within 0.25 inch (6.35mm).
4.7uF
C154
4.7uF
C155
1k
1%
R42
1k
1%
R44
1k
R146
1k
R147
DDR_CAS
A5
DDR_A13
A6
DDR_A11
A7
DDR_A7
A8
DDR_A2
A9
DDR_D30
A10
DDR_D27
A11
DDR_CLKN
A12
DDR_DQSN3
A13
DDR_D25
A14
DDR_D24
A15
DDR_DQSN2
A17
DDR_D19
A18
DDR_WE
B5
DDR_BA1
B6
DDR_CKE
B7
DDR_A9
B8
DDR_A4
B9
DDR_A0
B10
DDR_D28
B11
DDR_CLK
B12
DDR_DQS3
B13
DDR_D23
B14
DDR_DQM2
B15
DDR_D16
B16
DDR_DQS2
B17
DDR_D17
B18
DDR_CS
C8
DDR_A8
C10
DDR_A1
C11
DDR_CALN
C12
DDR_VREF
C13
DDR_BA0
E9
DDR_DQSN0
D18
DDR_D12
D17
DDR_D14
D16
DDR_D22
D15
DDR_DQM3
D12
DDR_A3
D11
DDR_A6
D10
DDR_A12
D9
DDR_D13
C18
DDR_D15
C17
DDR_D20
C16
DDR_D18
C15
DDR_D21
C14
DDR_A5
E10
DDR_D31
E11
DDR_D26
E12
DDR_CALP
E13
DDR_BA2
F9
DDR_A10
F11
DDR_D29
F12
DDR_D8
F16
DDR_D6
F17
DDR_DQSN1
F18
DDR_RAS
G11
DDR_DQM0
G12
DDR_D10
G14
DDR_D7
G15
DDR_D4
G16
DDR_D3
G17
DDR_DQS1
G18
DDR_D0
H12
DDR_D2
H13
DDR_D5
H15
DDR_D1
H17
DDR_DQM1
E15
DDR_D11
E16
DDR_D9
E17
DDR_DQS0
E18
ATSAMA5D36A-CU
U7F
A0
M8
A2
M7
A3
N2
A1
M3
A4
N8
A6
N7
A7
P2
A5
N3
A8
P8
A10
M2
A11
P7
A9
P3
A12
R2
BA0
L2
BA1
L3
A13
R8
CK
J8
CK
K8
ODT
K9
CS
L8
RAS
K7
WE
K3
CAS
L7
VDD
A1
VDD
J9
VDD
M9
VDD
E1
DQ8
C8
DQ10
D7
DQ9
C2
DQ4
H1
DQ6
F1
DQ7
F9
DQ5
H9
DQ0
G8
DQ2
H7
DQ3
H3
DQ1
G2
VDDQ
C7
VDDQ
G1
VDDQ
G3
VDDQ
C9
VDDL
J1
VDDQ
C1
VDDQ
C3
VDDQ
A9
UDQS
B7
LDQS
F7
LDQS
E8
UDQS
A8
UDM
B3
RFU1
A2
RFU2
E2
LDM
F3
RFU3
R3
RFU4
R7
BA2
L1
CKE
K2
DQ13
D9
DQ15
B9
DQ14
B1
DQ11
D3
DQ12
D1
VDD
R1
VDDQ
G9
VDDQ
E9
VDDQ
G7
VREF
J2
VSS
E3
VSS
J3
VSS
P9
VSS
A3
VSS
N1
VSSQ
E7
VSSQ
F2
VSSQ
H2
VSSQ
F8
VSSQ
B2
VSSQ
B8
VSSQ
D8
VSSQ
A7
VSSQ
D2
VSSDL
J7
VSSQ
H8
MT47H64M16NF
U8
A0
M8
A2
M7
A3
N2
A1
M3
A4
N8
A6
N7
A7
P2
A5
N3
A8
P8
A10
M2
A11
P7
A9
P3
A12
R2
BA0
L2
BA1
L3
A13
R8
CK
J8
CK
K8
ODT
K9
CS
L8
RAS
K7
WE
K3
CAS
L7
VDD
A1
VDD
J9
VDD
M9
VDD
E1
DQ8
C8
DQ10
D7
DQ9
C2
DQ4
H1
DQ6
F1
DQ7
F9
DQ5
H9
DQ0
G8
DQ2
H7
DQ3
H3
DQ1
G2
VDDQ
C7
VDDQ
G1
VDDQ
G3
VDDQ
C9
VDDL
J1
VDDQ
C1
VDDQ
C3
VDDQ
A9
UDQS
B7
LDQS
F7
LDQS
E8
UDQS
A8
UDM
B3
RFU1
A2
RFU2
E2
LDM
F3
RFU3
R3
RFU4
R7
BA2
L1
CKE
K2
DQ13
D9
DQ15
B9
DQ14
B1
DQ11
D3
DQ12
D1
VDD
R1
VDDQ
G9
VDDQ
E9
VDDQ
G7
VREF
J2
VSS
E3
VSS
J3
VSS
P9
VSS
A3
VSS
N1
VSSQ
E7
VSSQ
F2
VSSQ
H2
VSSQ
F8
VSSQ
B2
VSSQ
B8
VSSQ
D8
VSSQ
A7
VSSQ
D2
VSSDL
J7
VSSQ
H8
MT47H64M16NF
U9
DS50002789A-page 40 2018 Microchip Technology Inc.