dwm_hw_ver_set_once

Sets the hardware version in the One-Time Programmable memory. The hardware version cannot be changed after it is successfully set by this call! Supported HW versions are:

  • LC8A_A - 0x01100811 (LC8 with DWM1001)

  • LC8A_B - 0x01100812 (LC8 with DWM1001)

  • MDEK1001 - 0x02100111 (DWM1001-DEV with DWM1001C)

  • LC5A_E - 0x01100515 (LC5 with DWM1001)

UWB must be in offline mode for the write operation to complete successfully.

int dwm_hw_ver_set_once(dwm_hw_ver_t ver);
Parameters
  • hw_version – 32-bits integer

  • output – none

C code example

dwm_hw_ver_t ver;
int rv;
rv = dwm_hw_ver_set_once(ver);
printf("HW version set (%d)\n", (rv == 0? "ok" : "failed"));

SPI/UART example

TLV Request

Type

Length

Value

0x84

0x04

Hardware version in little endian (e.g. 0x02110100)

0x00 0x01 0x11 0x02

Type 0x84 (132 dec) means command dwm_hw_ver_set_once

TLV Response

Type

Length

Value (see error codes)

0x40

0x01

0x00

Type 0x40 means Status code of the previous command