Hello, engineers.
I'm Kevin.The following problems occur when I use THE LPSPI2 of S32K148 chip to configure communication with DSP.
The LPSPI driver I configured couldn't pull down the CS pin meaning it couldn't issue instructions to control the DSP.I feel confused about it.
Also, the communication rate should be set to 2MHz.Hope to see the engineers can help me check the code below. Thanks a million.
The above two figures are the initialization of LPSPI2
The figure above shows the initialization of the IO port
Hi Kevin,
I can see that you configured PCS0 by:
This is really PCS0:
But you configured PCS3 here which is wrong:
Regards,
Lukas