21.6.20 SPM_OTP
(Ask a Question)Description
SPM_OTP is a command tool used in configure_tool to pass the
                SPM configuration parameters.
Important: At least one
                "parameter:value" must be specified. You can repeat <params> argument for
                multiple
            parameters.
configure_tool -name {SPM_OTP} -params {parameter:value}Arguments
| Parameter | Type | Description | 
|---|---|---|
| permanently_disable_debugging | boolean | Specifies that the SmartDebug access control, and reading temperature, and voltage sensor settings is either permanently enabled or disabled. A value of true or 1 will permanently disable debugging. The default value is false. | 
| permanently_disable_dpk | boolean | Specifies that the Debug Pass Key is either permanently enabled or disabled. A value of true or 1 will permanently disable FlashLock DPK unlocking. The default value is false. | 
| permanently_disable_factory_access | boolean | Specifies that the access policy for Microchip factory test mode is either permanently enabled or disabled. A value of true or 1 will permanently disable Microchip factory test mode. The default value is false. | 
| permanently_disable_prog_interfaces | boolean | Specifies that the Programming interfaces such as Auto Programming, JTAG, SPI Target are either permanently enabled or disabled. A value of true or 1 will permanently disable all of the programming interfaces. The default value is false. | 
| permanently_disable_upk1 | boolean | Specifies that the User Key UPK1 is either permanently enabled or disabled. A value of true or 1 will permanently disable FlashLock UPK1 unlocking. The default value is false. | 
| permanently_disable_upk2 | boolean | Specifies that the User Key UPK2 is either permanently enabled or disabled. A value of true or 1 will permanently disable FlashLock UPK2 unlocking. The default value is false. | 
| permanently_write_protect_fabric | boolean | Specifies that the write protection for fabric is either permanently enabled or disabled. A value of the true or 1 will make the fabric one-time programmable. The default value is false. | 
| one_way_passcode | boolean | Specifies 1 to enable or 0 (default) to disable
                                    One-Way Passcode (OWP). Specifies true to enable or false (default) to disable One-Way Passcode (OWP).  | 
| Return Type | Description | 
|---|---|
| None | None | 
Error Codes
| Error Code | Description | 
|---|---|
| None | Required parameter 'params' is missing. | 
| None | Permanent locks cannot be configured for bit stream encryption with default key. | 
| None | The Configure Permanent Locks for Production tool is not available for PolarFire SoC. | 
Supported Families
| PolarFire® | 
Example
The following example specifies that SPM_OTP tool is configured to permanently
                disable user keys UPK1 and UPK2:
configure_tool -name {SPM_OTP} \
               -params {permanently_disable_debugging:false} \
               -params {permanently_disable_dpk:false} \
               -params {permanently_disable_factory_access:false} \
               -params {permanently_disable_prog_interfaces:false} \
               -params {permanently_disable_upk1:true} \
               -params {permanently_disable_upk2:true} \
               -params {permanently_write_protect_fabric:false}The following example specifies that SPM_OTP tool is configured to permanently
                disable programming interfaces:
configure_tool -name {SPM_OTP} \
               -params {permanently_disable_debugging:false} \
	       -params {permanently_disable_dpk:false} \
               -params {permanently_disable_factory_access:false} \
               -params {permanently_disable_prog_interfaces:true} \
               -params {permanently_disable_upk1:false} \
               -params {permanently_disable_upk2:false} \
               -params {permanently_write_protect_fabric:false}
            The following example specifies that SPM_OTP tool is configured to
                enable one_way_passcode:
configure_tool -name {SPM_OTP} \
 -params {one_way_passcode:true} \See Also
- SPM
 
