Can't enter RX mode from IDLE mode

Hi there, I’m having problem with the first example of dw1000. The problem is that after calling dwt_rxenable(), the system remains in IDLE mode.
I’ve seen the Debugging Mannual, in which I was informed that after calling dwt_rxenable(DWT_START_RX_IMMEDIATE), the dw1000 will enter RX mode. But the SYS_STATE register showed my dw1000 is in IDLE mode, after calling dwt_rxenable.
Does anyone have any suggestions? I’m awfully confused.

I’ve solved this problem myself.
It lies in the writetospi() function, it didn’t send out data as expected. However, reading devid is working fine. So check out the communication functions if you have the same problem