Is there any example program for simple DSPI TX_RX for MPC5777C ?
We do not have example for MPC5777C. However you can use this one and port it to your project as the DSPI is identical.
Example MPC5777M DSPI_SimpleTXRX S32DS
I tried to use the example porting to MPC5777C SPI but I didn`t have success.
(DSPI_A instead of DSPI_0 and DSPI_B instead DSPI_2)
Unfortunately, no data is received by DSPI_A or DSPI_B.
Using the MPC57XXX Motherboard on MPC5777C-416DS and a logical analyzer, I am monitoring the PM7,PM8,PM6, PM13 to check the DSPI_A activity and PO2,PM15,PO0 and PM10 to check DSPI_B activity.
The wiring connection:
SINA PM7 -> PO2 SOUTB
SOUTA PM8 -> PM15 SINB
SCKA PM6 -> PO0 SCKB
PCSA0 PM13 -> PM10 PCSB0
Is there any modification on example to work on MPC5777C ? (clock configuration, pin assignment and etc )
Yes, you need to port the DSPI from MPC5777M to MPC5777C.
The DSPI is the same, but the devices are totally different. (Clock, PINs, Magic Carpet unit)
The best way is to take MPC5777C reference project and just embed DSPI from MPC5777M into it.
Retrieving data ...