Sie sind auf Seite 1von 41

TU0546

Tutorial
SoftConsole v4.0 and Libero SoC v11.7
Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or the suitability of
its products and services for any particular purpose, nor does Microsemi assume any liability whatsoever arising out of the
application or use of any product or circuit. The products sold hereunder and any other products sold by Microsemi have
been subject to limited testing and should not be used in conjunction with mission-critical equipment or applications. Any
performance specifications are believed to be reliable but are not verified, and Buyer must conduct and complete all
performance and other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not
Microsemi Corporate Headquarters rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer's responsibility to
One Enterprise, Aliso Viejo, independently determine suitability of any products and to test and verify the same. The information provided by Microsemi
CA 92656 USA hereunder is provided as is, where is and with all faults, and the entire risk associated with such information is entirely
Within the USA: +1 (800) 713-4113 with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP
Outside the USA: +1 (949) 380-6100 rights, whether with regard to such information itself or anything described by such information. Information provided in this
Fax: +1 (949) 215-4996 document is proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this
document or to any products and services at any time without notice.
Email: sales.support@microsemi.com
www.microsemi.com About Microsemi
Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductor and system solutions for
2017 Microsemi Corporation. All
aerospace & defense, communications, data center and industrial markets. Products include high-performance and
rights reserved. Microsemi and the
radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs and ASICs; power management products;
Microsemi logo are trademarks of timing and synchronization devices and precise time solutions, setting the world's standard for time; voice processing
Microsemi Corporation. All other devices; RF solutions; discrete components; enterprise storage and communication solutions, security technologies and
trademarks and service marks are the scalable anti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and midspans; as well as custom design
property of their respective owners. capabilities and services. Microsemi is headquartered in Aliso Viejo, California, and has approximately 4,800 employees
globally. Learn more at www.microsemi.com.

50200546. 6.0 9.17


Contents

1 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Revision 6.0 ....................................................................... 1
1.2 Revision 5.0 ....................................................................... 1
1.3 Revision 4.0 ....................................................................... 1
1.4 Revision 3.0 ....................................................................... 1
1.5 Revision 2.0 ....................................................................... 1
1.6 Revision 1.0 ....................................................................... 1

2 SoftConsole v4.0 and Libero SoC v11.7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2


2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 Design Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2.1 Associated Project Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.3 Design Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.4 Step 1: Creating a Libero SoC Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.4.1 Launching Libero SoC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.4.2 Connecting Components in LED_Blink SmartDesign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5 Step 2: Generating the Program File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.6 Step 3: Programming the SmartFusion2 Board Using FlashPro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 Step 4: Creating Software Project using SoftConsole 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.7.1 Export Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.7.2 Download Firmware Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.7.3 Building Software Application using SoftConsole 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.7.4 Debugging the Application Project using SoftConsole v4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.8 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

3 Appendix: Board Setup for SmartFusion2 Security Evaluation Kit . . . . . . . . . . . . . 31


4 Appendix: Board Setup for SmartFusion2 Advanced Development Kit . . . . . . . . . . 33
5 Appendix: Board Setup for SmartFusion2 Starter Kit . . . . . . . . . . . . . . . . . . . . . . . 35

TU0546 Tutorial Revision 6.0 iii


Figures

Figure 1 Design Files Top-Level Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3


Figure 2 Libero SoC Project Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 3 Project Details Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 4 Device Selection Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 5 Device Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 6 Design Template Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 7 New Project Information Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 8 System Builder Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 9 System Builder Device Features Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 10 System Builder Configurator Select Peripherals Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 11 MSS_GPIO Configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 12 System Builder Configurator Clock Settings Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 13 System Builder Generated System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 14 LED_Blink Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 15 Generate Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 16 Log Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 17 Design Flow Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 18 Manage Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 19 I/O Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 20 I/O Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 21 Generate Bitstream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 22 Run Programming Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 23 Export Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 24 Export Firmware Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 25 Firmware Export Successful . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 26 Firmware Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 27 Firmware Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 28 Generate Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 29 Warning Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 30 Software Tool Chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 31 Workspace Launcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 32 SoftConsole Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 33 Creating New C Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 34 C Project Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 35 C Project - Select Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 36 C Project - Cross GNU ARM Tool Chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 37 Project Explorer - Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 38 Import Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 39 Import - File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 40 Project Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 41 Project Explorer window - Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 42 Properties for LED_Blink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 43 Properties for LED_Blink - Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 44 Properties for LED_Blink - General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 45 Properties for LED_Blink - Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 46 Project - Build All . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 47 Problems Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 48 Run - Debug Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 49 Debug Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 50 Debug Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 51 Confirm Perspective Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 52 Debugger Perspective Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 53 Debug Configurations Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 54 Values of Cortex-M3 Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

TU0546 Tutorial Revision 6.0 iv


Figure 55 Values of the Variables in the Source Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 56 Assembly Level Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 57 SmartFusion2 Security Evaluation Kit Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 58 SmartFusion2 Security Evaluation Kit Board Jumper Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 59 SmartFusion2 Advanced Development Kit Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 60 SmartFusion2 Advanced Development Kit Board Jumper Locations . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 61 SmartFusion2 Starter Kit Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

TU0546 Tutorial Revision 6.0 v


Tables

Table 1 Design Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2


Table 2 SmartFusion2 Devices Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Table 3 SmartFusion2 GPIO Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 4 Port to Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 5 LED Target Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 6 SmartFusion2 Security Evaluation Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 7 SmartFusion2 Advanced Development Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 8 SmartFusion2 Starter Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

TU0546 Tutorial Revision 6.0 vi


Revision History

1 Revision History

