Communication with DWM1000

Hi,
in my case I’m stuck in Deep-Sleep porting the TREK1000 in my STM32CubeMX+ECLIPSE+GCC development environment (STM32F415RGT).
These are the changes I’ve made:

In reset_DW1000() function (port.c):

// drive the RSTn pin low
HAL_GPIO_WritePin (DW_RESET_GPIO_Port, DW_RESET_Pin, GPIO_PIN_RESET);
Sleep (2); // RSTn held down for> = 2mS.
// usleep (1);

// put the pin back to output open-drain (not active)
setup_DW1000RSTnIRQ (0);

// Sleep (2);

In setup_DW1000RSTnIRQ function (port.c):

HAL_GPIO_WritePin (DW_RESET_GPIO_Port, DW_RESET_Pin, GPIO_PIN_SET);
HAL_Delay (5);
}

Greetings