DWM3000 and NucleoWB55RG dwt_probe() returns DWT_ERROR

I am using a DWM3000 with a NUCLEO WB55RG board. Whenever I run the dwt_probe(), it returns DWT_ERROR. And the devid field returned by the device is 0 (got the value by reading the register 0).