The revision history describes the changes that were implemented in the document. The changes are
listed by revision, starting with the current publication.

1.1 Revision 6.0


The following changes are made in revision 6.0 of this document:
A note about FlashPro5 Programmer is added in Debugging the Application Project using
SoftConsole v4.0, page 25
Three notes are added in Appendix: Board Setup for SmartFusion2 Security Evaluation Kit, page 31
to describe about J5 - FlashPro connector and J18 - FTDI programmer interface

1.2 Revision 5.0


In revision 5.0, this document is updated for Libero SoC v11.7 software release.

1.3 Revision 4.0


In revision 4.0, this document is updated for Libero SoC v11.6 and SoftConsole v4.0 software release.

1.4 Revision 3.0


In revision 3.0, this document is updated for Libero SoC v11.5 software release.

1.5 Revision 2.0


In revision 2.0, this document is updated for Libero SoC v11.4 software release.

1.6 Revision 1.0


Revision 1.0 was the first publication of this document.

TU0546 Tutorial Revision 6.0 1


SoftConsole v4.0 and Libero SoC v11.7

2 SoftConsole v4.0 and Libero SoC v11.7

2.1 Introduction
This tutorial describes how to implement an ARM Cortex-M3 design using Libero System-on-Chip
(SoC) v11.7 and build a simple LED blink application using SoftConsole v4.0.
After completing this tutorial, you will be able to perform the following tasks:
Create a Libero SoC project using System Builder
Generate the programming file to program the SmartFusion2 SoC field programmable gate array
(FPGA) device
Create a SoftConsole v4.0 project
Compile application code
Debug and run code using SoftConsole

2.2 Design Requirements


Table 1 Design Requirements

Design Requirements Description


Hardware Requirements
SmartFusion2 Security Evaluation Kit: Rev D or later
FlashPro4 or FlashPro5 programmer
12 V adapter
SmartFusion2 Advanced Development Kit: Rev B or later
FlashPro4 or FlashPro5 programmer
12 V adapter
SmartFusion2 Starter Kit: SmartFusion2-484-Starter-Kit (M2S010-FGG484)
FlashPro4 or FlashPro5 programmer
USB A to Mini-B cable
Host PC or Laptop Any 64-bit Windows Operating System
Software Requirements
Libero SoC v11.7
SoftConsole v4.0
FlashPro programming software v11.7

Note: This tutorial is applicable for any one of the SmartFusion2 boards listed in the preceding table.

2.2.1 Associated Project Files


Download design files for this tutorial from the Microsemi website:
http://soc.microsemi.com/download/rsc/?f=m2s_tu0546_liberov11p7_df
The demo design files include:
Libero Project
Sourcefiles
Readme file
The following figure shows the top-level structure of the design files. See the Readme.txt file provided in
the design files directory for the complete directory structure.

TU0546 Tutorial Revision 6.0 2


SoftConsole v4.0 and Libero SoC v11.7

Figure 1 Design Files Top-Level Structure


<download_folder>

SF2_LED_Blink_SC_Tutorial_DF

Sourcefiles

LiberoProject

Readme.txt

2.3 Design Overview


This tutorial demonstrates a simple LED blinking application for SmartFusion2 device. Microcontroller
subsystem (MSS) general-purpose input/output (GPIOs) are configured as outputs and connected to
LEDs using fabric I/Os. This tutorial is applicable on one of the following SmartFusion2 boards:
SmartFusion2 Security Evaluation Kit
SmartFusion2 Advanced Development Kit
SmartFusion2 Starter Kit (M2S010-FGG484)

2.4 Step 1: Creating a Libero SoC Project


The following steps describe how to create a Libero SoC project:

2.4.1 Launching Libero SoC


1. Click Start > Programs > Microsemi > Libero SoC v11.7 or double-click the shortcut on desktop to
open the Libero SoC v11.7 Project Manager.
2. Create a new project by selecting New on the Start Page tab (highlighted in the following figure) or
by clicking Project > New Project from the Libero SoC menu.
Figure 2 Libero SoC Project Manager

3. In the Project Details window, enter the following information as shown in Figure 3, page 4.
Project Name: LED_Blink
Project Location: Select an appropriate location (for example, D:/Microsemi_prj)
Preferred HDL type: Verilog or VHDL

TU0546 Tutorial Revision 6.0 3


SoftConsole v4.0 and Libero SoC v11.7

Enable Block Creation: Unchecked


Figure 3 Project Details Window

4. Click Next. In the Device Selection window, select the information as displayed in Figure 4, page 5.
In the Part Filter, select the values using the drop-down lists, as shown in the following table.
Family: SmartFusion2

Table 2 SmartFusion2 Devices Selection

PLL Supply
Board Die Package Speed Core Voltage Range Voltage
SmartFusion2 Security M2S090TS 484 FBGA -1 1.2 COM 3.3
Evaluation Kit
SmartFusion2 Advanced M2S150T 1152 FC -1 1.2 COM 3.3
Development Kit
SmartFusion2 Starter Kit M2S010 484 FBGA STD 1.2 COM 2.5

TU0546 Tutorial Revision 6.0 4


SoftConsole v4.0 and Libero SoC v11.7

Figure 4 Device Selection Window

5. Click Next.,the Device settings window is displayed. Select PLL Supply Voltage (V), as shown in the
following figure.
Figure 5 Device Settings

See Table 2, page 4 for specific board values.


6. Click Next. In the Design Template page, select Create a system builder based design check
box under the Design Templates and Creators as shown in the following figure.

