6.5. Writing HEX File into OTP Memory

The SmartSnippets OTP Programmer tool enables to download the default firmware into the System RAM and write a user-defined HEX or BIN file into the OTP memory. The tool can be used to write a secondary bootloader in the OTP memory of a DA1453x/DA1458x.

The following steps are required to write the executable secondary_bootloader_585.hex into OTP memory with SmartSnippets in UART mode:

  1. Open SmartSnippets and select the chip version as in Figure 84.

  2. Open the Board Setup tool and select the appropriate UART as in Figure 85.

  3. Open the OTP Programmer tool and select the image file to download.

../_images/writing-hex-in-OTP-programmer.png

Figure 90 OTP Programmer

  1. Burn the secondary_bootloader_585.hex into the OTP memory at offset 0. Enable Application Flag 1 and Application Flag 2, set DMA Length (Length = size / 4) and burn the OTP header.

../_images/writing-hex-in-OTP.png

Figure 91 OTP Programmer

Note

For more info about SmartSnippets Toolbox, see the “SmartSnippets Toolbox User manual”.