DW1000 sleepmode working TWR issue

Hi
I have developed TWR in STM32, it is working and gives the distance as its exact. but i have issue while inserting sleep mode logic into that. sleep and wakeup by CSn pin is working as i expected. but i am not able to get the exact distance.
this is my configuration in my program.
dwt_configuresleep(DWT_PRESRV_SLEEP | DWT_CONFIG, DWT_WAKE_CS | DWT_SLP_EN);
this is how i call the sleeping method
dwt_entersleep();

this is my wakeup sequence
dwt_spicswakeup(dummy_buffer, RX_BUF_LEN);

i am waiting for someone to assist…

Thanks in advance

Hi Hmdra,

if you meet any issue when using sleep mode, please reference our example:https://www.decawave.com/wp-content/uploads/2019/01/dw1000_api_rev2p14.zip;
addtionally, could you please attach the related code you are using?

Jesen