Hi, I'm trying to get sensor data using the SPI protocol, but it seems not to be working as it should be.
Developing environments are: S32 Design Studio for Power Architecture, MPC5748G, ASM330LHHX, dspi_driver example code
At first, I sent a read request for WHO_AM_I address 0x8F then the data sequence returned.
https://community.nxp.com/t5/S32K/S32K148-LPSPI-unexpected-data/m-p/1209756
then I followed the link above, but still, the same data sequence returned which was not what I wanted(0x6b).
So I changed the request address to 9A and some others, but still, the same data sequence returned.


The pictures above are who_am_i return data.
The data sequence is " 0x00 ... 0xD6 .... 0x00 ... 0x08 .... 0x00... 0x01 ... 0x00 ... 0xC0..."
What is the correct way to read and write sensor data? Is there a guide for this?