nrfx_spim_xfer rx buf not fill up properly

I am trying to read from the LIS3MDL sensor using spim on the nrf52840 dongle. I gave the rx buffer with the length of 7bytes. Whenever i tried to read from the sensor, I was expected the buffer to read {0xff, 0x3d,0,0,0,0,0} but got this instead

This is how i set up the spi read 

I am developing on NCS v1.5.1.

Parents Reply Children
Related