Using OTPTool to Burn OTP Bits

In this guide, we will step-by-step guide you to use OPTTool (a software application) to burn OTP bits on SP7350 platforms.

Table of Contents

1. Prerequisites:

Before proceeding, ensure that your SP7350 code is compiled to support the OTPTool. Confirm that both the “OTP driver” and “OTP driver handshake” options in X-Boot are enabled. To do this:

  • Run the command ‘make xconfig' in the project’s top directory. This will open the X-Boot Configuration menu.

  • In the X-Boot Configuration menu, ensure that the “OTP driver” and “OTP driver handshake” options are enabled. Refer to the screenshot below for guidance:

image-20240613-155510.png

If the options are not enabled, enable them and save the changes. Run the command ‘make' in the project’s top directory to rebuild the code.

Additionally, ensure that the OTP_1V8 power pin of the SP7350 is supplied with 1.8V to allow OTP programming. For example, in the schematic below:

image-20241127-054516.png

Mount R441 with a 0Ω resistor to supply the necessary 1.8V power for writing OTP bits.

2. UART Connection Setup

2.1 Close Terminal Applications

Close terminal applications such as Putty to free up the COM port connected to the SP7350 platform.

2.2 Run OTPTool

Launch "OTPTool V1.0.0.0.exe" on your PC. Once started, the application interface will be displayed as shown below:

2.3 Configure COM Port

Set the COM port connected to the SP7350 platform. Refer to screenshot below:

For instance, if UART0 of the SP7350 platform is linked to COM5 on your PC, select COM5 and set the Baudrate to 115200. Refer to screenshot below:

Press OK.

2.4 Connect with SP7350 Platform

Click "Connect" button in the OTPTool and power on the SP7350 platform.

The status window of OTPTool indicates "CONNECT Success!" as shown above.

3 OTPTool Operations:

3.1 Open Excel File (OTP table)

Open the OTP table Excel file. Refer to screenshot below:

When Open diaglog box is displayed, select the Excel file "OTP_TABLE_QAK654.xls". Then, press OK button. Refer to screenshot below, OTP table are loaded successfully.

3.2 Read and Modify OTP Bits

Press "Read" button to read the content of OTP from the SP7350 platform. Refer to screenshot below, Read command completed successfully.

The status window of OTPTool indicates "READ Start..…” and then “READ Success!" as shown above.

3.3 Write to OTP Bits

For modifications, right-click on the relevant bit or bit range, select "Modify item":

Input the new value, and press OK.

After making all necessary modifications, click "Write" to write the changes to the OTP of the SP7350 platform. Refer to screenshot below, bit [543:512] is updated: