I' m using s32k146, trying to use lpspi communicaton. My s32k146 acts as Master Device to send data, and imu device act as slave device. But now I can not receive data from slave device.
Here is my lpspi configuration.
Here is my main code.
count = 1000;
can anyone help?
The configuration looks good, could you try using a logic analyzer/oscilloscope to check if the IMU is responding to the transfer?
Also, check that pin configuration is done correctly. The following shows the pin configuration used in the SDK example.