Avnet MiniZed Getting Started Manual

Page 1
Copyright © 2017 Avnet, Inc. AVNET, “Reach Further,” and the Avnet logo are registered
trademarks of Avnet, Inc. All other brands are the property of their respective owners.
LIT# MiniZed-GSG-v1-1-V1
Version 1.2
Page 2
Version
Date
Comment
1.0
12 Jun 2017
Initial MiniZed Hardware User Guide
1.1
22 Jun 2017
Fixed a formatting problem with Appendix A
1.2
21 May 2018
Fixed an error about the USB stick on page 10
Document Control
Document Version: 1.2 Document Date: 21 May 2018
Prior Version History
Page 3
Contents
Getting Started with MiniZed ................................................................................. 6
What’s Inside the Box? ......................................................................................... 7
Optional add-on items: ............................................................................................................. 7
What’s on the Web? ............................................................................................. 7
Official Documentation: ............................................................................................................ 7
Tutorials and Reference Designs: ............................................................................................ 7
Trainings and Videos: ............................................................................................................... 7
Available through Avnet FAE: .................................................................................................. 7
MiniZed Key Features ........................................................................................... 8
MiniZed Basic Setup and Operation ................................................................... 10
Example Design ..................................................................................................................... 11
Hardware Setup ...................................................................................................................... 11
Boot Linux ........................................................................................................... 13
Reading from USB .............................................................................................. 15
Wi-Fi ................................ ................................................................ ................... 16
Bluetooth ............................................................................................................. 24
I2C Sensor and GPIO ......................................................................................... 25
Linux File System ............................................................................................... 27
Poweroff .............................................................................................................. 30
Getting Help and Support ................................................................................... 31
Avnet Support ......................................................................................................................... 31
Xilinx Support ......................................................................................................................... 32
Installing and Licensing Xilinx Software .............................................................. 33
Install Vivado Design Suite, WebPack Edition ....................................................................... 33
Certification Disclaimer ................................................................ ....................... 34
Regulatory Compliance Information .................................................................... 35
Safety Warnings ................................................................................................. 36
RF Certification ................................................................................................... 37
Appendix A – Partition and Format eMMC .......................................................... 38
Page 4
Figures
Figure 1 – MiniZed ...................................................................................................... 6
Figure 2 – MiniZed Block Diagram .............................................................................. 9
Figure 3 – MiniZed Topology ..................................................................................... 10
Figure 4 – MiniZed USB-JTAG/UART Installed Correctly ......................................... 11
Figure 5 – MiniZed Switch Location .......................................................................... 12
Figure 6 – QSPI/Flash Boot Mode ............................................................................ 13
Figure 7 – COM Port Settings for USB-UART Terminal ............................................ 13
Figure 8 – PetaLinux Boot on MiniZed ................................................................ ...... 14
Figure 9 – USB Drive Recognized ............................................................................ 15
Figure 10 – USB Drive Mounted ............................................................................... 15
Figure 11 – Edit these 2 fields in wpa_supplicant.conf .............................................. 16
Figure 12 – iperf results on MiniZed .......................................................................... 17
Figure 13 – ping results ............................................................................................. 18
Figure 14 – Download and View Text File ................................................................. 19
Figure 15 -- ifconfig ................................................................................................... 20
Figure 16 – MiniZed FTP Session ............................................................................. 21
Figure 17 – WinSCP Launched ................................................................................. 22
Figure 18 – WinSCP Parameters Entered ................................................................. 22
Figure 19 – WinSCP Save Session ........................................................................... 23
Figure 20 – MiniZed Bluetooth Discovers V20 Android ............................................. 24
Figure 21 – Testing LEDs, Button, Switch, and Sensor............................................. 25
Figure 22 – USER DIP set towards Push Button ...................................................... 25
Figure 23 – Print Working Directory .......................................................................... 27
Figure 24 – List Contents .......................................................................................... 27
Figure 25 – Detailed List Contents ............................................................................ 28
Figure 26 – Disk Free ................................................................................................ 28
Figure 27 – Find a File .............................................................................................. 29
Figure 28 – Which ..................................................................................................... 29
Figure 29 – fdisk started ............................................................................................ 38
Figure 30 – View Partitions ....................................................................................... 38
Figure 31 – Partition 1 Deleted .................................................................................. 39
Figure 32 – 128 MB Primary Partition Created .......................................................... 39
Page 5
Figure 33 – Partition #2 ............................................................................................. 39
Figure 34 – New Partitions ........................................................................................ 39
Figure 35 – Partition Type Set to FAT32 ................................................................... 40
Figure 36 – Partition Table Written ............................................................................ 40
Figure 37 – eMMC Partitions Mounted ...................................................................... 41
Page 6
Getting Started with MiniZed
The Avnet MiniZed enables hardware and software developers to explore the capabilities of the Zynq™-7000 All Programmable SoC Single-Core. Designers can create or evaluate designs for both the Zynq Processor Subsystem (PS) and the Programmable Logic (PL) fabric.
This Getting Started Guide will outline the steps to setup the MiniZed hardware. It documents the procedure to run a PetaLinux design running on the ARM® Cortex™-A9 MPCore™ Processing System (PS).
Figure 1 – MiniZed
Page 7
What’s Inside the Box?
MiniZed development board Voucher for SDSoC license from Xilinx Micro USB cable Quick Start Instruction card Safety Instructions pamphlet
Optional add-on items:
External 2A @ 5V power supply with micro USB cable (AES-ACC-MINIZ-PWR) Digilent SD Card Pmod with SD Card (410-123) ST Micro Motion MEMS and environmental sensor expansion board (X-NUCLEO-
IKS01A1)
What’s on the Web?
MiniZed is a community-oriented kit, with all materials being made available through the
MiniZed.org community website.
Official Documentation:
Getting started guide Hardware user guide Schematics Bill of materials Layout PCB net lengths Mechanical drawing 3D Model Board definition files for Vivado integration Programmable logic (PL) master user constraints
Tutorials and Reference Designs:
Introduction to Zynq Design Tutorials PetaLinux BSP Booting MiniZed using QSPI and eMMC
Trainings and Videos:
Introduction to MiniZed
Available through Avnet FAE:
Altium source database for schematic and layout
Page 8
MiniZed Key Features
Xilinx Zynq XC7Z007S SoC Memory
o Micron 512 MB DDR3L o Micron 128 MB QSPI flash o Micron 8GB eMMC mass storage
Configuration and Debug
o On-board USB to JTAG and debug UART circuit
Communications
o On-board USB to JTAG and debug UART circuit o Murata "Type 1DX" wireless module with 802.11b/g/n Wi-Fi and Bluetooth 4.1
plus EDR and BLE (Bluetooth Low Energy)
o USB 2.0 host interface
Power
o Dialog Semiconductor DA9062 PMIC (Power Management IC)
Expansion connectors
o Arduino-compatible shield interface o 2 x Pmod-compatible interfaces
Sensors
o ST Micro LIS2DS12 Accelerometer and Temperature sensor o ST Micro MP34DT05 digital MEMS microphone
General Purpose I/O
o Reset button o User button o User switch o Two user bi-element LEDs
Page 9
Figure 2 – MiniZed Block Diagram
Page 10
MiniZed Basic Setup and Operation
The functionality of the MiniZed is determined by the application booted from the non-volatile memory – by default that is the QSPI and eMMC. This Getting Started Guide allows system developers to exercise and demonstrate multiple circuits through PetaLinux, including:
USB 2.0 eMMC Wi-Fi Bluetooth I2C Sensor Microphone
In addition to the items included in the kit, you will also need the following to complete the exercises in this tutorial.
Wi-Fi connection2nd micro-USB cable  USB thumb drive formatted as FAT or FAT32
A MiniZed image in its expected out-of-box configuration is shown below along with the locations of several key components.
Figure 3 – MiniZed Topology
Page 11
Example Design
The MiniZed ships with an example PetaLinux design stored in the QSPI and eMMC. If the QSPI has been erased or reprogrammed, than use the Restore QSPI and eMMC Factory Images tutorial available at www.MiniZed.org to restore both the QSPI and eMMC to the original factory images.
Hardware Setup
1. The USB thumb drive must be formatted as FAT32. If this has not been previously done, please do that now.
2. A terminal program is required. Tera Term was used in this example which can be downloaded from the Tera Term project on the SourceForge Japan page:
ttssh2.sourceforge.jp Install Tera Term or another terminal program of your choice.
3. Connect the MiniZed USB-JTAG/UART port J2 to your Windows PC. It should automatically install the proper drivers, giving you a confirmation as shown below. If installed correctly, skip to Step 7.
Figure 4 – MiniZed USB-JTAG/UART Installed Correctly
4. In the rare circumstance that the drivers are not auto-installed, then you must manually install the driver for the FTDI FT2232H device. Visit the FTDI website and download the appropriate driver for your operating system.
http://www.ftdichip.com/Drivers/VCP.htm
5. Make sure the MiniZed is unplugged from the PC. Unzip and install the driver.
6. Reboot your PC then plug in the MiniZed.
Page 12
7. Set the MiniZed boot mode switch SW1 to QSPI mode (‘F’ for Flash) as shown below.
Figure 5 – MiniZed Switch Location
Page 13
Figure 6 – QSPI/Flash Boot Mode
Boot Linux
8. If previously disconnected, plug in the micro-USB cable to the USB-JTAG/UART port.
9. Plug in the 2nd micro-USB cable to the auxiliary power port. This is necessary for the USB thumb drive to get power.
10. Launch and connect Tera Term using the settings shown below. Press the RESET button (SW2) to reset the board so you can see the boot sequence.
Figure 7 – COM Port Settings for USB-UART Terminal
Loading...
+ 28 hidden pages