SoftConsole v4.0 and Libero SoC v11.7 TU0546 Tutorial Contents 1 SoftConsole v4.0 and Libero SoC v11.7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Design Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2.1 Associated Project Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Design Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Step 1: Creating a Libero SoC Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4.1 Connecting Components in LED_Blink SmartDesign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Step 2: Generating the Program File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Step 3: Programming the SmartFusion2 Board Using FlashPro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Step 4: Creating Software Project using SoftConsole 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.7.1 Export Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 1.7.2 Download Firmware Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.7.3 Building Software Application using SoftConsole 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 1.7.4 Debugging the Application Project using SoftConsole 4.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 2 Appendix: Board Setup for SmartFusion2 Security Evaluation Kit . . . . . . . . . . . . . 37 3 Appendix: Board Setup for SmartFusion2 Advanced Development Kit . . . . . . . . . . 39 4 Appendix: Board Setup for SmartFusion2 Starter Kit . . . . . . . . . . . . . . . . . . . . . . . 41 5 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 6 Product Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 6.1 6.2 6.3 6.4 6.5 6.6 Customer Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Customer Technical Support Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Contacting the Customer Technical Support Center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.1 Email . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.2 My Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.5.3 Outside the U.S. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ITAR Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Revision 5 43 43 43 43 43 43 43 44 44 2 Figures Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16. Figure 17. Figure 18. Figure 19. Figure 20. Figure 21. Figure 22. Figure 23. Figure 24. Figure 25. Figure 26. Figure 27. Figure 28. Figure 29. Figure 30. Figure 31. Figure 32. Figure 33. Figure 34. Figure 35. Figure 36. Figure 37. Figure 38. Figure 39. Figure 40. Figure 41. Figure 42. Figure 43. Figure 44. Figure 45. Figure 46. Figure 47. Figure 48. Figure 49. Figure 50. Figure 51. Figure 52. Libero SoC Project Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Project Details Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Device Selection Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Device Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Design Template Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 New Project Information Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 System Builder Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 System Builder – Device Features Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 System Builder Configurator – Select Peripherals Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 MSS_GPIO Configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 System Builder Configurator – Clock Settings Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 System Builder Generated System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 LED_Blink Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Generate Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Log Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Design flow Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Manage Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 I/O Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 I/O Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Generate Bitstream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Run Programming Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Export Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Export Firmware Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Firmware Export Successful . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Firmware Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Firmware Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Generate Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Warning Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Software Tool Chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Workspace Launcher . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 SoftConsole Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Creating New C Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 C Project Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 C Project - Select Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 C Project - Cross GNU ARM Tool Chain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Project Explorer - Import . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Import Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Import - File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Project Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Project Explorer window - Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Properties for LED_Blink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Properties for LED_Blink - Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Properties for LED_Blink - General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Properties for LED_Blink - Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Project - Build All . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Problem Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Run - Debug Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Debug Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Debug Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Confirm Perspective Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Debugger Perspective Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Debug Configurations Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Revision 5 3 Figure 53. Figure 54. Figure 55. Figure 56. Figure 57. Figure 58. Figure 59. Figure 60. Values of Cortex-M3 Internal Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Values of the Variables in the Source Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Assembly Level Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 SmartFusion2 Security Evaluation Kit Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 SmartFusion2 Security Evaluation Kit Board Jumper Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 SmartFusion2 Advanced Development Kit Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 SmartFusion2 Advanced Development Kit Board Jumper Locations . . . . . . . . . . . . . . . . . . . . . . . 40 SmartFusion2 Starter Kit Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Revision 5 4 Tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Design Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 SmartFusion2 Devices Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 SmartFusion2 GPIO Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Port to Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 LED Target Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 SmartFusion2 Security Evaluation Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 SmartFusion2 Advanced Development Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 SmartFusion2 Starter Kit Jumper Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Revision 5 5 SoftConsole v4.0 and Libero SoC v11.7 1 SoftConsole v4.0 and Libero SoC v11.7 1.1 Introduction This tutorial describes how to implement an ARM® Cortex®-M3 design using Libero® System-on-Chip 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: • • • • • 1.2 Create a Libero SoC project using System Builder Generate the programming file to program the SmartFusion®2 System-on-Chip (SoC) field programmable gate array (FPGA) device Creating a SoftConsole v4.0 project Compile application code Debug and run code using SoftConsole Design Requirements Table 1 • Design Requirements Design Requirements Description Hardware Requirements SmartFusion2 Security Evaluation Kit*: • FlashPro4 or FlashPro5 programmer • 12 V adapter Rev D or later SmartFusion2 Advanced Development Kit*: • FlashPro4 or FlashPro5 programmer • 12 V adapter Rev B or later SmartFusion2 Starter Kit*: • FlashPro4 or FlashPro5 programmer • USB A to Mini-B cable SmartFusion2-484-Starter-Kit (M2S010-FGG484) 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 this table. 1.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: • • • LiberoProject Sourcefiles Readme file Figure 1 on page 7 shows the top-level structure of the design files. See the Readme.txt file provided in the design files for the complete directory structure. Revision 5 6 SoftConsole v4.0 and Libero SoC v11.7 Figure 1 • Design Files Top-Level Structure GRZQORDGBIROGHU! 6)B/('B%OLQNB6&B7XWRULDOB') 6RXUFHILOHV /LEHUR3URMHFW 5HDGPHW[W 1.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: • • • 1.4 SmartFusion2 Security Evaluation Kit SmartFusion2 Advanced Development Kit SmartFusion2 Starter Kit (M2S010-FGG484) Step 1: Creating a Libero SoC Project The following steps describe how to create a Libero SoC project: Launching Libero SoC 1. 2. Click Start > Programs > Microsemi > Libero SoC v11.7 or double-click the shortcut on desktop to open the Libero SoC v11.7 Project Manager. Create a new project by selecting New on the Start Page tab (highlighted in Figure 2) or by clicking Project > New Project from the Libero SoC menu. Figure 2 • Libero SoC Project Manager Revision 5 7 SoftConsole v4.0 and Libero SoC v11.7 3. In the Project Details window, enter the following information as shown in Figure 3. • Project Name: LED_Blink • Project Location: Select an appropriate location (for example, D:/Microsemi_prj) • Preferred HDL type: Verilog or VHDL • 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 on page 9. In the Part Filter, select the values using the drop-down lists, as shown in Table 2. • Family: SmartFusion2 Table 2 • SmartFusion2 Devices Selection Board Die Package Speed Core Voltage Range PLL Supply Voltage SmartFusion2 Security Evaluation Kit M2S090TS 484 FBGA -1 1.2 COM 3.3 SmartFusion2 Advanced Development Kit M2S150T 1152 FC -1 1.2 COM 3.3 SmartFusion2 Starter Kit M2S010 484 FBGA STD 1.2 COM 2.5 Revision 5 8 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 Figure 5. Figure 5 • Device Settings See Table 2 on page 8 for specific board values. Revision 5 9 SoftConsole v4.0 and Libero SoC v11.7 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 Figure 6. Figure 6 • Design Template Window 7. Click Finish. A New Project Information window is displayed, as shown in Figure 7 on page 11. Revision 5 10 SoftConsole v4.0 and Libero SoC v11.7 8. Click Use Enhanced Constraint Flow, as shown in Figure 7. Figure 7 • New Project Information Window A System Builder dialog box is displayed, as shown in Figure 8. A 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 Figure 8. Figure 8 • System Builder Dialog Box Revision 5 11 SoftConsole v4.0 and Libero SoC v11.7 System Builder – Device Features page is displayed, as shown in Figure 9. Figure 9 • System Builder – Device Features Page Revision 5 12 SoftConsole v4.0 and Libero SoC v11.7 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 Figure 10. 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 Table 3 Table 3 • SmartFusion2 GPIO Configuration Board Die GPIO ID Direction Package Pin Connectivity SmartFusion2 Security Evaluation Kit M2S090TS GPIO_0 to GPIO_7 Output NA FABRIC_A SmartFusion2 Advanced Development Kit M2S150T GPIO_0 to GPIO_7 Output NA FABRIC_A SmartFusion2 Starter Kit M2S010 GPIO_0 to GPIO_1 Output NA FABRIC_A Revision 5 13 SoftConsole v4.0 and Libero SoC v11.7 Figure 11 • MSS_GPIO Configurator Revision 5 14 SoftConsole v4.0 and Libero SoC v11.7 13. Click Next, the System Builder – Clocks Settings page is displayed, as shown in Figure 12. Select System Clock source as On-chip 25/50 MHz RC Oscillator. The M3_CLK is configured to 100 MHz by default. 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 Figure 13. Figure 13 • System Builder Generated System Revision 5 15 SoftConsole v4.0 and Libero SoC v11.7 1.4.1 Connecting Components in LED_Blink SmartDesign The following steps describe connecting components in LED_Blink SmartDesign: 1. 2. 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. • 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. Click File > Save. The LED_Blink design is displayed, as shown in Figure 14. 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 Figure 16. Figure 16 • Log Window Revision 5 16 SoftConsole v4.0 and Libero SoC v11.7 1.5 Step 2: Generating the Program File 1. Double-click Synthesize in the Design Flow window, as shown in Figure 17 to complete the synthesis. Figure 17 • Design Flow Window 2. Double-click Manage Constraints in the Design Flow window, as shown in Figure 18. Figure 18 • Manage Constraints 3. Click Edit with I/O Editor under I/O Attributes, as shown in Figure 19. The I/O Editor window is displayed, as shown in Figure 20 on page 18. Figure 19 • I/O Attributes Revision 5 17 SoftConsole v4.0 and Libero SoC v11.7 4. Make the pin assignments, as shown in Table 4. After the pins are assigned, the I/O Editor is displayed, as shown in Figure 20. 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 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 Revision 5 18 SoftConsole v4.0 and Libero SoC v11.7 5. 6. 7. After updating I/O editor, click Commit and Check. Close the I/O Editor. Click Generate Bitstream in Design flow window, as shown in Figure 21 to generate the programming file. Figure 21 • Generate Bitstream 1.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: • • • "Appendix: Board Setup for SmartFusion2 Security Evaluation Kit" section on page 37 "Appendix: Board Setup for SmartFusion2 Advanced Development Kit" section on page 39 "Appendix: Board Setup for SmartFusion2 Starter Kit" section on page 41. 1. To program the SmartFusion2 device, double-click Run PROGRAM Action in the Design Flow window, as shown in Figure 22. Figure 22 • Run Programming Action Revision 5 19 SoftConsole v4.0 and Libero SoC v11.7 1.7 1.7.1 Step 4: Creating Software Project using SoftConsole 4.0 Export Firmware 1. Double-click Export Firmware in Handoff design for Production in the Design Flow window, as shown in Figure 23. Figure 23 • Export Firmware Export Firmware dialog box is displayed as shown in Figure 24. 2. Select Export hardware configuration (Software IDE independent), as shown in Figure 24. 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 Figure 25. Figure 25 • Firmware Export Successful 4. Click OK. Revision 5 20 SoftConsole v4.0 and Libero SoC v11.7 1.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 at the bottom of the Firmware Catalog is displayed, as shown in Figure 26. Figure 26 • Firmware Catalog 2. Click Download them now! to download most recent drivers for peripherals. Revision 5 21 SoftConsole v4.0 and Libero SoC v11.7 3. In Firmware catalog window, right-click SmartFusion2 CMSIS Hardware Abstraction Layer and then click Generate, as shown in Figure 27. 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 Figure 29. Click Yes. Figure 29 • Warning Message Revision 5 22 SoftConsole v4.0 and Libero SoC v11.7 6. Configuring SmartFusion2_CMSIS_TOP_0 window is displayed, as shown in Figure 30. Select SoftConsole from the Software Tool Chain drop-down list and click Ok. Figure 30 • Software Tool Chain 7. 1.7.3 Repeat steps 3 to 7 to download SmartFusion2 MSS GPIO driver. Building Software Application using SoftConsole 4.0 1. 2. Click Start > Programs > Microsemi SoftConsole v4.0 > Microsemi SoftConsole v4.0 to open the SoftConsole IDE. The SoftConsole Workspace Launcher window is displayed. Browse to the location to select D:\Microsemi_prj\LED_Blink\SoftConsole, as shown in Figure 31. Figure 31 • Workspace Launcher Revision 5 23 SoftConsole v4.0 and Libero SoC v11.7 The SoftConsole workspace is displayed, as shown in Figure 32. Figure 32 • SoftConsole Window 3. Click File >New >C project as shown in Figure 33. Figure 33 • Creating New C Project Revision 5 24 SoftConsole v4.0 and Libero SoC v11.7 4. Enter Project name as LED_Blink, as shown in Figure 34. Figure 34 • C Project Window 5. Click Next, Select Configurations window is displayed, as shown in Figure 35. Figure 35 • C Project - Select Configuration 6. Do not change default settings. Click Next. Revision 5 25 SoftConsole v4.0 and Libero SoC v11.7 Cross GNU ARM Tool chain window is displayed, as shown in Figure 36. Figure 36 • C Project - Cross GNU ARM Tool Chain 7. 8. Click Finish. Right-click LED_Blink and click Import as shown in Figure 37. Figure 37 • Project Explorer - Import 9. Import window is displayed, as shown Figure 38. 10. Click File System and then click Next as shown in Figure 38. Figure 38 • Import Window Revision 5 26 SoftConsole v4.0 and Libero SoC v11.7 11. Browse to D:\Microsemi_prj\LED_Blink\firmware and check firmware check box, as shown in Figure 39. Figure 39 • Import - File System 12. Click Finish. Note: If any changes are made to the Libero SoC project, firmware need to be exported from Libero and new firmware must be imported to LED_Blink. 13. Using Windows explorer, browse to the main.c file location in the design files folder: • For SmartFusion2 Security Evaluation Kit: <download_folder>\SF2_LED_Blink_SC_Tutorial_DF\Sourcefiles\SF2_Security_Kit. • 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. 14. Copy the main.c file to the LED_Blink project in the SoftConsole workspace, as shown in Figure 40. Figure 40 • Project Explorer Revision 5 27 SoftConsole v4.0 and Libero SoC v11.7 15. Right-click LED_Blink and click Properties, as shown in Figure 41. Figure 41 • Project Explorer window - Properties Revision 5 28 SoftConsole v4.0 and Libero SoC v11.7 16. Click Settings under the C/C++ Build tab, as shown in Figure 42. Figure 42 • Properties for LED_Blink 17. Under Cross ARM C compiler, click Miscellaneous and enter --specs=cmsis.specs, in Other compiler flags text box as shown in Figure 43. Figure 43 • Properties for LED_Blink - Miscellaneous Revision 5 29 SoftConsole v4.0 and Libero SoC v11.7 18. Under Cross ARM C Linker, click General as shown in Figure 44. 19. Click add button and add following linker Script path: "${workspace_loc:/${ProjName}/CMSIS/startup_gcc/debug-in-microsemi-smartfusion2esram.ld }" After adding Linker Script, Properties for LED_Blink window is displayed, as shown in Figure 44. Figure 44 • Properties for LED_Blink - General Revision 5 30 SoftConsole v4.0 and Libero SoC v11.7 20. Under Cross ARM C Linker, click Miscellaneous. 21. Check Use newlib-nano(--specs=nano.specs) option, as shown in Figure 45. Figure 45 • Properties for LED_Blink - Miscellaneous 22. Click Ok. 23. Click Project and click Build All, as shown in Figure 46. Figure 46 • Project - Build All 24. Ensure Problems window must not have any errors, as shown in Figure 47. Figure 47 • Problem Window Revision 5 31 SoftConsole v4.0 and Libero SoC v11.7 1.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 Figure 48. The Debug Configurations window is displayed, as shown in Figure 49. Figure 48 • Run - Debug Configurations 2. Double-click GDB OpenOCD Debugging to view the configurations, as shown in Figure 49. Figure 49 • Debug Configurations Revision 5 32 SoftConsole v4.0 and Libero SoC v11.7 3. 4. 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 Select the Debugger tab in the Debug Configurations dialog box. --command "set DEVICE M2S090" specifies the target device, as shown in Figure 50. 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 Figure 50 • Debug Tab 5. Click Debug. Revision 5 33 SoftConsole v4.0 and Libero SoC v11.7 6. On the Confirm Perspective Switch window, click Yes as shown in Figure 51. Figure 51 • Confirm Perspective Switch The SoftConsole Debugger Perspective window is displayed, as shown in Figure 52. Figure 52 • Debugger Perspective Window 7. Click Run > Resume to run the application. LEDs start blinking on the SmartFusion2 target boards. Table 5 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 Revision 5 34 SoftConsole v4.0 and Libero SoC v11.7 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 Figure 53. Figure 53 • Debug Configurations Option 9. Click the Registers tab to view the values of the Cortex-M3 processor internal registers, as shown in Figure 54. 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 Figure 55. Figure 55 • Values of the Variables in the Source Code Revision 5 35 SoftConsole v4.0 and Libero SoC v11.7 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, as shown Figure 56. 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. 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. 1.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. Revision 5 36 Appendix: Board Setup for SmartFusion2 Security Evaluation Kit 2 Appendix: Board Setup for SmartFusion2 Security Evaluation Kit Figure 56 shows the board setup for running the tutorial on the SmartFusion2 Security Evaluation Kit board. Figure 56 • SmartFusion2 Security Evaluation Kit Setup 1. Connect the jumpers on the SmartFusion2 Security Evaluation Kit board as listed in Table 6. For more information on jumper locations, see Figure 57 on page 38 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, these jumpers are set accordingly. Revision 5 37 Appendix: Board Setup for SmartFusion2 Security Evaluation Kit 2. Connect the FlashPro4 or FlashPro5 programmer to the J5 connector of the SmartFusion2 Security Evaluation Kit. Connect the power supply to the J6 connector. Switch ON the SW7 power supply switch. 3. 4. Figure 57 shows the jumper locations on the SmartFusion2 Security Evaluation Kit board. D7 D6 TP2 D5 D4 D3 D2 C7 C6 C5 C4 10 GND TP1 20 2 RVI/IAR H5 H6 J6 H7 G7 F3 F4 E1 J18 TXD2P 20 1 19 U5 1H1 4 I2C1_SDA 4 2 I2C0_SCL 1 13 3 SW4 16 SERDES_REFCLK1P TP5 GND CR1 U16 CUR_VDDA_PLL 2 J23 OSC SERDES_REFCLK1 U22 SMA 1 J21 1 U25 USB XTAL SW1 L20 C103 L6 TP10 GND U21 U26 B1 CON1 L0 B11 B12 TP7 GND 4 TP11 GND SW3 2 TP15 U23 J25 J26 1P2V_CUR_SENSE TP16 1P2V TP17 2P5V_LDO J27 1 3 C79 CUR_PLL_L23 CUR_PLL_L01 2P5V_LDO TP18 TP19 1P8V 1P8V_CUR_SENSE TC18 TC19 Y5 Y4 J20 TP9 4 Active CLK_EN HZ 1 A 1 3 L7 U24 J28 1 U20 1 1 J30 PROBE A GND PROBE B TP14 1 CR4 U19 A1 U18 J22 P1 TP8 SERDES_REFCLK1N J17 TP6 RXD2N J16 U15 SPI CR2 GND 1 CR3 L2 I2C0_SDA X1 Y3 RXD2P L5 U11 J9 2 J10 A SW2 1 3 19 A1 B M2GL_M2S-EVAL-KIT DVP-102-000402-001 2 4 Rev D Y1 1 Trace DBG K21 L18 1 J8 J4 TXD2N U1 A H 9 PROG Header B1 DEVRST SW6 J15 SW5 JTAG_SEL Y2 J14 1 K20 A 1 U9 1 A1 1 L L19 RMT 1 2 3 4 U14 U12 J2 FTDI-GPIO B7 B6 B5 A7 A6 A5 A4 2 U10 17 J24 C2 G K16 L2 A TC9 TC10 TC6 L3 DPR1 5 C3 G 10 5 G U7 LED2 1 FTDI 20 10 J5 J7 1 ON 20 J13 5 G TP3 J11 100MBPS LINK J12 LPDDR 1 G L3 TC7 TC8 4 J18 30 15 G U6 J3 TP4 GND SW7 3 ETH PHY-SGMII G 40 20 G L1 3 2 D9 50 G G U8 1 SWT J6 1 12V I/P 2 TC5 TC4 RMT 60 GND GND TC3 12V U2 U4 SF2-GPIO J1 G TC2 TC1 3 I2C1_SCL C7 1GMBPS LINK 3.3V C10 D8 5V 1 U13 Figure 57 • SmartFusion2 Security Evaluation Kit Board Jumper Locations J29 B18 Notes: • • Jumpers highlighted in red are set by default. The locations of the jumpers in Figure 57 are searchable. Revision 5 38 Appendix: Board Setup for SmartFusion2 Advanced Development Kit 3 Appendix: Board Setup for SmartFusion2 Advanced Development Kit Figure 58 shows the board setup for running the demo on the SmartFusion2 Advanced Development Kit board. Figure 58 • SmartFusion2 Advanced Development Kit Setup 1. Connect the jumpers on the SmartFusion2 Advanced Development Kit board as listed in Table 7. For more information on jumper locations, see Figure 59 on page 40 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 J123 2 3 These are the default jumper settings of the SmartFusion2 advanced development Kit board. Ensure, these jumpers are set accordingly. J124, J121, and J32 2 3 JTAG programming via FTDI Revision 5 39 Appendix: Board Setup for SmartFusion2 Advanced Development Kit 2. Connect the FlashPro4 or FlashPro5 programmer to the J37 connector of the SmartFusion2 Advanced Development Kit. Connect the power supply to the J42 connector. Switch ON the SW7 power supply switch. 3. 4. Figure 59 shows the jumper locations on the SmartFusion2 Advanced Development Kit board. Figure 59 • SmartFusion2 Advanced Development Kit Board Jumper Locations B1 R313 U3 GND TRST_L TDI TMS TCK R253 J36 RVI_HEADER C604 FTDI R260 19 J38 C697 C696 GND TP20 TP4 3P3V TP3 U26 C1 H1 R283 R282 J29 PRB GND R278 U23 DS29 R354 VDD_REG R155 TP7 3P3V U34 VDD_REG_CS J28 PRA R307 R310 U25 R255 C600 SW4 B1 GND D8 1 R330 C596 L R162 C332 A1 B C638 R304 GND RMT C610 3 L L U27 R276 J123 D7 B1 A TP35 GND 1P5V_REG 20 H H J125 J121 J124 R279 H B U35 R366 J119 TP21 H TP10 TP22 U5 L B1 A1 R281 U31 R277 C698 U59 U2 R364 R318 R362 B A L 19 JTAG_SEL R161 J60 TRACE_ETM_HEADER L R158 C27 R222 B27 R224 R220 R149 L 1 C593 F25 G25 J23 J22 G27 H27 F23 H C467 C394 C521 U6 R361 R363 J118 U24 10 2 0P75V_REG GND U32 H SW2 SW3 PLLMDDR C645 C646 C644 C641 C642 A1 R210 PLL3 A1 A1 R272 C608 H H40 20 J32 A1 A TDO C40 9 2 1 C328 3P3V U1 C28 C26 A27 F26 D26 DS6 DS5 DS4 DS3 DS2 DS1 DS0 R150 U13 R209 J116 SWT A1 SW1 B1 C630 C636 C637 PLL1 C691 TP11 R343 5P0V 8 A VCCIO_LPC_ VADJ 7 VCCIO_HPC_VADJ B 6 1P0V_PHY DS17 5P0V 5 1P8V R292 FP4_HEADER J37 4 OP75V 2 3 1P5V 0 2 VDD 1 L 1 SW5 2P5V_LDO H1 Y11 1 SCL SDA L DS7 E26 R306 R305 U4 R266 C528 C526 3P3V R314 R316 C476 C161 C233 C197 C118 C163 R213 C562 C460 C455 Y20 K CON1 R159 C109 C150 C236 C235 C199 C159 C116 C465 PLL_S3 C371 R211 C153 C156 C119 R1213 C468 C519 R1214 C463 R1211 C422 C518 C599 R1215 R1209 R1212 R1208 R1210 R1207 R378 Y3 C517 PLL4 TP9 C136 C135 C138 C137 C140 C139 C142 C141 C173 C172 C175 C174 C177 C176 C179 C178 C216 C215 C92 C91 C94 C93 C96 C95 C220 C257 C246 A1 L H R47 R48 Y12 R369 R308 C640 C703 C704 SERDES_3_REFCLK0_N C643 J354 R352 R355 R356 PLL0 J10 J351 TP17R300 R280 1.2 V CURRENT SENSE R808 B32 R294 U60 1.5V 1.8V R332 J353 2.5V R351 TP26 GND 3P3V_LDO 3P3V_VPP A40 C484 C554 C382 PLL7 R78 R75 C626 C625 C671 3.3V 2.5V 1.8V 1.5V 1.2V VDDIO C705 3P3V R70 J13 C359 R375 PLL2 R217 H U7 R69 2P5V C361 C374 A1 1.2V L5 L6 R54 R55 PLL5 PLLFDDR C113 C129 J6 Y4 C360 3P3V R288 R373 R374 C316 R134 U9 TP27 R303 J17 TP29 R840 R841 R842 U11 R74 R72 R73 R71 L H J4 VCCIO_HPC_VADJ C699 R289 CR2 R141 R143 R137 R139 R138 J23 TDI VCCIO_LPC_ VADJ TP28 C702 R133 R131 R127 R126 C315 5 CR1 R136 C323 U49 C606 U12 U10 R140 R142 R298 C701 C700 R130 R125 C672 R839 C325 U37 R81 C624R76 R286 SERDES3_RXN_1 PLL_S0 S3_PLL_L23 C362 DS11 P1_LED3 DS12 P1_LED2 DS13 P1_LED1 DS14 P1_LED0 DS8 P0_LED3 DS9 P0_LED2 DS10 P0_LED0 C324 GND P1 1 TDO C674 C673 TP2 TP1 SPK_R SPK_L R112 R396 DS26 C164 TCK C605 R293 TMS MDIO C283 C330 R372 1 TRSTN R156 J16 J15 Y2 B11 R111 C295 R93 C297 R95 R96 C314 R121 R120 R115 J18 C308 R110 MDC R109 C307 R108 R106 C306 R107 C282 C292 C331 R113 R114 6 HSDACN HSDACP USB_5V R191 R190 R189 R188 R184 R183 R182 R181 R179 R105 3P3V C302 R92 R218 C293 R91 R94 www.microsemi.com L G23 H H J8 SERDES_3_REFCLK0_P J9 J12 SERDES3_RXP_1 C102 C692 J11 12V R267 D9 1 6 J5 S2_PLL_L23 C471 N J19 J21 R42 S0_PLL_L23 S0_PLL_L01 2P5V C103 C209 C294 C296 N C89 C90 C305 C304 R104 C313 GND SERDES3_TXP_1 SERDES3_TXN_1 J7 C183 S1_PLL_L23 C100 R40 U8 J30 C530 C255 R79 R98 R97 TP16 DS16 1 3 C146 R41 R116 R117 R118 R119 R103 R101 R102 C378 R99 R100 R216 TP15 GND J22 M2S150-ADV-DEV-KIT Rev-B DVP-101-000408-001 S2_PLL_L01 3P3V PLL_S1 TP31 C148 2P5V R64 GND R63 C181 R60 TP33 2P5V R58 C144 R59 PLL6 J20 C303 C623 U62 R331 K 5 TP30 J54 3P3V 1P0V_PHY TP12 2 12V A1 TC21 TC20 TC19 TC18 TC16 TC17 GND TP32 3P3V R50 R46 J42 12V/5A 4 3P3V_LDO C211 C210 C213 C212 C214 U28 ON R301 R353 S1_PLL_L01 D15 R290 R291 R5484 R5483 R333 R334 C1579 D10 ON SW7 U58 3P3V_LDO GND R270 R978 R975 R976 C1575 C1574 C1573 C1572 Y6 J14 R325 U36 6 C666 C668 TP14 R164 R167 R168 R169 R170 R166 R165 R171 R329 R172 C670 R173 R328 R326 TP23 1P8V C667 L4 D14 D13 R327 R178 R177 U17 C1566 C351 TP24 J33 R174 R175 R176 U16 L3 1 CR4 5 CR3 U162 SW6 RST B R1217 C628 DS28 C648 R311 R309 C647 R160 R1518 LED9 RST C592 B1 R1216 J350 K1 R977 R973 R974 R199 R198 R197 R196 R194 R193 R192 DS27 C595 R243 U19 X1 C358 U18 R163 C357 TRST_L TMS TDO TDI GND TCK R257 R986 R985 R984 R1519 R295 C926 R983 C98 A A1 J352 K40 J34 Notes: • • • Jumpers highlighted in red are set by default. Jumpers highlighted in green must be set manually. The locations of the jumpers in Figure 59 are searchable. Revision 5 40 Appendix: Board Setup for SmartFusion2 Starter Kit 4 Appendix: Board Setup for SmartFusion2 Starter Kit Figure 60 shows the board setup for running the demo on the SmartFusion2 starter Kit board. Figure 60 • SmartFusion2 Starter Kit Setup 1. Connect the jumpers on the SmartFusion2 Starter Kit board as listed in Table 8. Table 8 • SmartFusion2 Starter Kit Jumper Settings Jumper Pin (From) Pin (To) Comments JP1 1 2 JP2 3 4 These are the default jumper settings of SmartFusion2 Starter Kit board. Ensure, these jumpers are set accordingly. JP3 2 4 2. 3. Connect the FlashPro4 or FlashPro5 programmer to the P5 connector of the SmartFusion2 Starter Kit. 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. Revision 5 41 Revision History 5 Revision History The following table shows important changes made in this document for each revision. Revision Changes Page Revision 5 (February 2016) Updated the document for Libero SoC v11.7 software release (SAR 76609). N/A Revision 4 (December 2015) Updated the document for Libero SoC v11.6 and SoftConsole v4.0 software release N/A (SAR 72814) Revision 3 (March 2015) Updated the document for Libero SoC v11.5 software release (SAR 64190). N/A Revision 2 (October 2014) Updated the document for Libero SoC v11.4 software release (SAR 61627). N/A Revision 1 (April 2014) Initial release. N/A Revision 5 42 Product Support 6 Product Support Microsemi SoC Products Group backs its products with various support services, including Customer Service, Customer Technical Support Center, a website, electronic mail, and worldwide sales offices. This appendix contains information about contacting Microsemi SoC Products Group and using these support services. 6.1 Customer Service Contact Customer Service for non-technical product support, such as product pricing, product upgrades, update information, order status, and authorization. From North America, call 800.262.1060 From the rest of the world, call 650.318.4460 Fax, from anywhere in the world, 408.643.6913 6.2 Customer Technical Support Center Microsemi SoC Products Group staffs its Customer Technical Support Center with highly skilled engineers who can help answer your hardware, software, and design questions about Microsemi SoC Products. The Customer Technical Support Center spends a great deal of time creating application notes, answers to common design cycle questions, documentation of known issues, and various FAQs. So, before you contact us, please visit our online resources. It is very likely we have already answered your questions. 6.3 Technical Support For Microsemi SoC Products Support, visit http://www.microsemi.com/products/fpga-soc/design-support/fpga-soc-support. 6.4 Website You can browse a variety of technical and non-technical information on the Microsemi SoC Products Group home page, at http://www.microsemi.com/products/fpga-soc/fpga-and-soc. 6.5 Contacting the Customer Technical Support Center Highly skilled engineers staff the Technical Support Center. The Technical Support Center can be contacted by email or through the Microsemi SoC Products Group website. 6.5.1 Email You can communicate your technical questions to our email address and receive answers back by email, fax, or phone. Also, if you have design problems, you can email your design files to receive assistance. We constantly monitor the email account throughout the day. When sending your request to us, please be sure to include your full name, company name, and your contact information for efficient processing of your request. The technical support email address is [email protected]. 6.5.2 My Cases Microsemi SoC Products Group customers may submit and track technical cases online by going to My Cases. Revision 5 43 Product Support 6.5.3 Outside the U.S. Customers needing assistance outside the US time zones can either contact technical support via email ([email protected]) or contact a local sales office. Visit About Us for sales office listings and corporate contacts. 6.6 ITAR Technical Support For technical support on RH and RT FPGAs that are regulated by International Traffic in Arms Regulations (ITAR), contact us via [email protected]. Alternatively, within My Cases, select Yes in the ITAR drop-down list. For a complete list of ITAR-regulated Microsemi FPGAs, visit the ITAR web page. Revision 5 44 Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductor and system solutions for communications, defense & security, aerospace and industrial markets. Products include high-performance and radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs and ASICs; power management products; timing and synchronization devices and precise time solutions, setting the world's standard for time; voice processing devices; RF solutions; discrete components; Enterprise Storage and Communication solutions, security technologies and scalable anti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and midspans; as well as custom design capabilities and services. Microsemi is headquartered in Aliso Viejo, Calif, and has approximately 4,800 employees globally. Learn more at www.microsemi.com. Microsemi Corporate Headquarters One Enterprise, Aliso Viejo, CA 92656 USA Within the USA: +1 (800) 713-4113 Outside the USA: +1 (949) 380-6100 Sales: +1 (949) 380-6136 Fax: +1 (949) 215-4996 E-mail: [email protected] © 2016 Microsemi Corporation. All rights reserved. Microsemi and the Microsemi logo are trademarks of Microsemi Corporation. All other trademarks and service marks are the property of their respective owners. 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 rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer's responsibility to independently determine suitability of any products and to test and verify the same. The information provided by Microsemi hereunder is provided “as is, where is” and with all faults, and the entire risk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such information itself or anything described by such information. Information provided in this 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. 50200546-5/02.16