Hi everyone!
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.
Best Regards,
Alexis Andalon
Hi Alexis Andalon,
Thanks for your reply.
I have already found the error. I use DMA, but I didn't initialize it.
Now my spi communication can work.
:smileyhappy:
Liu