TU0546 Tutorial Revision 6.0 5


SoftConsole v4.0 and Libero SoC v11.7

Figure 6 Design Template Window

7. Click Finish. a New Project Information window is displayed, as shown in the following figure.
8. Click Use Enhanced Constraint Flow, as shown in the following figure.
Figure 7 New Project Information Window

A System Builder dialog box is displayed, as shown in Figure 8, page 7.

TU0546 Tutorial Revision 6.0 6


SoftConsole v4.0 and Libero SoC v11.7

System builder is a graphical design wizard. It creates a design based on high-level design specifications
by taking the user through a set of high-level questions that define the intended system.
9. Enter a name for your system as LED_Blink and then click OK, as shown in the following figure.
Figure 8 System Builder Dialog Box

System Builder Device Features page is displayed, as shown in the following figure.
Figure 9 System Builder Device Features Page

10. Retain the default values. Click Next, the System Builder Peripherals page is displayed. Under
the MSS Peripherals section, uncheck all the check boxes except MSS_GPIO, as shown in the
following figure.

TU0546 Tutorial Revision 6.0 7


SoftConsole v4.0 and Libero SoC v11.7

Figure 10 System Builder Configurator Select Peripherals Page

11. Double-click the wrench symbol for the MSS_GPIO peripheral to open the
MSS_GPIO Configurator.
12. This design requires configuring GPIOs to drive LEDs on the board, configure the GPIOs as shown
below:
Set/Reset Definition accept default settings
Configure GPIO as shown in the following table

Table 3 SmartFusion2 GPIO Configuration

Board Die GPIO ID Direction Package Pin Connectivity


SmartFusion2 Security M2S090TS GPIO_0 to GPIO_7 Output NA FABRIC_A
Evaluation Kit
SmartFusion2 Advanced M2S150T GPIO_0 to GPIO_7 Output NA FABRIC_A
Development Kit
SmartFusion2 Starter Kit M2S010 GPIO_0 to GPIO_1 Output NA FABRIC_A

TU0546 Tutorial Revision 6.0 8


SoftConsole v4.0 and Libero SoC v11.7

Figure 11 MSS_GPIO Configurator

13. Click Next, the System Builder Clocks Settings page is displayed, as shown in Figure 12,
page 10. Select System Clock source as On-chip 25/50 MHz RC Oscillator.
The M3_CLK is configured to 100 MHz by default.

TU0546 Tutorial Revision 6.0 9


SoftConsole v4.0 and Libero SoC v11.7

Figure 12 System Builder Configurator Clock Settings Page

14. Click Next, the System Builder Microcontroller Options page is displayed.
Retain the default values.
15. Click Next, the System Builder SECDED Options page is displayed.
Retain the default values.
16. Click Next, the System Builder Security Options page is displayed.
Retain the default values.
17. Click Next, the System Builder Interrupts Options page is displayed.
Retain the default values.
18. Click Next, the System Builder Memory Map Options page is displayed.
Retain the default values.
19. Click Finish.
System Builder generates the system based on the selected options.
System Builder block is created and added to the Libero SoC project, as shown in the following figure.
Figure 13 System Builder Generated System

2.4.2 Connecting Components in LED_Blink SmartDesign


The following steps describe how to connect the components in LED_Blink SmartDesign:
1. Connect the pins as follows:
Tie the FAB_RESET_N to high by right-clicking and selecting Tie High.
Mark the output port POWER_ON_RESET_N as unused by right-clicking and selecting Mark
Unused.

TU0546 Tutorial Revision 6.0 10


SoftConsole v4.0 and Libero SoC v11.7

Mark the output port MSS_READY as unused by right-clicking and selecting Mark Unused.
Expand INIT_PINS, right-click INIT_DONE and select Mark Unused.
Expand FAB_CCC_PINS, right-click FAB_CCC_GL0 and select Mark Unused.
Right-click FAB_CCC_LOCK and select Mark Unused.
Right-click GPIO_FABRIC and select Promote to Top Level.
2. Click File > Save. The LED_Blink design is displayed, as shown in the following figure.
Figure 14 LED_Blink Design

3. Generate the LED_Blink SmartDesign by clicking SmartDesign > Generate Component or by


clicking Generate Component on the SmartDesign toolbar.
Figure 15 Generate Component

After successful generation of the system, the message info: LED_Blink was successfully generated
is displayed on the Libero SoC Log window, as shown in the following figure.
Figure 16 Log Window

2.5 Step 2: Generating the Program File


1. Double-click Synthesize in the Design Flow window, as shown in the following figure to complete
the synthesis.
Figure 17 Design Flow Window

TU0546 Tutorial Revision 6.0 11


SoftConsole v4.0 and Libero SoC v11.7

2. Double-click Manage Constraints in the Design Flow window, as shown in the following figure.
Figure 18 Manage Constraints

3. Click Edit with I/O Editor under I/O Attributes, as shown in the following figure. The I/O Editor
window is displayed, as shown in Figure 20, page 13.
Figure 19 I/O Attributes

4. Make the pin assignments, as shown in the following table. After the pins are assigned, the I/O
Editor is displayed, as shown in Figure 20, page 13.

Table 4 Port to Pin Mapping

Port Name Pin Number


SmartFusion2 Security Evaluation Kit
GPIO_0_M2F H5
GPIO_1_M2F H6
GPIO_2_M2F J6
GPIO_3_M2F H7
GPIO_4_M2F G7
GPIO_5_M2F F3
GPIO_6_M2F F4

