NXPS32K312EVB: SPI - Send uint16 data

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

NXPS32K312EVB: SPI - Send uint16 data

跳至解决方案
985 次查看
beginner100
Contributor II

Team,

 

I have an NXP S32K312 EVB and I am using MBDT. I tried flashing an example for SPI (SPI Asynchronous Transfer S32CT) and was able to check the master_send, master_recv on Free Master and confirmed the data transfer.

Now, for the application that I am working on, I have to send 16 bit data to be able to communicate. I used the same example and started to tailor it to my needs and I keep getting errors when trying to build the model saying that the block  SPI_SetupEB can only take uint8. I tried to use S32 Config tool and changed the 

SpiChannel_0/SpiDataWidth from 8 to 16 but it is of no help, can you please let me know how I can overcome this issue?

0 项奖励
回复
1 解答
947 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

please search on MBDT Community space directly; https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/bd-p/mbdt

There are few threads dealing with this already, for example
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Send-16-Bit-Control-signal-through-SPI/...
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MR-CANHUBK344-SPI/m-p/1770950

Or post MBDT/MAtlab/Simulink related question there, so expert can handle it directly.

BR, Petr

在原帖中查看解决方案

1 回复
948 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

please search on MBDT Community space directly; https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/bd-p/mbdt

There are few threads dealing with this already, for example
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Send-16-Bit-Control-signal-through-SPI/...
https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MR-CANHUBK344-SPI/m-p/1770950

Or post MBDT/MAtlab/Simulink related question there, so expert can handle it directly.

BR, Petr