NXPS32K312EVB: SPI - Send uint16 data

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

NXPS32K312EVB: SPI - Send uint16 data

Jump to solution
1,031 Views
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 Kudos
Reply
1 Solution
993 Views
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

View solution in original post

1 Reply
994 Views
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