TU0546 Tutorial Revision 6.0 12


SoftConsole v4.0 and Libero SoC v11.7

Table 4 Port to Pin Mapping

GPIO_7_M2F E1
SmartFusion2 Advanced Development Kit
GPIO_0_M2F D26
GPIO_1_M2F F26
GPIO_2_M2F A27
GPIO_3_M2F C26
GPIO_4_M2F C28
GPIO_5_M2F B27
GPIO_6_M2F C27
GPIO_7_M2F E26
SmartFusion2 Starter Kit
GPIO_0_M2F AB18
GPIO_1_M2F P1

Figure 20 I/O Editor

5. After updating the I/O editor, click Commit and Check.


6. Close the I/O Editor.
7. Click Generate Bitstream in Design flow window, as shown in the following figure, to generate the
programming file.

TU0546 Tutorial Revision 6.0 13


SoftConsole v4.0 and Libero SoC v11.7

Figure 21 Generate Bitstream

2.6 Step 3: Programming the SmartFusion2 Board Using


FlashPro
Jumper settings for the supported target boards and board setup for running the tutorial are given in the
following chapters:
Appendix: Board Setup for SmartFusion2 Security Evaluation Kit, page 31.
Appendix: Board Setup for SmartFusion2 Advanced Development Kit, page 33.
Appendix: Board Setup for SmartFusion2 Starter Kit, page 35.
1. To program the SmartFusion2 device, double-click Run PROGRAM Action in the Design Flow
window, as shown in the following figure.
Figure 22 Run Programming Action

TU0546 Tutorial Revision 6.0 14


SoftConsole v4.0 and Libero SoC v11.7

2.7 Step 4: Creating Software Project using SoftConsole 4.0


The following steps show how to create a software project using SoftConsole 4.0.

2.7.1 Export Firmware


1. Double-click Export Firmware in Handoff design for Production in the Design Flow window, as
shown in the following figure.
Figure 23 Export Firmware

Export Firmware dialog box is displayed as shown in the following figure.


2. Select Export hardware configuration (Software IDE independent), as shown in the following
figure.
Figure 24 Export Firmware Dialog Box

3. Click OK, a notification window appears saying Firmware project was successfully exported to
<drive:\>Microsemi_prj\LED_Blink, as shown in the following figure.
Figure 25 Firmware Export Successful

4. Click OK.

TU0546 Tutorial Revision 6.0 15


SoftConsole v4.0 and Libero SoC v11.7

2.7.2 Download Firmware Drivers


The following drivers are used in this tutorial:
CMSIS
GPIO
To generate the required drivers:
1. Open the Microsemi SoC Firmware catalog from: Start > Programs > Microsemi> Libero SoC
v11.7>Firmware Catalog> Firmware Catalog.
A message, New cores are available for download is displayed at the bottom of the Firmware Catalog,
as shown in the following figure.
Figure 26 Firmware Catalog

2. Click Download them now, to download most recent drivers for peripherals.
3. In Firmware catalog window, right-click SmartFusion2 CMSIS Hardware Abstraction Layer and
then click Generate, as shown in the following figure.

TU0546 Tutorial Revision 6.0 16


SoftConsole v4.0 and Libero SoC v11.7

Figure 27 Firmware Catalog

4. In Generate Options window, browse Project folder at


<drive:\>Microsemi_prj\LED_Blink\firmware and then click OK.
Figure 28 Generate Options

5. A warning message is displayed, as shown in the following figure. Click Yes.


Figure 29 Warning Message

6. Configuring SmartFusion2_CMSIS_TOP_0 window is displayed, as shown in the following figure.


Select SoftConsole from the Software Tool Chain drop-down list and click OK.
Figure 30 Software Tool Chain

7. Repeat steps 3 to 7 to download SmartFusion2 MSS GPIO driver.

TU0546 Tutorial Revision 6.0 17


SoftConsole v4.0 and Libero SoC v11.7

2.7.3 Building Software Application using SoftConsole 4.0


1. Click Start > Programs > Microsemi SoftConsole v4.0 > Microsemi SoftConsole v4.0 to open
the SoftConsole IDE. The SoftConsole Workspace Launcher window is displayed.
2. Browse to the location to select D:\Microsemi_prj\LED_Blink\SoftConsole, as shown in the following
figure.
Figure 31 Workspace Launcher

The SoftConsole workspace is displayed, as shown in the following figure.


Figure 32 SoftConsole Window

3. Click File >New >C project as shown in the following figure.

TU0546 Tutorial Revision 6.0 18


SoftConsole v4.0 and Libero SoC v11.7

Figure 33 Creating New C Project

4. Enter Project name as LED_Blink, as shown in the following figure.


Figure 34 C Project Window

5. Click Next, Select Configurations window is displayed, as shown in the following figure.

TU0546 Tutorial Revision 6.0 19


SoftConsole v4.0 and Libero SoC v11.7

Figure 35 C Project - Select Configuration

6. Do not change default settings. Click Next.


7. Cross GNU ARM Tool chain window is displayed, as shown in the following figure.
Figure 36 C Project - Cross GNU ARM Tool Chain

8. Click Finish.
9. Right-click LED_Blink and click Import as shown in the following figure.
Figure 37 Project Explorer - Import

10. Import window is displayed, as shown the following figure.

TU0546 Tutorial Revision 6.0 20


SoftConsole v4.0 and Libero SoC v11.7

11. Click File System and then click Next.


Figure 38 Import Window

