Hi Supporter:
Have the sample of 33771C SDK based on SPC5775E, similar to the sample of attachment S32K144?
We transplanted the S32K44(ARM) MC33771C driver to SPC5775E(PowerPC), not the same SDK, SPC5775E SPI module have an TX additional DMA channel rather than S32K144, How to set this?
Debug to the following code, use oscilloscope test, found that SPI does not send data, please help to see the reason ? thank you~~!
bcc_status_t BCC_WriteRegisterGlobalTpl(bcc_drv_config_t* const drvConfig,
uint8_t regAddr, uint16_t regVal)
{
uint8_t txBuf[BCC_MSG_SIZE]; /* Buffer for sending data via TPL. */
bcc_status_t error;
/* Check input parameters. */
if (regAddr > BCC_MAX_REG_ADDR)
{
return BCC_STATUS_PARAM_RANGE;
}
/* Create frame for writing. */
BCC_PackFrame(regVal, regAddr, BCC_CID_UNASSIG, BCC_CMD_GLOB_WRITE, txBuf);
error = BCC_TransferTpl_Sync(drvConfig->drvInstance, txBuf,drvConfig->drvData.rxBuf, BCC_MSG_SIZE, BCC_MSG_SIZE);
return error;
}
Solved! Go to Solution.
Hi,
as far as I know there is no SDK based example for MPC57775E and 33771C.
The additional TX DMA channel is used for SPI extended mode, this is not implemented on MPC57775E SPI module, so does not have a meaning here.
BR, Petr
Hi,
as far as I know there is no SDK based example for MPC57775E and 33771C.
The additional TX DMA channel is used for SPI extended mode, this is not implemented on MPC57775E SPI module, so does not have a meaning here.
BR, Petr