Help with BMM150 Magnetometer

I'm trying to establish a SPI connection from an arduino uno to this magnetometer. I followed the instructions on the product's page and I downloaded this library.
I loaded up the “GetAllState” sketch, but the serial monitor keeps printing “bmm150 init failed, Please try again!"
I have it wired in the following configuration:
VCC to 3.3V output
GND to ground
SCK to arduino pin D13
SDI to arduino pin D11
SDO to arduino pin D12
CS to arduino pin D10
PS to GND
Does anyone have any idea what I'm doing wrong?
I dig up the subject … You may have found the solution but it might be useful : the Arduino provides digital level of SPI communication in 0-5v whereas BMM150 need 0-3.3v levels.
Therefore, you need to convert your levels from 5v to 3.3v with a device like this
https://www.sparkfun.com/products/12009

for whatever reason the library didn't hyperlink. here it is: GitHub - DFRobot/DFRobot_BMM150

https://github.com/DFRobot/DFRobot_BMM150