12. Browse to D:\Microsemi_prj\LED_Blink\firmware and check firmware check box, as shown in the
following figure.
Figure 39 Import - File System

13. Click Finish.


Note: If any changes are made to the Libero SoC project, firmware needs to be exported from Libero and new
firmware must be imported to LED_Blink.
14. Using Windows explorer, browse to the main.c file location in the respective design files folder as
follows:
For SmartFusion2 Security Evaluation Kit:
<download_folder>\SF2_LED_Blink_SC_Tutorial_DF\Sourcefiles\SF2_Security_Kit.

TU0546 Tutorial Revision 6.0 21


SoftConsole v4.0 and Libero SoC v11.7

For SmartFusion2 Advanced Development Kit:


<download_folder>\SF2_LED_Blink_SC_Tutorial_DF\Sourcefiles\SF2_Adv_Dev_Kit.
For SmartFusion2 Starter Kit:
<download_folder>\SF2_LED_Blink_SC_Tutorial_DF\Sourcefiles\SF2_Starter_Kit.
15. Copy the main.c file to the LED_Blink project in the SoftConsole workspace, as shown in the
following figure.
Figure 40 Project Explorer

16. Right-click LED_Blink and click Properties, as shown in the following figure.
Figure 41 Project Explorer window - Properties

17. Click Settings under the C/C++ Build tab, as shown in the following figure.

TU0546 Tutorial Revision 6.0 22


SoftConsole v4.0 and Libero SoC v11.7

Figure 42 Properties for LED_Blink

18. Under Cross ARM C compiler, click Miscellaneous and enter


--specs=cmsis.specs, in Other compiler flags text box as shown in the following figure.
Figure 43 Properties for LED_Blink - Miscellaneous

19. Under Cross ARM C Linker, click General as shown in Figure 44, page 24.
20. Click add button and add following linker Script path:
${workspace_loc:/${ProjName}/CMSIS/startup_gcc/debug-in-microsemi-smartfusion2-
esram.ld}
21. After adding Linker Script, Properties for LED_Blink, window is displayed, as shown in the
following figure.

TU0546 Tutorial Revision 6.0 23


SoftConsole v4.0 and Libero SoC v11.7

Figure 44 Properties for LED_Blink - General

22. Under Cross ARM C Linker, click Miscellaneous.


23. Check Use newlib-nano(--specs=nano.specs) option, as shown in the following figure.
Figure 45 Properties for LED_Blink - Miscellaneous

24. Click OK.


25. Click Project and click Build All, as shown in the following figure.

TU0546 Tutorial Revision 6.0 24


SoftConsole v4.0 and Libero SoC v11.7

Figure 46 Project - Build All

26. Ensure that the Problems tab in the displayed window must not have any errors, as shown in the
following figure.
Figure 47 Problems Window

2.7.4 Debugging the Application Project using SoftConsole v4.0


The following steps describe how to debug the application project using SoftConsole v4.0:
1. Click Debug Configurations in the Run menu of the SoftConsole, as shown in the following figure.
The Debug Configurations window is displayed, as shown in Figure 49, page 26.
Figure 48 Run - Debug Configurations

2. Double-click GDB OpenOCD Debugging to view the configurations, as shown in the following
figure.

TU0546 Tutorial Revision 6.0 25


SoftConsole v4.0 and Libero SoC v11.7

Figure 49 Debug Configurations

3. Ensure that the following values are filled in the corresponding fields:
Name: LED_Blink Debug
Project: LED_Blink
C/C++ Application: Debug\LED_Blink.elf
4. Select the Debugger tab in the Debug Configurations dialog box. --command set DEVICE
M2S090 specifies the target device, as shown in Figure 50, page 27. This command needs to be
modified based on the target silicon.
SmartFusion2 Security Evaluation Kit - set DEVICE M2S090
SmartFusion2 Advanced Development Kit - set DEVICE M2S150
SmartFusion2 Starter Kit - set DEVICE M2S010

TU0546 Tutorial Revision 6.0 26


SoftConsole v4.0 and Libero SoC v11.7

Figure 50 Debug Tab

5. Click Debug.
6. On the Confirm Perspective Switch window, click Yes as shown in the following figure.
Figure 51 Confirm Perspective Switch

The SoftConsole Debugger Perspective window is displayed, as shown in the following figure.

TU0546 Tutorial Revision 6.0 27


SoftConsole v4.0 and Libero SoC v11.7

Figure 52 Debugger Perspective Window

7. Click Run > Resume to run the application. LEDs start blinking on the SmartFusion2 target boards.
The following table shows which LEDs blink for the different SmartFusion2 target boards.

Table 5 LED Target Board

Target Board LEDs


SmartFusion2 Security Evaluation Kit H5, H6, J6, H7, G7, F3, F4, and E1
SmartFusion2 Advanced Development Kit DS0, DS1, DS2, DS3, DS4, DS5, DS6, and DS7
SmartFusion2 Starter Kit DS4, DS3

8. Launch the debug session:


By selecting Debug Configurations from the Run menu of SoftConsole.
or
By selecting the Debug Configurations using the Debug button as shown in the following figure.
Figure 53 Debug Configurations Option

9. Click the Registers tab to view the values of the Cortex-M3 processor internal registers, as shown in
the following figure.

TU0546 Tutorial Revision 6.0 28


SoftConsole v4.0 and Libero SoC v11.7

Figure 54 Values of Cortex-M3 Internal Registers

10. Click the Variables tab to view the values of variables in the source code, as shown in the following
figure.
Figure 55 Values of the Variables in the Source Code

