We purchased the MPC5775B EVB and are sending commands to the MC33996 (HSD) chip through the SPI interface (DSPI2 and CS3) but get no reply from or response from the chip.
The model having the problem (see attached ZIP file, and screenshot below) is derived from the example "SPI Master MPC574xP" in the Simulink Library Browser.
The SPI Config settings are:
The pins chosen match those in the S32DS SDK example project:
The SPI Polarity and Phase properties in the "General" tab were chosen based on the timing diagram:
In FreeMASTER we can see the counter incrementing for each step of the clock as messages are sent:
However, chip never replies, echoing the command sent to it, as the C code in the S32DS example PDC_5775B_SDK suggests it should; values in SPI_recv never change from 0.
We are having similar trouble communicating with the HSD and MSDI chips.
What could we be missing? Initialization? Any suggestions for troubleshooting?
Sorry, I've seen this post too late and I was already posted an example here: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Request-for-HSD-LSD-MSDI-Communication-Exa...
Your approach is the same as mine but on your side, you have to check the Continous transfer checkbox from the SPI Configuration block.
What this checkbox does is that it will keep the CS low until all those 3 bytes are sent, making the device to receive 1x24 bits and not 3x 8 bits.
Hope the example attached to the previous thread helps you control the device.