Microchip Technology SAMA5D3 User Manual

SAMA5D3
Ethernet Development System
User’s Guide
2018 Microchip Technology Inc. DS50002789A
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 Micro­chip 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.
© 2018, Microchip Technology Incorporated, All Rights Reserved.
ISBN: 978-1-5224-3368-2
Microchip received ISO/TS-16949:2009 certification for its worldwide
QUALITYMANAGEMENTS
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.
SAMA5D3
ETHERNET DEVELOPMENT SYSTEM
USER’S GUIDE
Table of Contents
Preface ........................................................................................................................... 5
Introduction............................................................................................................ 5
Document Layout .................................................................................................. 5
Conventions Used in this Guide ............................................................................ 7
The Microchip Website.......................................................................................... 8
Development Systems Customer Change Notification Service ............................ 8
Customer Support ................................................................................................. 8
Document Revision History ................................................................................... 9
Chapter 1. Overview
1.1 Introduction ................................................................................................... 11
1.2 References ................................................................................................... 12
1.3 Software and Programming Resources ....................................................... 12
Chapter 2. Getting Started
2.1 Introduction ................................................................................................... 13
2.2 SAMA5D3 EDS and EVB-KSZ9563 Configuration ...................................... 13
Chapter 3. Board Details and Configuration
3.1 Introduction ................................................................................................... 15
3.2 Power Source ............................................................................................... 15
3.3 Processor and Memory ................................................................................ 15
3.4 Flash Memory Programming ........................................................................ 16
3.5 Reset ............................................................................................................ 16
3.6 RGMII/MII GMAC Connector ........................................................................ 17
3.7 RMII EMAC Connector ................................................................................. 18
3.8 USB Ports ..................................................................................................... 19
3.9 Serial UART Interface .................................................................................. 19
3.10 JTAG Port ................................................................................................... 19
3.11 Board Features and Specifications ............................................................ 19
Chapter 4. Software Configuration and Operation
4.1 Introduction ................................................................................................... 21
4.2 Communication Options ............................................................................... 21
4.2.1 Ethernet Communication Option – Telnet ................................................. 21
4.2.2 USB-to-Serial Communication Option ....................................................... 22
4.3 Software Version .......................................................................................... 23
4.4 IP and MAC Addresses ................................................................................ 24
4.5 Ethernet Device Register Address ............................................................... 24
4.6 Ethernet Switch MIB Counters ..................................................................... 24
2018 Microchip Technology Inc. DS50002789A-page 3
SAMA5D3 Ethernet Development System User’s Guide
4.7 Bootloader Settings ...................................................................................... 25
4.8 Automatically Running Process .................................................................... 25
4.9 Precision Time Protocol (IEEE 1588) ........................................................... 26
4.10 VLAN Setup ................................................................................................ 26
4.11 DHCP ......................................................................................................... 26
4.12 Nuttcp Traffic Testing ................................................................................. 26
Appendix A. Programming the SAMA5D3 EDS Board
A.1 Introduction .................................................................................................. 27
A.2 NAND Flash Programming .......................................................................... 27
A.2.1 NAND Flash Programming on Linux .........................................................27
A.2.2 NAND Flash Programming on Windows ...................................................27
A.3 SD Card Image Programming ...................................................................... 32
A.3.1 SD Card Programming ..............................................................................32
A.4 Booting the SAMA5D3 EDS ......................................................................... 33
A.4.1 Booting from NAND Flash .........................................................................33
A.4.2 Booting from SD Card ...............................................................................33
Appendix B. Schematics
B.1 Introduction .................................................................................................. 35
Appendix C. Bill of Materials
C.1 Introduction .................................................................................................. 43
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 environ­ments 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.
d how to prepare a bootable SD card.
2018 Microchip Technology Inc. DS50002789A-page 5
SAMA5D3 Ethernet Development System User’s Guide
Appendix B. “Schematics” – This appendix shows the SAMA5D3 Ethernet
Development System Board
Appendix C. “Bill of Materials” – This appendix includes the SAMA5D3 Ether-
net Development System Board Bill of Materials (BOM).
schematics.
DS50002789A-page 6  2018 Microchip Technology Inc.
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Initial caps A window the Output window
Quotes A field name in a window or
Underlined, italic text with
t angle bracket
righ Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code
Italic Courier New A variable argument
Square brackets [ ] Optional arguments
Curly brackets and pipe character: { | }
Ellipses... Replaces repeated text var_name [,
Preface
file
...
ca
file
n be
Emphasized text ...is the only compiler
A dialog the Settings dialog A menu selection select Enable Programmer
“Save project before build”
log
dia A menu path File>Save
A tab Click the Power tab
4‘b0010, 2‘hF1
re N is the total number of
whe digits, R is the radix and n is a digit.
#define START
Filenames File paths Keywords Command-line options ­Bit values Constants
Choice of mutually exclusive
ments; an OR selection
argu
Represents code supplied by user
autoexec.bat
c:\mcc18\h
_asm, _endasm, static
, -Opa-
Opa+
0, 1
0xFF, ‘A’
.o
file
any valid filename
mcc18 [options] [options]
errorlevel {0|1}
var_n
void main (void) { ... }
, where
ame...]
2018 Microchip Technology Inc. DS50002789A-page 7
SAMA5D3 Ethernet Development System User’s Guide
THE MICROCHIP WEBSITE
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 infor­mation:
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:
http://www.microchip.com/support
DOCUMENT REVISION HISTORY
Revisions Section/Figure/Entry Correction
DS50002789A (08-2-18) Initial release
Preface
2018 Microchip Technology Inc. DS50002789A-page 9
SAMA5D3 Ethernet Development System User’s Guide
NOTES:
DS50002789A-page 10  2018 Microchip Technology Inc.