11. In the Debug window, click Window > Show View > Disassembly to display the assembly level
instructions. The Disassembly window with assembly instructions is displayed on the
right-side of the Debug perspective window, as shown the following figure.
Figure 56 Assembly Level Instructions

12. Source code can be single-stepped by choosing Run > Step Into or Run > Step Over. Observe the
changes in the source code window and disassembly view. Performing a Step Over provides an
option for stepping over functions. The entire function is run but there is no need to single-step
through each instruction contained in the function.
13. Click Instruction Stepping ( ) and perform Step Into operations. Observe that Step Into
executes a single line of assembly code.
14. Click Instruction Stepping to exit the instruction stepping mode. Single-step through the application
and observe the instruction sequence in the source code window of the Debug perspective, and the
values of the variables and registers.
15. Add breakpoints in the application to force the code to halt, single-step, and observe the instruction
sequence.

TU0546 Tutorial Revision 6.0 29


SoftConsole v4.0 and Libero SoC v11.7

16. When debug process is finished, terminate execution of the code by choosing Run > Terminate.
17. Close Debug Perspective by selecting Close Perspective from the Window menu.
18. Close SoftConsole using File > Exit.
19. Close the HyperTerminal using File > Exit.
Note: By default SoftConsole debugs using the first FlashPro5 programmer that it detects. If there is no
FlashPro5 connected then it will use the first FlashPro3/4 that it detects

2.8 Conclusion
This tutorial provides steps to create a Libero SoC design using System Builder. It describes the
procedure to build, debug, and run a SoftConsole application. It also provides a simple design to blink
LEDs.

TU0546 Tutorial Revision 6.0 30


Appendix: Board Setup for SmartFusion2 Security Evaluation Kit

3 Appendix: Board Setup for SmartFusion2


Security Evaluation Kit

The following figure shows the board setup for running the tutorial on the SmartFusion2 Security
Evaluation kit board.
Figure 57 SmartFusion2 Security Evaluation Kit Setup

1. Connect the jumpers on the SmartFusion2 Security Evaluation kit board as listed in the following
table. For more information on jumper locations, see Figure 58, page 32 for SmartFusion2 Security
Evaluation kit board jumper locations.
CAUTION: While making the jumper connections, the SW7 power supply switch on the board must be in
OFF position.

Table 6 SmartFusion2 Security Evaluation Kit Jumper Settings

Jumper Pin (From) Pin (To) Comments


J22, J23, J8, and J3 1 2 These are the default jumper settings of the
SmartFusion2 Security Evaluation Kit board.
Ensure that these jumpers are set accordingly.

2. Connect the FlashPro4 or FlashPro5 programmer to the J5 connector of the SmartFusion2 Security
Evaluation kit.
Note: J5 - FlashPro connector is normally used for FlashPro programming of the FPGA and SoftConsole
debugging.

TU0546 Tutorial Revision 6.0 31


Appendix: Board Setup for SmartFusion2 Security Evaluation Kit

Note: J18 - FTDI programmer interface, used to program the external serial peripheral interface (SPI) flash
cannot be used for SoftConsole debugging.
Note: If both J5 and J18 are connected to the host computer on which SoftConsole is running then SoftConsole
must be configured to use J5 for debugging.
3. Connect the power supply to the J6 connector.
4. Switch ON the SW7 power supply switch.
The following figure shows the jumper locations on the SmartFusion2 Security Evaluation kit board.
Figure 58 SmartFusion2 Security Evaluation Kit Board Jumper Locations

1
U13
5V

D8
C7
C10 SF2-GPIO
G
3.3V

50 G 40 30 20
J1
60 G G G G G G G G 10 G
3 TC2 TC1 20 15 10 5
GND

GND
U2 J2
12V

TC3

D7 D6 D5 D4 D3 D2 C7 C6 C5 C4 C3 C2 B7 B6 B5 A7 A6 A5 A4 FTDI-GPIO GND
TC5 TP1
RMT TC4 TP2 U6
TP3 10 20
U4 2 2

L2
J3

U7

H5
H6
U8

J6
H7
G7

E1
F3
F4
SWT 1

RVI/IAR
12V I/P 2 J6 1 L1
2 3
D9 TP4
GND J5
SW7 L3 J4
1 9 1 19
TC10

L19 L PROG Header


1GMBPS LINK
TC6
A TC9

TC7 TC8 J7 LED2 1 J9 20

K21 L18
4 RMT B1 A1 2

TXD2P
2

Trace DBG
3 1 JTAG_SEL DEVRST
ETH PHY-SGMII ON 20
L3 U9 3 SW6
4 H
1

J11 100MBPS LINK K20 J8 B A

1
A

J10
J12 LPDDR 1 19
U10
SW5 M2GL_M2S-EVAL-KIT U5 1H1
I2C1_SDA
J13
DVP-102-000402-001 4

I2C1_SCL

TXD2N
1 U1
4 2 4 2
DPR1
A1 1
Rev D

K16
A

J18
Y2 SW2
17 J14 I2C0_SCL

J15
3 1 3 1 13
1

Y1 SW4 16
U14 L2
U12

L5 I2C0_SDA
J18 U11 SERDES_REFCLK1P TP5

RXD2P
Y3 GND
X1
CR1

1 U15 SPI
CR2 GND

J16
5 U16
CUR_VDDA_PLL

J17 U18 A1 TP18 TP19


TP6
SERDES_REFCLK1N

FTDI 1P8V

TC19
TC18

