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
this is my wakeup sequence
i am waiting for someone to assist…
Thanks in advance