Spi_SetupEB doesn't prepare destination data poiter correctly

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

Spi_SetupEB doesn't prepare destination data poiter correctly

176 Views
simon98
Contributor III

I'm using S32K3X8EVB-Q289 with MBDT to develop the SPI commnication with FS26.

I've found that if i put the Spi_SetupEB and the Spi_AsyncTransmit into  the initialize function of the model the data store memory assigned to Dest Data is always 0 if it's into the inizialize function as well...

If i take the dest Data out with an output port and attach a new data store to it, that data store memory will be filled with the spi data recived.

Why is that possible? Is there a way to solve this?

 

Attached you'll find my project zipped.

 

Thanks

Simon

Tags (4)
0 Kudos
Reply
1 Reply

147 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

0 Kudos
Reply