Tool/software: TI-RTOS
I'm having troubles using SPI in multi-channel configuration with SPI interrupt enabled in TI-RTOS application.
I have a custom board with AM5718 and four SPI devices connected to single SPI port via four different chip-selects.
Application is running under SYS/BIOS and I'm trying to take advantage of using interrupts and callbacks. I've tried lots of combination of parameters while configuring MCSPI devices, but I can't make MCSPI to work properly.
If "chMode" parameter in "spiInitCfg[]" is set as "MCSPI_SINGLE_CH" and all four channels are opened with "MCSPI_open()" I can't start any transmission with "MCSPI_transfer()" on any channel other than default "chNum".
Futhermore, setting "chMode" as "MCSPI_MULTI_CH" completely freezes any transmission on any channel at all.
Examples of MCSPI applications from PDK which I have (pdk_am57xx_1_0_13) does not contain code of MCSPI usage in master mode with read-write operations on multiple channels of one MCSPI instance.
Can you please share a link where I can find and study such an example?
What does the "chMode" parameter with "MCSPI_MULTI_CH" possible value stands for?
Regards.