Renesas RZ/N1D Quick Start Guide

Quick Start Guide
R01QS0022ED0060 Rev. 0.60 Page 1 of 29 Jan.31.2020
RZ/N1D Group
Introduction
RZ/N1 is a family of scalable ARM® based industrial Ethernet switches. Due to the integrated performant ARM® Cortex®-A7 CPU, they are ideal choice for building products such as Programmable Logic Controllers (PLC), complex remote-IO slaves, industrial switches, gateways or operator terminals.
RZ/N1 Family consists of three devices, out of which the RZ/N1D, is an industrial ethernet communication System on Chip with 5-ports, in a 400BGA package.
This guide shall assist you to quickly start with your evaluation of the RZ/N1D device on the related Solution Kit board(s) and the Solution Kit software and documentation. It represents a short guide for the first time users with the instructions for the first startup of the board.
In addition to this document, please be aware of the extensive documentation on RZ/N1 devices, evaluation boards and software that you may find in the Solution Kit Documentation directory.
The Solution Kit boards can solely be used for evaluation purposes. It is not allowed to use the boards for commercial purposes.
List of reference documents
Document name
User’s Manual: System Introduction, Multiplexing, Electrical and Mechanical Information
User’s Manual: System Control and Peripheral
User’s Manual: Peripherals
User’s Manual: R-IN Engine and Ethernet Peripherals
User’s Manual: Generic Open Abstraction Layer
RZ/N1D Development Board Schematic
RZ/N1D Development Board Setup Notes
RZ/N1 U-Boot User Manual
RZ/N1 Linux User Manual
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 2 of 29 Jan.31.2020
List of Abbreviations and Acronyms
Abbreviation
Full Form
API
Application Programming Interface
BSP
Board Support Package
CO
CANopen Bus Protocol
DLR
Device Level Ring Protocol
EtherCAT / ECAT
EtherCAT Network Protocol
EtherNet/IP / EIP
EtherNet/IP Network Protocol
EPL
Ethernet POWERLINK Network Protocol
PNIO
PROFINET IO Protocol
PROFINET
Process Field Network Protocol
lwIP
Lightweight IP Protocol
GOAL
Generic OS Abstraction Layer, Communication Framework on RZ/N1x
LLDP
Link Layer Discovery Protocol
NVM
Non-volatile memory
OS
Operating System
RT
Real-Time
API
Application Programming Interface
HW
Hardware
SW
Software
HSR
High-Availability Seamless Redundancy Protocol
PRP
Parallel Redundancy Protocol
IBIS
I/O Buffer Information Specification for pin signal simulation
EtherCAT is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany. Sercos is a registered trademark of Sercos International e.V. Ethernet POWERLINK is the registered trademark of Ethernet POWERLINK Standardization Group (EPSG). CAN(Controller Area Network)An automotive network specification developed by Robert Bosch GmbH of Germany ARM is a registered trademark of ARM Limited (or its subsidiaries) in the EU and/or elsewhere. All rights reserved. All registered trademarks or trademarks are the property of their respective owners.
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 3 of 29 Jan.31.2020
1. Overview
The following chapters will help you setup the hardware and software environment and run a sample application on your RZ/N1L evaluation board.
The Solution Kit is being actively updated and new versions of it are iteratively released
Current version of Solution Kit is providing a snapshot of the latest software and documentation
versions at the release time
The CONNECT IT! ETHERNET RZ/N1D Solution Kit is based on the RZ/N1D, a 5-port, industrial Ethernet communication SoC in a 400BGA package. The device features two independent blocks integrated in a single package – a communication block based on the proven multi-protocol R-IN Engine, as well as an application block with a dual ARM® Cortex®-A7 and a variety of peripherals, including a DDR memory interface required for rich operating systems like Linux. Along this external memory the RZ/N1D additionally includes 2 MB internal SRAM. The RZ/N1D Solution Kit contains everything you need for fast evaluation and rapid prototyping of multiple industrial Ethernet protocols.
The RZ/N1D Solution Kit contains
RZ/N1D CPU Development Board
IAR I-jet Lite debugger (incl. 20pin flat ribbon and USB-micro/A cable)
USB Cable Micro / Type-A
DVD RZ/N1x-DB Solution Kit for all RZ/N1x devices / boards
Additionally, one can order the RZ/N1-EB Expansion Board separately, that provides the user with the possibility to use an expanded range of functionalities and RZ/N1D interfaces. RZ/N1-EB kit contains:
RZ/N1-EB Expansion Board
Power Supply 24V/750mA
Power Supply Primary Adapters Euro/UK/JPN-US
The expansion board has no stand-alone capability and requires an RZ/N1D or RZ/N1S CPU board.
Figure 1-1: RZ/N1D Functional and HW overview
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 4 of 29 Jan.31.2020
2. Hardware Setup
2.1 CPU Demo Board Setup
To get started quickly with the board, please identify the connectors on the RZ/N1D-DB CPU Board.
Figure 2-1: Board connectors overview
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 5 of 29 Jan.31.2020
1. Switches and Jumpers
Please take care that the following switches are set according to the tables below.
Table 1: RZ/N1D GPIO Multiplexer DIP-Switch SW2
Number
SW ON (low)
SW OFF (high)
Setting
1
RMII/MII
LCD
OFF
2
CAT/S3
PMOD
ON
3
MSEBI
Mixed
OFF
4
RMII2
SPI5
OFF
5
USB 1x Host 1x Device
USB 2 x Host
ON
6
ARM Debug
FTDI Debug
ON
7
Segger Debugger
No connection
OFF
8
I-Jet Debugger
No connection
OFF
Table 2: RZ/N1D Config DIP-Switch
Switch
SW ON (white bar)
SW OFF
Setting
W1
JTAG Mode
ARM Coresight Mode
OFF
W2
RXCLK4 from PHY
RXCLK4 from GPIO61
ON
W3
Boot Mode NAND
Boot Mode QSPI/USB
OFF
W4
RXCLK5 from PHY
RXCLK5 from GPIO61
ON
W5
LCD pull up
LCD pull down
ON
W6
LCD pull up
LCD pull down
ON
Table 3: Jumper Settings RZ/N1D-DB
USB Power
Jumper
On Setting (default)
Off Setting
CN6
Power from USB
Power from ext. Supply
SRESET from Debugger to RZ/N1D
Jumper
On Setting (default)
Off Setting
CN7
RZ/N1D is connected with the SRESET from the Debugger
Debugger cannot reset the CPU
MRESETout
Jumper
On Setting
Off Setting (default)
CN8
MRESETOUT is connected to the Debugger
Debugger cannot detect any internal CPU reset
USB Host/Device Mode
Jumper
On Setting
Off Setting (default)
CN2
OTG mode ID
Device Mode ID
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 6 of 29 Jan.31.2020
Table 4: Boot config dip switches
The single dip switches are used to select the power on setup.
Boot Mode
Switch
On Setting (white bar) (default)
Off Setting
W3
Boot Mode NAND
Boot Mode QSPI / USB
Debug Mode
Switch
On Setting (white bar)
Off Setting (default)
W1
JTAG Mode
ARM Coresight Mode
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 7 of 29 Jan.31.2020
GPIO Pull up
Switch
On Setting (white bar) (default)
Off Setting
W5
LCD [145:127,73:62] pull up
LCD [145:127,73:62] pull down
GPIO Pull up
Switch
On Setting (white bar) (default)
Off Setting
W6
LCD [111:105,59:36] pull up
LCD [111:105,59:36] pull down
Table 5: Ethernet RX Clock ETH4: RX_CLK
Switch
On Setting (white bar) (default)
Off Setting
W2
RXCLK4 from Phy
RXCLK4 from GPIO61
ETH5: RX_CLK
Switch
On Setting (white bar) (default)
Off Setting
W4
RXCLK5 from Phy
RXCLK5 from GPIO61
Instead of QSPI it is possible to boot from USB, if SW5 is pressed down during the RESET.
Table 6: Push buttons SW5:
Boot Mode Select
Switch
On Setting
Off Setting
SW5
Boot from USB
Boot from QSPI
Table 7: Reset and NMI switches SW3:
Power On Clear
Switch
On Setting
Off Setting
SW3
POR Reset
Release POR Reset
SW4:
Soft Reset
Switch
On Setting
Off Setting
SW4
Soft Reset
Release Soft Reset
SW6:
NMI
Switch
On Setting
Off Setting
SW6
Generate CM3 NMI
Release CM3 NMI
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 8 of 29 Jan.31.2020
If you are using the expansion board together with RZ/N1D CPU Board, please remove the jumper CN6.
1. JTAG Debug Connector
This connection is required for software development purposes, to be able to run and debug the software on the target. The IAR Debugger cable has one unused key pin, therefore pin 7 of the J2 connector should be cut or bent, as shown below. After this step, you can attach your I-jet debugger to the board via JTAG cable to the PC via USB.
Figure 2-2: Connector J2 with removed pin 7
Figure 2-3: I-Jet Debugger Connector
2. Power connector and serial-over-USB
The board is powered via USB connector CN10, if not attached to the expansion board. If you use the CPU board standalone, please make sure that the jumper CN6 is ON, otherwise OFF. Please connect the board to your PC via USB cable to the connector CN10. The same interface is used for serial UART communication with the board, so if you have a windows PC, after connecting the
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 9 of 29 Jan.31.2020
board via USB, you should be able to see a new device registered 4 new USB Serial COM ports. You may use any of the terminal emulator on your PC to open a serial port connection to the board. The board uses the 3rd port for UART output at 115200,8,n,1. On Linux PCs, if you have no other serial-over-USB devices attached, this is accessed using /dev/ttyUSB2, provided you do not have any other USB devices attached.
Figure 2-4: Power connector and serial over USB
If the board is not recognized by Windows, please install the FTDI driver that you may find under \YCONNECT-IT-RZN_V1.x\Tools\FTDI.
You can perform a soft-reset of the board by pressing SW4.
3. Ethernet Interface
The Ethernet connection to the PC or a PLC can be prepared using one of the two RJ-45 connectors CN4 or CN1 (for an overview of connectors please check Figure 2-1). For running any Ethernet fieldbus sample program, you can use any of the two connectors. There are two PHY Micrel chips connected to these RJ-45 connectors.
If you are using the expansion board, Ports J23 and J24 can be used of real-time Ethernet and port J22 is reserved for Linux. You can connect J22 to a dedicated Network Interface Card (NIC) on your PC to open a secure shell to Linux. Linux accesses GMAC1 on the RZ/N1 device.
RZ/N1D Group CONNECT IT! ETHERNET RZ/N1D-DB
R01QS0022ED0060 Rev. 0.60 Page 10 of 29 Jan.31.2020
2.2 Expansion Board Setup
If you are using the expansion board together with your RZ/N1D CPU Board, here you may find some setup notes for it. The expansion board comes with an external power supply to drive the expansion board and the RZ/N1x CPU board plugged onto the connectors J1 and J2. Please note the position of the power supply
selection jumper below and ensure that the 12…24V position is chosen. This board expands the RZ/N1D or
RZ/N1S CPU boards with 3 Gbit PHY ports, an SD-Card slot, a USB Host as well as CAN, RS232, RS485, PMODs, LCD display interface with integrated touch screen, etc.
Figure 2-5: RZ/N1-EB Expansion Board Overview
Loading...
+ 21 hidden pages