Check the LPSPI2 driver of the S32K148

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Check the LPSPI2 driver of the S32K148

477 次查看
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.
标记 (1)
0 项奖励
1 回复

456 次查看
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 项奖励