2403579_en-US

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

2403579_en-US

2403579_en-US

S32DS LPSPI SLAVE Configuration

The S32K344 + 33664 requires LPSPI to be configured in slave mode. After configuring the S32DS SPI as a slave, how does the MCU retrieve data after the 33664 sends data back? Which APIs need to be called?

RRR123_0-1786433752706.png


Re: S32DS LPSPI SLAVE 配置

It has been tested that using Lpspi_Ip_AsyncTransmit() can receive data. I wanted to call this function again in the callback function of Lpspi_Ip_AsyncTransmit() to trigger the reception of the second frame of data replied by MC33664. However, since MC33664 replied with two frames of data, the interval between the two CS is only 2.6us . The callback function of Lpspi_Ip_AsyncTransmit() cannot process it in time, resulting in the data of the second CS not being received. How can I handle this?

RRR123_0-1786499449651.png


Re: S32DS LPSPI SLAVE 配置

Hi @RRR123 

As you are configuring the slave to use DMA, call Lpspi_Ip_AsyncTransmit().

Also, as a starting point, you may find the following demo applications useful references:


BR, VaneB

Re: S32DS LPSPI SLAVE 配置

Hi @RRR123 

As a recommendation, please consider using the PHY_664 driver available in the BMS SDK for MC33664 communication. The PHY_664 driver was specifically designed to manage communication with the MC33664 transceiver.

NXP Battery Management Software Development Kit and Toolchain

标记 (1)
无评分
版本历史
最后更新:
14 小时之前
更新人: