DWM-1000 distance mode

I just bought DWM1000 sensor online and I’ve tried a lot to use your open-source library :
I could send and receive a message using SPI connection according to (ex_01a_simple_tx) example .
but … I’m trying to use the sensor as distance detector ( ex_05a_ds_twr_init / ex_05b_ds_twr_resp ) unfortunately I couldn’t, FYI … I’m sure that hardware has no problem since I’ve tried " Simple tx example"
The status register which already used in examples “ex_05a_ds_twr_init” is keep going to zero value no matter what I did !!

Can you help me please ?

Many thanks in advance,
Best Regards,

Hi ,
When you say status register, do you mean System Status or no Time of Flight information, ie no RX timestamps?
When using the 01a example you may not have required to load data from the OTP.
Now with r5a/b you need the data from the OTP si
So maybe you used initialise(DWT_LOADNONE) instead of DWT_LOADUCODE.
See also example API

For (system) status register info I suggest you look at our debug Application note APS022 to setermin what stat the device is in.
APS022 can be downloaded from our website.