Check the LPSPI2 driver of the S32K148

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check the LPSPI2 driver of the S32K148

470 Views
Kevin-Roman
Contributor II

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.

KevinRoman_0-1653198796308.png

KevinRoman_1-1653198837222.png

  • The above two figures are the initialization of LPSPI2

KevinRoman_2-1653198922336.png

  • The figure above shows the initialization of the IO port

    KevinRoman_3-1653199040489.png
    • This is a drawing of pins pulled up/down.Look forward to your reply thanks.
Tags (1)
0 Kudos
1 Reply

449 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Kevin,

I can see that you configured PCS0 by:

lukaszadrapa_0-1653293845978.png

This is really PCS0:

lukaszadrapa_1-1653293872191.png

But you configured PCS3 here which is wrong:

lukaszadrapa_2-1653293894160.png

Regards,

Lukas

0 Kudos