RXD2N
TP8 1 Active Y5 1P8V_CUR_SENSE
Y4 C79
P1

CLK_EN XTAL 1P2V_CUR_SENSE


1 CR3 U20 TP9 TP16 TP11

J20
U19 J23 HZ CUR_PLL_L01
CUR_PLL_L23
CR4

1 OSC SW3 GND


J21
2P5V_LDO 2P5V_LDO 1P2V TP7
5 4 2 GND 4
J22

SERDES_REFCLK1 TP10 U21 TP17 2


J24 L6 GND
1 SMA U22 TP15
1 1 J30

1
U25 J27 A
USB 3 1 U23 3 1 PROBE A
L7 GND
SW1 L20 C103
J25 J26 PROBE B
U24 J28 TP14

1
U26 J29
CON1 L0
B1 B11 B12 B18

Note: Jumpers highlighted in red are set by default.


Note: The locations of the jumpers in the preceding figure are searchable.

TU0546 Tutorial Revision 6.0 32


Appendix: Board Setup for SmartFusion2 Advanced Development Kit

4 Appendix: Board Setup for SmartFusion2


Advanced Development Kit

The following figure shows the board setup for running the demo on the SmartFusion2 Advanced
Development kit board.
Figure 59 SmartFusion2 Advanced Development Kit Setup

1. Connect the jumpers on the SmartFusion2 Advanced Development kit board as listed in the
following table. For more information on jumper locations, see Figure 60, page 34 of SmartFusion2
Advanced Development kit board Jumper Locations.
CAUTION: While making the jumper connections, the SW7 power supply switch on the board must be in
OFF position.

Table 7 SmartFusion2 Advanced Development Kit Jumper Settings

Jumper Pin (from) Pin (to) Comments


J116, J353, J354, and J54 1 2 These are the default jumper settings of the
SmartFusion2 advanced development kit board.
J123 2 3
Ensure that these jumpers are set accordingly.
J124, J121, and J32 2 3 JTAG programming via FTDI

2. Connect the FlashPro4 or FlashPro5 programmer to the J37 connector of the SmartFusion2
Advanced Development kit.
3. Connect the power supply to the J42 connector.

TU0546 Tutorial Revision 6.0 33


Appendix: Board Setup for SmartFusion2 Advanced Development Kit

4. Switch ON the SW7 power supply switch.


The following figure shows the jumper locations on the SmartFusion2 Advanced Development kit board.
Figure 60 SmartFusion2 Advanced Development Kit Board Jumper Locations

K1 J350 R1216 R1217 U58 ON SW7 ON J42

J352 K40
J34 R301 12V/5A
C628
A

TRST_L TMS TDO TDI GND TCK DS28


C595 R243

R199
R198
R197

R313
R196
R194
R193
R192
A1
U18

R257 4 TP12
LED9 R986 3P3V_LDO GND
RST R985 R984 R1519 TP32 2 12V
R295 C926

R1518
C592 R983 R353 TP30 5 TP16

R974
R973
R160
3P3V_LDO GND

R977
B1 DS16
C357

SW6 RST B U162


A1 3 1 12V
R267 J351
C358

TRST_L
X1

R978
DS27

1 CR4 J54 D9 1

R270
R975
R976
Y6 6

3P3V_LDO
3P3V_VPP
C1575
C1574
C1573
C1572
C1566
R178
U19

TDI
5 CR3 TDO

TCK
GND

TMS
C692

RMT
J11 C691 J116
TP11 C40 H40
R163

R177 R343 SWT


C351 U17 L G23 H 5P0V
U16 L3

R174
R175
R176

R5484 R5483 R333 R334 H L


C1579 J8
R291
R290
J33 8 A A1

A40
M2S150-ADV-DEV-KIT Rev-B
R191
R190
R189
R188
R184
R183
R182
R181
R179
D10 J30 VCCIO_LPC_ VADJ

F25 G25 J23 J22 G27 H27 F23


SERDES3_TXN_1 SERDES3_TXP_1
D15 H L 7 VCCIO_HPC_VADJ SW1
D14 U28 C214 S2_PLL_L01 3P3V PLL_S1
DVP-101-000408-001 SERDES_3_REFCLK0_P J9
6 B B1
J12 1P0V_PHY DS17
L4
TP23 1P8V C667

TP31 C148 J7

L
2P5V R64 C183 5 5P0V

R253
C593
1P8V R292 FP4_HEADER
R50

U24
C666

R328 GND

R159
R60 H
R164
R167
R168
R169
R170
R166
R165
R171
R329 R172
C670 R173

R63 C181 J5 4 J37


C668 TP14

R326 R46 TP33 J10 L OP75V 2 10


S1_PLL_L01

S2_PLL_L23
3P3V

1P0V_PHY R58 C144 R59 2P5V SERDES3_RXP_1 SERDES3_RXN_1 3


3P3V
D13 R327
TP24

R158
1P5V
J14

U62 C146 C113


R325

GND R331 K R54 2 0


U36 6 C303 C623 C100 S1_PLL_L23 C129
PLL6 www.microsemi.com R55 VDD
J4 1
J20

R216 C102
R41 R42 R47 H L 1
PLL_S0 U7
R99 R100

S0_PLL_L23
C378

J6 SW5
C98

R48
R119 R103

C215
TP15
C135
2P5V_LDO H1
C211
C213
C136
C138
C137

C141

C216
C210
C212

C140
C142

C178
C139

C172

C179
C173
C175

C176
C174
C177

C91
C94
C93
C96
C95
S0_PLL_L01

