Hi!
I was modified example codes from DWS1000_ExampleCode_v1_0_1
to work with STM32L010(responder) and STM32F103(Initiator). The example i modified is number 6-:
ex_06a_ss_twr_init
and
ex_06b_ss_twr_resp
I was had to modify:
RESP_RX_tIMEOUT_UUS in initiator(changed from 210 to 1000)
UUS_TO_DWT_TIME in responder(changed from 65536 to 147456).
Now im trying to run previous, and a little more complicated example, number 05.
In responder i changed:
//#define UUS_TO_DWT_TIME 65536
#define UUS_TO_DWT_TIME 158875
//#define POLL_RX_TO_RESP_TX_DLY_UUS 2750
#define POLL_RX_TO_RESP_TX_DLY_UUS 7000
//#define RESP_TX_TO_FINAL_RX_DLY_UUS 500
#define RESP_TX_TO_FINAL_RX_DLY_UUS 3000
//#define FINAL_RX_TIMEOUT_UUS 3300
#define FINAL_RX_TIMEOUT_UUS 8250
In initiator:
//#define UUS_TO_DWT_TIME 65536
#define UUS_TO_DWT_TIME 158875
//#define POLL_TX_TO_RESP_RX_DLY_UUS 300
#define POLL_TX_TO_RESP_RX_DLY_UUS 1500
//#define RESP_RX_TO_FINAL_TX_DLY_UUS 3100
#define RESP_RX_TO_FINAL_TX_DLY_UUS 8000
//#define RESP_RX_TIMEOUT_UUS 2700
#define RESP_RX_TIMEOUT_UUS 5000
But still cant work. What more i have to change to make it work on slower MCU in this example?