Writing a single word

nRF Util

tags
nRF Util

To write one 32-bit word at a byte address inside an OTP memory region, run the following command:

nrfutil device otp-write [--force] --serial-number <serial_number> --address <address> --value <value>

Verify the command usage and remove square brackets around --force before running this example command.

Addresses outside the OTP memory range cause an error.

Tip

  • You can use hexadecimal values for <address> and <value> when convenient, for example 0x00FF8100 and 0x0000FFFF.
  • To check the device serial number, run the nrfutil device list command.