Introductory Programming Tutorials. MICROCHIP FlashPro4
Advertisement
Advertisement
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Single STAPL/PDB File Basic Tutorial
Introductory Programming Tutorials
Single STAPL/PDB File Basic Tutorial
This section provides step-by-step instructions to familiarize you with the basic features of the FlashPro software, specifically how to program a device. For more detailed step-by-step instructions and help with advanced features of the software, please see specific topics in the online help.
Note: This tutorial assumes that you have already installed the latest version of FlashPro software and have started the program.
First, create a new project and name it Tutorial. If FlashPro is launched through the Libero SoC, a new project will be created automatically and a PDB or FDB file loaded, if available.
To Create a Project:
1. Click the New Project button in FlashPro.
2. In the New Project dialog box, type Tutorial in the Project Name field.
Figure 15 · New Project Dialog Box
3. If necessary, change the default location of your project in the Project Location field.
4. Select the Single device Programming mode
5. Click OK. The FlashPro GUI displays (see figure below). The Programmer List Window updates with your programmer information.
FlashPro User's Guide 19
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 16 · FlashPro Main Window
Loading and Configuring a Programming File
Once you have created your project and connected your programmer, you are ready to load your PDB or
STAPL file.
To load a Programming file:
1. Click the Configure device button. The Single Device Configuration window displays in FlashPro .
2. Click the Browse button to find your Programming file.
3. From the Load Programming File dialog box, select your Programming file and click Open.
The Single Device Configuration Window updates to list your Programming file information and the actions available with your Programming file in the Action list box (see figure below). Program is the default action displayed in the Action list box.
Note: Microsemi recommends using the default settings.
20
Figure 17 · Single Device Configuration Window
This tutorial gives instructions on how to program a device. For an explanation on the other actions
available, see Programming File Actions .
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Single STAPL/PDB File Basic Tutorial
Programming a Device
Now that you have loaded your PDB file, programming a device is the next step.
To program a device:
1. From the Action list, select Program (see figure below).
Figure 18 · Selecting Program from the Action List box
2. Click the Procedures button (see figure below).
Figure 19 · Procedures Button
The Select Action And Procedures dialog box appears, showing the procedures for the Programming action (see figure below). Microsemi recommends using the default settings.
FlashPro User's Guide 21
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
22
Figure 20 · Select Action and Procedures Dialog Box
3. Click the Restore Default Procedures button.
4. In FlashPro click the Program button to program your device.
The Programmer List Window updates the Programmer Status column with Run Passed indicating that you have successfully programmed the device (see figure below).
Note: The status indicator updates during programming to show the programming progress, then it will change to a pass or fail result when the operation is complete.
Figure 21 · Successfully Programmed Device
5. View the Log window and take note of the details about your programmed device.
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Single STAPL/PDB File Basic Tutorial
Single Microsemi Device with Serialization Tutorial
This tutorial provides step-by-step instructions on how to program a single Microsemi Device with
Serialization. Before you begin this tutorial, make sure you have already installed the FlashPro software and that you are familiar with the basic features of using the FlashPro software.
First, create the file generator using FROM for device serialization. You must have access to the Libero IDE v8.0 or later software to complete this step.
To Configure the FROM data for serialization:
1. Generate FROM via the Catalog.
2. From the Properties section in the FlashROM Settings dialog box, select Auto Inc or Read From
File region. For the Auto Inc region, specify the step value. You will not be able to modify this value in the FlashPoint software.
3. Complete the normal design flow and finish place and route.
4. Select Program FlashROM .
5. Click Browse to find the UFC file.
6. Check the FPGA Array box and click Next. The FlashROM Settings window appears (as shown in the figure below).
Figure 22 · FlashROM Settings- Step 2 of 2
7. Select the FROM page you want to program and data value for the configured regions.
Note: The generated STAPL file contains only the data that targets the selected FROM page.
8. Modify properties for the serialization by specifying the Start and Max values. For the Auto Inc region, specify the Start and Max values. For the Read From File region, select the file name of the custom serialization file.
9. Select the FlashROM programming file type you want to generate from the two options below:
• Choose single STAPL file for all devices: generates one programming file with all
FROM values.
FlashPro User's Guide 23
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
• Choose one STAPL file per device: generates a separate programming file for each
FROM value.
10. Enter the number of devices you want to program and generate the required programming file.
11. Click the Finish button.
You have completed the steps to enable device serialization. Now you are ready to program a device using
Device Serialization in FlashPro.
To program a device using device serialization:
1. Click the New Project button in the FlashPro.
2. In the New Project dialog box, type Tutorial in the Project Name field.
3. Check the Single STAPL file option from the Programming Mode area.
4. If necessary, change the default location of your project in the Project Location field.
5. Click OK. The FlashPro GUI appears (see figure below).
24
Figure 23 · FlashPro Main GUI
The Programmer List Window updates with your programmer information.
6. Click the Configure STAPL File button to load the STAPL file. The Single STAPL Configuration
Window appears in the FlashPro GUI.
7. Click the Browse button to find your STAPL file.
8. From the Load STAPL File dialog box, find your STAPL file and click Open. The Single STAPL
Configuration Window updates to list your STAPL file information and the actions available with your
STAPL file in the Action list box (see figure below).
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Single STAPL/PDB File Basic Tutorial
Figure 24 · Single STAPL Configuration Window with STAPL File Uploaded
9. From the Single Device Configuration Window in FlashPro, check the Serialization box and click the Select Serialization Indexes button.
The Serial Settings dialog box appears (see figure below).
Figure 25 · Serial Settings Dialog Box
10. From the Serial Settings dialog box, click All to select all the serial data.
11. Click OK. The Serialization Indexes text box updates (see figure below).
FlashPro User's Guide 25
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 26 · Single STAPL File Configuration Window- Serialization Indexes Update
12. Click the Program button to program your device using serialization.
Chain Programming Tutorial
This tutorial demonstrates how to directly program an APA300 device that is part of a heterogeneous JTAG chain. The example in this tutorial uses one APA300 device and three non-Microsemi devices configured as shown in the figure below.
Note: This tutorial is performed in Advanced Mode. You can change your display mode to Advanced Mode from
Figure 27 · APA Device Tutorial Example
First, create a new project.
To create a new project:
1. Click the New Project button in FlashPro.
2. In the New Project dialog box, type Tutorial in the Project Name field.
3. Select the Chain option in the Programming Mode.
26 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Chain Programming Tutorial
Figure 28 · New Project Dialog Box
4. If necessary, change the default location of your project in the Project Location field.
5. Click OK. The FlashPro GUI appears (see figure below).
Figure 29 · FlashPro Main GUI
Note: The Programmer List Window updates with your programmer information.
6. From the Menu bar, click Programmers > Scan Chain (or select the programmer in the Programmer
List Window, right-click and choose Scan Chain).
Scan Chain shows how the devices are ordered in the chain in the Log window (see figure below). In this example, APA300 is the first device and will be programmed first in the chain since it is connected directly to
TDO.
FlashPro User's Guide 27
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 30 · Log Window Scan Chain Order
7. From the Chain Configuration window, click either ;
or
buttons to add devices to the chain. In this example, click the Add
Microsemi Device button because the APA300 is the first device in the chain.
The Add Microsemi Device dialog box displays (see figure below).
Figure 31 · Add Microsemi Device Dialog Box
8. Select the File radio button and click the Browse button to find your programming file.
9. Select the Device radio button, then choose the APA300 device from the Device drop-down.
10. In the STAPL File field, load the APA300.stp file by using the Browse button
11. In the Name field, keep APA300 as the default name.
to locate the file.
12. The APA300 device is added to the Chain Configuration Window (see figure below).
28
Figure 32 · Chain Configuration Window: Device One
13. Click the Add Non-Microsemi Device button to add the non-Microsemi device. The Add Non-
Microsemi Device dialog box appears (see figure below). You can load the BSDL file or enter the IR length and Max TCK Frequency of the device. In this tutorial, you will enter the IR length and Max TCK frequency for this device.
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Chain Programming Tutorial
Figure 33 · Add Non-Microsemi Device Window
14. For this device, enter 8 in the IR length field and keep the Max TCK freq default to 1MHz.
15. Name the device, "Device 2” and click OK. The second device now appears in the Chain Configuration
Window (as shown in the figure below).
Figure 34 · Chain Configuration Window: Device Two
16. Repeat step 15 for Device 3 and Device 4.
17. Check the Enable Device box for the APA300 device. After you add all the devices in the chain, the
Chain Configuration Window should look like the figure below.
Figure 35 · Chain Configuration Window: All Devices in the Chain
18. After you have added all of the devices to the chain in the correct order, click the Run button to program the chain.
19. When programming is complete, the results are listed in the Log window (see figure below).
FlashPro User's Guide 29
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 36 · Programmer List Window: Programming Complete
SmartFusion Programming Tutorial
You can program your SmartFusion device without using the Libero SoC by using an EFC or UFC file from standalone SmartDesign, or using an FDB file from standalone Designer.
To program a SmartFusion device without using the Libero SoC:
1. Start FlashPro and click New Project to create a new project. Specify your Project Name, Project
Location and Programming Mode.
2. Click Configure Device.
3. Single Mode: Click the Create button to create your new PDB programming file. The create PDB dialog box appears (as shown in the figure below).
30
Figure 37 · Create PDB Dialog Box
Chain Mode: Click Add Microsemi Device and choose a SmartFusion device from the drop-down menu.
Click the Create PDB button in the Chain Configuration Window. The Create PDB dialog box appears.
4. Specify your PDB parameters. Click OK to continue. The
FlashPoint SmartFusion Programming File
dialog box appears.
button for your FPGA Array , FlashROM
and Embedded Flash Memory files to add them to your PDB
file.
You must have a FDB file to program your FPGA Array, a UFC file to program your FlashROM, and a
EFC file to program your Embedded Flash Memory.
Click the Modify buttons if you wish to modify your FlashROM or Embedded Flash Memory files before you save your PDB file.
Specify your I/O States During Programming .
7. Click Save PDB to save your new PDB file.
If you make changes to your Security, I/O States During Programming, EFC, UFC or FDB file, click Modify in FlashPro to open and re-save your PDB with the updated files and settings.
See Reprogramming a Secured Device for information on programming a secured SmartFusion device.
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Modifying Memory Contents and Programming a Device Tutorial
Modifying Memory Contents and Programming a Device Tutorial
This tutorial provides step-by-step instructions on how to load a Program Database (PDB) file, modify the memory contents, and program the device.
Before you begin this tutorial, you should have a design with an EFMB client in it with a generated programming file for this design. You will first create a new project and title it "tutorial." If FlashPro is launched through Libero SoC, a new project will automatically be created and a PDB file will be loaded, if available.
Creating a new project
Loading and Configuring a PDB File
Once you have created your project and connected your programmer, you are ready to load your PDB file.
To load a PDB file:
1. Click the Configure Device button. The Single PDB Configuration window appears in FlashPro.
2. Click the Browse button to find your PDB file.
3. From the Load PDB File dialog box, find your PDB file and click Open.
Modify Embedded Flash Memory Block Content
Now, you are ready to modify the Embedded Flash Memory Block content.
To modify Embedded Flash Memory Block content:
1. Click the PDB Configuration button to open FlashPoint.
FlashPro User's Guide
Figure 38 · Program File Generator
B
31
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
2. Check the Program box.
3. Click the Modify button to import Embedded Flash Memory Block configuration and memory content file. The Modify Embedded Flash Memory Block dialog box appears
Figure 39 · Modify Embedded Flash Memory Block Content Dialog Box
4. Click the Import Configuration File button to import the Embedded Flash Memory Block configuration and memory content from the EFC file. This will populate the client table below. All clients that belong to this block will be selected by default.
5. Click the Import content button if you want to change the client memory content.
6. Click OK.
7. Click Finish.
Note: FlashPoint audits original configuration and memory content files and warns you if the files cannot be located or if they have been updated. These files are not required as the last updated configuration and memory content is stored in the PDB.
Figure 40 · Audit Warning
Modifying FlashROM Contents and Programming a Device Tutorial
This tutorial provides step-by-step instructions on how to load a Program Database (PDB) file, modify the memory contents, and program the device.
Before you begin this tutorial, you should have a design with an EFMB client in it with a generated programming file for this design. You will first create a new project and title it "tutorial." If FlashPro is launched through the Libero SoC Project Manager, a new project will automatically be created and a PDB file will be loaded, if available.
Creating a new project
32 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Modifying FlashROM Contents and Programming a Device Tutorial
Loading and Configuring a PDB File
Once you have created your project and connected your programmer, you are ready to load your PDB file.
To load a PDB file:
1. Click the Configure Device button. The Single Device Configuration Window displays in FlashPro
(see figure below).
Figure 41 · Single Device Configuration Window
2. Click the Browse button to find your PDB file. From the Load Programming File dialog box, find your PDB file and click Open. .
Modify FlashROM Content
Now you are ready to modify the FlashROM content.
1. Click the PDB Configuration button. This opens FlashPoint.
2. Select FlashROM under Silicon feature(s) to be programmed (see figure below).
FlashPro User's Guide
Figure 42 · FlashPoint Programming File Generator
33
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
3. Click the Browse button to select the *.ufc FlashROM configuration file by and navigating to the configuration file. This file is normally present in the SmartGen subfolder of the Libero SoC project, in a folder with the FlashROM IP block's name.
4. Click Next.
5. Select the FlashROM pages you want to program (see figure below).
Figure 43 · FlashROM Settings Dialog Box
6. Click Finish.
Programming Only Security Settings Tutorial
This tutorial provides step-by-step instructions on how to program only the security settings into a device.
No design or PDB file is needed to follow this tutorial.
First create a new project and name it tutorial. If FlashPro is launched from the Project Manager, a new project will automatically be created and a PDB file will be loaded, if available. For this tutorial you always need to create a new project.
Creating a New Project
Configuring the Security Settings
Once you have created your project and connected your programmer, you are ready to load your PDB file.
34 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Programming Only Security Settings Tutorial
To configure the security settings:
1. Click the Configure Device button. The Single Device Configuration window appears in FlashPro
(see figure below).
Figure 44 · Single Device Configuration Window
2. Click Create. This opens the Create PDB dialog box, as shown in the figure below.
Figure 45 · Create PDB Dialog Box
3. Select the desired device and package (if available) from the drop down list, and specify the filename and location. Click OK. FlashPoint opens. SmartFusion, IGLOO, ProASIC3 and Fusion family devices support securing the device with a pass key as well as encrypting programming files using an AES key. Flash devices can also be permanently locked, preventing reprogramming.
4. Check the Security Settings checkbox to secure the unsecured device.
Warning: Make a note of the security keys that you are using. Once a device is secured, it cannot be reprogrammed without those keys.
FlashPro User's Guide 35
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 46 · Security Settings Dialog Box
5. Click Finish.
Automatic Chain Construction Tutorial
This tutorial demonstrates how to automatically scan a chain of devices and construct the chain within
FlashPro. Automatic chain construction saves the effort of manually adding each device to your chain.
The software also scans the chain before constructing it, which reduces the possibilities of having errors in the chain. This feature is fully automated if your chain is composed of only Microsemi devices. If you have non-Microsemi devices in your chain, you can still use the Auto Chain Construction feature. However, you will be required to either manually add the BSDL file or enter the IR length and max TCK for each non-
Microsemi device. This tutorial goes through the flow for an Microsemi-only chain first, followed by instructions on adding Non-Microsemi devices to the database.
Note: This tutorial requires that your chain is connected to the computer you are using, via an Microsemi programmer, and that you have suitable programming files to program the devices in your chain.
To automatically scan a chain of devices and construct the chain:
1. Start a new project in FlashPro. Select Chain as the Programming Mode.
2. Click the Configure Chain button in FlashPro.
3. From the Configuration menu, choose Construct Chain Automatically; or click the Construct the
chain from a Scan Chain operation link in the Chain Configuration Window, see below.
36 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Automatic Chain Construction Tutorial
Figure 47 · Construct Chain Automatically
4. A popup appears asking you to select the programmer you would like to use from the ones attached to your computer. Choose the appropriate programmer (as shown in the figure below) and click OK.
Figure 48 · Select Programmer Popup
Automatic chain construction starts. The Log window documents the detection and verification of all devices in your chain. The devices are added to the chain in the Chain Configuration Window; see figure below for an example.
FlashPro User's Guide
Figure 49 · Scan Chain Configuration Passed
37
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
In some cases, FlashPro is not able to uniquely identify the device due to shared IDCODEs, and lists all possible devices (ex: AGL030V2/AGL030V5). Once a programming file is loaded for that device, the device field only shows one device, since the programming file will only be targeted to one device.
Adding Non-Microsemi Devices to the Chain
FlashPro recognizes non-Microsemi devices in the chain, but it does not contain any device information, such as IR length or Max TCK. The figure below lists Microsemi devices and non-Microsemi devices in the chain.
Figure 50 · Non-Microsemi Devices in a Chain
You must import the BSDL file into Microsemi's non-Microsemi device database for FlashPro to recognize your non-Microsemi device.
To import the device BSDL into the FlashPro non-Microsemi device database and run the scan chain:
1. From the Tools menu, choose Import Settings for Non-Microsemi Devices. This opens the
Import
Settings for Non-Microsemi Devices dialog box. This dialog box enables you to import and remove
BSDL files from the database and lists all the device information contained in the BSDL file.
2. Click the Import BSDL Files button and navigate to the folder that contains your BSDL files. Select the file and click OK. Once the BSDL is imported into the database, the original BSDL file is no longer audited by FlashPro. If changes are made to the original source BSDL file, it will not affect the BSDL file that has been imported into the non-Microsemi device database.
Remove BSDL files from the database by selecting the file and clicking the Remove button.
3. Once you have the appropriate BSDL files loaded to the database, you can construct the chain. To do so, from the Configuration menu, choose Construct Chain Automatically and select the appropriate programmer from the dialog box. FlashPro runs a scan chain, detects the devices in the chain, and associates them with the BSDL files in the database, as shown in the figure below.
38
Figure 51 · Non-Microsemi Devices in the Chain with Associated BSDL Files
It is possible to add multiple BSDL files to your Non-Microsemi device database that have the same
IDCODE. If the BSDL files list the same IR length but different TCK values, FlashPro automatically chooses the file with the lowest TCK value by default and no action is required. If the IR lengths are different you receive an error message asking you to resolve the conflict.
To resolve the issue, click the drop-down arrow adjacent to the device name. This opens the Non-Microsemi
Device Configuration dialog box (as shown in the figure below). From here you can choose the BSDL file that you wish to use. Browse to the BSDL file or use the Data to input the IR length and Max TCK
Frequency. Once you select your data you can enter a new name or use the default.
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content. eNVM/EFMB Client JTAG Protection Use Flow
Figure 52 · Non-Microsemi Device Configuration Dialog Box
For a tutorial on manually adding both Microsemi and non-Microsemi devices to your chain as well as
programming the chain, refer to the Chain Programming Tutorial .
See Also
Understanding the Chain Configuration Window
Import Settings for Non-Microsemi Devices
eNVM/EFMB Client JTAG Protection Use Flow
eNVM/EFMB client JTAG protection enables you to protect specific clients with a User Pass Key while leaving others unprotected.
See the eNVM Client JTAG Protection Tutorial
or EFMB Client JTAG Protection Tutorial for step by step
instructions.
FlashPro User's Guide 39
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 53 · eNVM/EFMB Client JTAG Protection Tutorial Use Flow
.
eNVM Client JTAG Protection Tutorial - SmartFusion
This tutorial provides step-by-step instructions on how to enable JTAG protection for eNVM clients. The protection can be read, write or both and it is protected with a User Pass Key (FlashLock).
The JTAG protection of eNVM clients enables you to protect specific clients with a User Pass Key while leaving others unprotected.
One example use is IP customization. This enables an IP vendor to allow limited visibility to eNVM clients for
IP customers. The IP vendor can protect specific clients and leave other clients unprotected for modification
typical use case.
Before you begin this tutorial, make sure you have already installed the FlashPro software and that you are familiar with its basic features.
JTAG READ/WRITE protection is set when you create your original eNVM in Libero SoC. You cannot change this setting in FlashPro/FlashPoint.
40 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content. eNVM Client JTAG Protection Tutorial - SmartFusion
Importing an EFC (Embedded Flash Configuration) File with Client JTAG protection in a
Previously Unsecured PDB
1. Create a client in eNVM configurator with JTAG read and write protect (as shown in the figure below).
If the MSS block is generated with an eNVM client with JTAG protection then FlashPro requires that you specify a User Pass Key prior to programming or exporting programming files.
Figure 54 · Generating the EFC File with JTAG Protection
2. Import the EFC file with JTAG protection in FlashPoint. When the EFC file is imported the Security
Settings box is checked automatically, implying that you must set the User Pass Key (as shown in the figure below).
The PDB file cannot be saved without specifying the pass key.
FlashPro User's Guide 41
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
42
Figure 55 · Importing the EFC File with JTAG Protection
3. Click Specify to open the Security Settings dialog box. Notice that Enable eNVM client JTAG protection box is checked. This indicates that reading, writing, and verifying of other eNVM pages are allowed but the reading and writing of specific eNVM clients are protected.
4. To enforce the eNVM client JTAG protection in the PDB file, enter a Pass Key or click Generate
random key (as shown in the figure below).
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content. eNVM Client JTAG Protection Tutorial - SmartFusion
Figure 56 · Setting Security
Custom Level Security Settings
If you select Custom Level security and decide to protect writing of the entire eNVM block, then the eNVM client JTAG protection Write, if enabled, will be overridden by full block protection.
If the Read protection of the eNVM block is left open, then the eNVM client JTAG protection Read will be enabled if a client has a read protection enabled.
If you choose to encrypt the entire eNVM block, then the eNVM client JTAG protection Write will be disabled if enabled, due to enforced encryption. The eNVM client JTAG protection Write, if enabled, will be overridden by full block protection.
To set Custom Level Security:
1. Click Custom Level to open the Custom Security Level dialog box (as shown in the figure below)
FlashPro User's Guide 43
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Figure 57 · Setting Security for Unprotected eNVM Clients
2. Click the Set Security checkbox to secure Read, Write and Verify using Flash Lock. In this mode you can unlock Read and Verify and only protect Write by FlashLock. The eNVM client JTAG read protection will be enabled.
3. Click the Encrypt checkbox to secure Write using the AES Key. Read, Verify will be secured by
FlashLock in this mode. You must enter the AES key in addition to the Pass Key before saving the
PDB file.
Setting Standard Security Levels
There are two types of standard level security: High and Medium. If either of the two is selected the eNVM client JTAG protection is overridden or disabled. You can enforce Read, Write and Verify protection of the entire eNVM block with the Pass Key and/or AES key. JTAG protection of specific pages will not be available.
Importing EFC (Embedded Flash Configuration) File with Client JTAG Protection in
Previously Secured PDB
The secure PDB file exported from FlashPro is called a secured PDB.
If you import an EFC file that has JTAG protection into a secured PDB file but does not have eNVM clients with JTAG protection enabled then the FlashPro returns an EFC file has eNVM client JTAG protection
and cannot be loaded error, as shown in the figure below.
44 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
EFMB Client JTAG Protection Tutorial - Fusion
Figure 58 · EFC File with JTAG Protection Cannot be Imported into a Secured PDB Error Message
You can import any EFC file that does not have JTAG protection.
You cannot import a new EFC with JTAG protection into a secured PDB that already has an EFC file imported with eNVM client JTAG protection. You can update the memory content by importing MEM files for the specific clients (as shown in the figure below).
Figure 59 · New EFC File Cannot Overwrite Existing eNVM Client JTAG Protection Error Message
EFMB Client JTAG Protection Tutorial - Fusion
This tutorial provides step-by-step instructions on how to enable JTAG protection for eNVM clients. The protection can be read, write or both and it is protected with a User Pass Key (FlashLock).
The JTAG protection of EFMB clients enables you to protect specific clients with a User Pass Key while leaving others unprotected.
One example use is IP customization. This enables an IP vendor to allow limited visibility to EFMB clients for
IP customers. The IP vendor can protect specific clients and leave other clients unprotected for modification
typical use case.
Before you begin this tutorial, make sure you have already installed the FlashPro and/or Designer software and that you are familiar with its basic features.
JTAG READ/WRITE protection is set when you create your original EFMB in Libero SoC. You cannot change this setting in Designer/FlashPoint or FlashPro/FlashPoint.
EFMB Client JTAG Protection in Designer/FlashPoint
If the ADB file has an EFM (Embedded Flash Memory) block with page/client JTAG protection enabled, the
EFC file appears in the FlashPoint window when you click the Programming File button in Designer.
A message indicating JTAG protection is enabled appears in the Embedded Flash Memory Block (EFMB) tooltip, as shown in the figure below.
FlashPro User's Guide 45
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
46
Figure 60 · EFMB Client JTAG Protection
To set EFMB Client JTAG Protection:
1. Check the Security Settings or Programming previously secured devices checkbox and click
Next. The Security Settings dialog box opens.
2. Specify the appropriate security settings.
If the EFM block is generated with an EFMB client with JTAG protection then FlashPro requires that you specify a User Pass Key prior to programming or exporting programming files.
3. Import the EFC file with JTAG protection in the FlashPoint dialog box. When the EFC file is imported the Security Settings box is checked automatically, implying that you must set the User Pass Key (as shown in the figure below).
The PDB file cannot be saved without specifying the pass key.
FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
EFMB Client JTAG Protection Tutorial - Fusion
Figure 61 · Importing the EFC File with JTAG Protection
4. Click Next to open the Security Settings dialog box. Notice that the Enable EFMB client JTAG
protection box is checked. This indicates that reading, writing, and verifying of other EFMB pages are allowed but the reading and writing of specific EFMB clients are protected.
5. To enforce the EFMB client JTAG protection in the PDB file, enter a Pass Key or click Generate
random key (as shown in the figure below).
Figure 62 · Setting Security
Custom Level Security Settings
If you select Custom Level security and decide to protect writing of the entire EFMB, then the EFMB client
JTAG protection Write, if enabled, will be overridden by full block protection.
FlashPro User's Guide 47
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
If the Read protection of the EFMB is left open, then the EFMB client JTAG protection Read will be enabled if a client has Read protection enabled.
If you choose to encrypt the entire EFMB, then the EFMB client JTAG protection Write will be disabled due to enforced encryption. The EFMB client JTAG protection Write, if enabled, will be overridden by full block protection.
To set Custom Level Security:
1. Click Custom Level to open the Custom Security Level dialog box (as shown in the figure below)
Figure 63 · Setting Security for Unprotected eNVM Clients
2. Click the Set Security checkbox to secure Read, Write and Verify using Flash Lock. In this mode you can unlock Read and Verify and only protect Write by FlashLock. The EFMB client JTAG read protection will be enabled.
3. Click the Encrypt checkbox to secure Write using the AES Key. Read, Verify will be secured by
FlashLock in this mode. You must enter the AES Key in addition to the Pass Key before saving the
PDB file.
Setting Standard Security Levels
There are two types of standard level security: High and Medium. If either of the two is selected the EFMB client JTAG protection is overridden or disabled. You can enforce Read, Write and Verify protection of the entire EFMB with the Pass Key and/or AES key. JTAG protection of specific pages will not be available.
EFMB client JTAG Protection via FlashPro/FlashPoint
If the PDB file was created with the EFMB client and JTAG protection is enabled you can click Modify in
FlashPro to change the settings.
Fusion Calibration Backup and Recovery Tutorial
This tutorial provides step-by-step instructions on how to backup and recover default calibration data on a
Fusion device. It assumes that you have created a new project, connected your programmer, and loaded a
Fusion PDB/STAPL file created in Designer v8.4 or above.
If you would like step-by-step instructions on how to create a new project, see the Creating a New Project
section in the FlashPro Single STAPL Basic Tutorial ..
If you would like step-by-step instructions on loading a programming file, see the Loading and Configuring a
Programming File section in the FlashPro Single STAPL Basic Tutorial .
Note: This feature is only supported in STAPL and PDB programming files.
48 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Specify I/O States During Programming Tutorial
Backing Up Default Fusion Calibration Data
A backup copy of the Fusion calibration data is created once after ANY programming ACTION, except
READ_IDCODE, is executed. The copy will be stored in the spare pages of eNVM. The FlashPro Log window shows that a backup copy of the calibration data has been created (as shown in the figure below).
Figure 64 · FlashPro Log Window
Recovering Default Fusion Calibration Data
1. Load the PDB/STAPL file created in Designer v8.4 or above.
2. In the FlashPro Configuration window, click Advanced and select RECOVER_CALIB (as shown in the figure below).
Figure 65 · RECOVER_CALIB
3. Click Run to restore the original Fusion calibration data. The Log window shows the data is restored
(as shown in the figure below).
Figure 66 · Restoring Original Calibration Data
Note: The Calibration data can only be restored after a backup has been made.
Specify I/O States During Programming Tutorial
This tutorial explains how to modify the I/O states during programming within FlashPro for used and unused
I/Os. It also explains how to modify the Boundary Scan Registers (BSRs) for each I/O to allow for more detailed customization of the I/O states during programming. Finally, it shows how to save and load these settings with a file.
Note: This tutorial requires a design with a valid *.pdb file associated with it. If you launch FlashPro from a
Libero SoC project, a FlashPro project is created automatically and the PDB file loaded. Otherwise, you can
information.
FlashPro User's Guide 49
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
To modify the state of an I/O during programming:
1. Once your PDB is successfully loaded, from the Configuration menu, choose PDB Configuration.
This brings up FlashPoint . FlashPoint is the tool that allows you to modify the PDB programming file from within FlashPro.
2. In FlashPoint, click the Specify I/O States During Programming button. The Specify I/O States
During Programming dialog box appears (as shown below). This dialog box enables you to modify the
I/O states during programming for all used and unused I/Os.
Figure 67 · I/O States During Programming Window
The default view displays a grid with 4 columns: Port Name, Macro Cell, Pin Number, and I/O State
(Output Only). Port Name lists the port associated with each of theses pins, if the pin is not used in the design, the Port Name for this pin reads Unused. The Pin Number column contains a list of all the pins for the package associated with the design open in FlashPro.The Macro Cell column contains the
Microsemi macro associated with each pin, as with Port Names, if the pin is not used, the Macro Cell for this pin reads Unused. The I/O State column is the only column editable in FlashPro.
3. Select an I/O State from the drop-down menu for each I/O you want to modify.
Please refer to Specifying I/O States During Programming for information on sorting and selecting
multiple entries in the grid.
4. Click Save in the Specify I/O States During Programming window, then Finish in FlashPoint to return to FlashPro. The PDB is updated with your new settings.
Congratulations, you have successfully modified the I/O states that will be held during programming.
Modifying Boundary Scan Registers
Each I/O in your device is comprised of an Input, Output and Output Enable Boundary Scan Register (BSR) cell.
The BSR cells enable you to define I/O states during programming and control the individual states for each
Input, Output, and Output Enable register.
50 FlashPro User's Guide
NOTE: Links and cross-references in this PDF file may point to external files and generate an error when clicked. View the online help included with software to enable all linked content.
Specify I/O States During Programming Tutorial
To modify the individual Boundary Scan Registers of an I/O in your device:
1. Select the Show BSR Details checkbox in the Specify I/O States During Programming window.
This replaces the I/O State (Output Only) column with a Boundary Scan Registers column that is split into Input, Output Enable and Output.
2. Modify each of the registers for any I/O to set your custom options. See the
During Programming - I/O States and BSR Details help topic for an explanation of the individual BSR
settings.
3. (Optional) Uncheck the Show BSR Details checkbox to return to the default view.
Note: Updated I/Os with non-default settings are displayed as User-Defined BSR in the default view.
Click OK and complete programming to save your updated settings to the ADB and programming files.
Saving and Loading I/O State Settings
Click Save to File to save your changes. This enables you to save your custom I/O settings in an IOS file.
Click Load from File to load a previously saved *.ios file.
You must click OK and complete programming to save your updated settings to the ADB and programming files.
See Also
Specifying I/O States During Programming
Specifying I/O States During Programming - I/O States and BSR Details
FlashPro User's Guide 51
Download
Advertisement