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