Tool/software:
I'd like to use the SPI0, channel0 from DSP side, and call spi_init() during DSP startup, the result is the gMcSpiHandle == NULL.
Linux on ARM has already delete mcspi1 node.
Would you show me what's the root cause?
void spi_init()
{
//MCSPI_Handle tMcpi;
MCSPI_Params tMcSpiParams;
uint32_t tInstance = 0;
#define MCSPI_OUT_FREQ (48000000)
MCSPI_init();
MCSPI_Params_init(&tMcSpiParams);
tMcSpiParams.frameFormat = SPI_POL0_PHA0;
tMcSpiParams.transferTimeout = 0xffff;
tMcSpiParams.bitRate = MCSPI_OUT_FREQ;
tMcSpiParams.dataSize = 8;
tMcSpiParams.mode = SPI_MASTER;
tMcSpiParams.transferCallbackFxn = NULL;//atCbFxn[tInstance];
tMcSpiParams.transferMode = SPI_MODE_CALLBACK;
gMcSpiHandle = MCSPI_open(tInstance, tInstance, &tMcSpiParams);
}