21.3.36 export_firmware

Description

This Tcl command exports design firmware configuration data, which consists of:
  • Component configuration for MSS/HPMS, FDDR and SERDES blocks instantiating your design.
  • Compatible firmware drivers for your peripherals

It also creates a workspace and project specific to the IDE tool of your choice (SoftConsole, Keil or IAR).

To open your exported firmware projects, you must invoke the third-party development tool (SoftConsole, Keil or IAR) outside Libero SoC.

If you make any changes to your design, you must re-export firmware.

export_firmware -export_dir {absolute or relative path} \
                [-create_project {0|1}] \
                [-software_ide {SoftConsole | Keil | IAR EWARM}]

Arguments

ParameterTypeDescription
export_dirstringSpecifies absolute or relative path and name of folder for the exported firmware. Default exported firmware created<project_name>/firmware direcotry.
create_projectbooleanGenerates the workspace and project for the specified IDE tool. Default is 0. Valid values are: TRUE, 1, true, FALSE, 0 or false.
software_idestringSpecifies one of three IDE tool name: SoftConsole | IAR EWARM | Keil.

If you use -create_project parameter and -software_ide paramter at the same time, Libero exports the workspace and project for that Software IDE tool to the export_path {SoftConsole|Keil|IAR} folder. Default is IAR EWARM.

Error Codes

Error CodeDescription
NoneRequired parameter 'export_dir' is missing.
NoneParameter 'export_dir' has illegal value.

None

Parameter 'param_name' is not defined. Valid command formatting is 'export_firmware -export_dir "Export directory" [-create_project "TRUE | FALSE"] [-software_ide "Software IDE"] ' .

Supported Families

Supported Families
PolarFire®
RTG4
SmartFusion® 2
IGLOO® 2

Example

The following command export design firmware configuration data, generates the workspace and project for the SoftConsole IDE tool.

export_firmware \ 
-export_dir {D:\Designs\software_drivers} \
-create_project {1} \ 
-software_ide {SoftConsole}