NXPS32K312EVB: SPI - Send uint16 data

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NXPS32K312EVB: SPI - Send uint16 data

ソリューションへジャンプ
983件の閲覧回数
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 解決策
945件の閲覧回数
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 返信
946件の閲覧回数
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