1.1 INTRODUCTION

SAMA5D36
MCU
EthernetRGMIIPort
HighspeedConnector
EthernetRMIIPor t
DsubConnector
SDRAMNANDFlash
USBPortA
MicroAB
USBPortB
USBPortC
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 con­nector 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 Evalua­tion Board (SAMA5D3-XPLD) but with the PHYs r and RGMII connectors. The two boards share the same development environment.
ETHERNET DEVELOPMENT SYSTEM

Chapter 1. Overview

oards are available separately. The EDS
®
-A5-based processor on-board SDRAM and Flash
SAMA5D3
USER’S GUIDE
emoved and replaced by the RMII
FIGURE 1-1: SAMA5D3 EDS BOARD FUNCTIONAL
BLOCK DIAGRAM
2018 Microchip Technology Inc. DS50002789A-page 11
SAMA5D3 Ethernet Development System User’s Guide

1.2 REFERENCES

Concepts and materials available in the following documents may be helpful when reading this document. Visit
• SAMA5D3 Series Data Sheet

1.3 SOFTWARE AND PROGRAMMING RESOURCES

The following files are available for download from the Microchip website at www.microchip.com/DevelopmentTools/ProductDetails/PartNo/SAMA5D3+Ether-
net+Development+System:
• Linux image bit file
• Source code
• Documents:
- Ethernet Development System Image Programming Guide
- EVB-KSZ8563/KSZ9563 3-Port Switch Software User’s Guide
www.microchip.com for the latest documentation.
DS50002789A-page 12  2018 Microchip Technology Inc.
ETHERNET DEVELOPMENT SYSTEM

Chapter 2. Getting Started

2.1 INTRODUCTION

This section outlines the steps to bring up the SAMA5D3 EDS board with a daughter board such as the EVB-KSZ9563 3-port switch evaluation board.

2.2 SAMA5D3 EDS AND EVB-KSZ9563 CONFIGURATION

To configure the SAMA5D3 EDS board to work with the EVB-KSZ9563 3-port switch evaluation board:
1. Install the following jumpers:
- J2 pins 5-6 (select 3V3 for VDDIOP1/VARIO)
- J20 to enable NAND flash
- J3, J7, J17, and J13 for 12V, 5V, 3V3 and 2V5, respectively, to the RGMII con­nector
2. Remove any jumper from J4 to select SPI management. Note that different aughter boards may require a jumper on J4.
d
3. Check the daughter board documentation for
that board.
4. Connect the daughter board to the SAMA5D3 EDS board as shown in
Figure 2-1.
possible configuration settings on
SAMA5D3
USER’S GUIDE

FIGURE 2-1: SAMA5D3 EDS CONNECTED TO THE EVB-KSZ9563

2018 Microchip Technology Inc. DS50002789A-page 13
SAMA5D3 Ethernet Development System User’s Guide
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 Ether­net 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.1 INTRODUCTION

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.2 POWER 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.3 PROCESSOR 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.
If there is no SD card, the processor
2018 Microchip Technology Inc. DS50002789A-page 15
Loading...
+ 33 hidden pages