C92
GND J22 Y11

C220
2P5V R69 2P5V J13 Y12 R369 1 9

R314 R316
C255

SDA SCL
R116
R117
R118
R101
R102

C103

C236
C235
C199
C159
C116
C465
R79

TC21
TC20
TC19 TC18
TC16 TC17

C209

C109
C150

R318
R40 S3_PLL_L23 3P3V SERDES_3_REFCLK0_N 2 20
R98

R364
R362
C294 C362

J36 RVI_HEADER
R97 U8 C296 N R70
C89 PLL5 J60
C305 C90 C517

C371 R211
N

PLL_S3
C304 R104 Y4 C360

C476
3P3V C302 R92
R105 C630 C28 C26 A27 F26 D26
C484

DS6 DS5 DS4 DS3 DS2 DS1 DS0

C610
C313 C361
R218 C293 R94
R91

C163
C118
C233
C197
C161
J19 PLL4 DS7
C382 PLL7

C295 R93 C359 E26

Y3
J21 6 1 19
C297 R95

C153
C156

TRACE_ETM_HEADER
C554

R378
R113 R114

J32 JTAG_SEL

C119
R96 20
R375 C562 R161

B27
C314 R121 A1

C27
C463 A

R1214
R120 R150 U13 H H H H

R1212 R1208
R1210 R1207
C282 R1211 C422

R222
R220

R224
R115
J18 C308 R110
C283

J15 C518 SW2 2


C471

HSDACN MDC R109 C599 R272


C307 R108 C328

FTDI
C519
C468
Y2 C608 B L L L 3
MDIO

HSDACP C330 R106 B1 1 19

R149
R1213
R1215
C306 R107

R1209
J17

R372
R303

A1 J125 J121 J124 L R162 J38

C604
A
C292

J16
C530

R209 R330 C596


C331

R111 R81 R74 R72 R260


R78
R75

1 TRSTN Y20
C624R76 R73 R71 SW3
R156
R293

R213 PLLMDDR
C257
C246

TMS R286 PLL1

C332
U37 U4

C460
C455
TCK 3P3V L L B
C674
C673

R266

R361 B1
C626
C625
C671

C605 TP2 TP1


SPK_R SPK_L R112
C528

A
C526

A1

C600
R396

TDO
C164

USB_5V

C636

DS29
C672

R354
U35 U34 U23

C637

3P3V
C467
R366 U25 R255 TP4
DS26 GND TDI VCCIO_LPC_ R363 1 SW4 VDD_REG GND 3P3V
VCCIO_HPC_VADJ J118 VDD_REG_CS TP20
J119 TP21
C324

P1 C325 B1 R155 TP7


C394
C521

C701 VADJ TP29 H H

C641
PLLFDDR
C645
C646
C644
C642
C700 TP28 PLL0 U1 GND B C638 GND TP3

R306
R305
U49 C606 R130 PLL2 R217 1P5V_REG J28
C1
C699

3P3V U26 H1
R210

R298 PRA
CR2

TP9
R141
R143
R137
R139

R125
A1
R289

1 1.2V L5 C374 3P3V A1 A1 TP10 TP22 D7

R283
U12 U10

R282
A1 A1 J29
PLL3

3.3V R304
5 CR1 C702 PRB

TP35
R133 2.5V 0P75V_REG GND
R136 R131 1.8V GND
GND R278
R311
R309
C648
R294

C323 R138 1.5V U32 U27


C647
R142
R140

R279
K

R276
J123
R307
R127

R288 1.5V 1.2V


R126

L6
R310
U11
J354
C315

1.8V R332 J353


DS8 P0_LED3
DS9 P0_LED2
DS10 P0_LED0
DS11 P1_LED3
DS12 P1_LED2
DS13 P1_LED1
DS14 P1_LED0

C697
C696
J23 2.5V R351
C316

R352
R373
R374

TP26 GND R355 R281


R308
C643

U60 R356
C640
C703 D8
R840
R841

TP17R300

U59
R277
C698
R134 U9 C704 U6 U2 U3 U5 U31
TP27 VDDIO C705
R280 1.2 V CURRENT SENSE
R842

R839

CON1 R808
B11

B32
B1

Notes:
Jumpers highlighted in red are set by default.
Jumpers highlighted in green must be set manually.
The locations of the jumpers in the preceding figure are searchable.

TU0546 Tutorial Revision 6.0 34


Appendix: Board Setup for SmartFusion2 Starter Kit

5 Appendix: Board Setup for SmartFusion2


Starter Kit

The following figure shows the board setup for running the demo on the SmartFusion2 starter kit board.
Figure 61 SmartFusion2 Starter Kit Setup

1. Connect the jumpers on the SmartFusion2 Starter kit board as listed in Table 8, page 35.

Table 8 SmartFusion2 Starter Kit Jumper Settings

Jumper Pin (From) Pin (To) Comments


JP1 1 2 These are the default jumper settings of SmartFusion2
Starter kit board. Ensure that these jumpers are set
JP2 3 4
accordingly.
JP3 2 4

2. Connect the FlashPro4 or FlashPro5 programmer to the P5 connector of the SmartFusion2 Starter
kit.
3. Connect the host PC USB port to the P1 Mini USB connector on the SmartFusion2 Starter kit board
using the USB Mini-B cable. As soon as the connection to the PC is made, the on-board LED DS2
will illuminate, indicating that the board has power.

TU0546 Tutorial Revision 6.0 35

Das könnte Ihnen auch gefallen