Other Parts Discussed in Thread: SYSCONFIG
Hi,
I would like to share one MCSPI pins for two or more slaves and select them through CS pin. Would you please let me know how to do it in SysConfig?
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I would like to share one MCSPI pins for two or more slaves and select them through CS pin. Would you please let me know how to do it in SysConfig?
Thanks
Hi Saman,
The SysCfg is limited one CS per instance, so it will not work if you are using the SysCfg for sharing one MCSPI instance for multiple SPI slaves.
Here is how you can do accomplish it:
1. Specify a MCSPI instance it 3 pin mode,
2. then connect all SPI slaves into the same SPI bus (three lines, CLK, MISO MOSI),
3. then use the GPIO pins to enable each SPI slave
Bestregards,
Ming
Hi Ming,
Thanks for the reply.
One more Question: When I define MCSPI in 3 pin mode and de-select CS pin, the CCS fail to build Sysconfig file as you can see in the attachment.


and also, when I want to use C11 pin as a GPIO I get a resource conflict.

Thanks for the help
Hi Samam,
I can add a new MCSPI instance to the Hello World example with 3-pin mode and build it fine. Try to delete the existing MCSPI instance and create a new one from scratch. I am using the latest MCU+ SDK for AM263x 08.04.00.17. Which MCU+ SDK version you are using?

Best regards,
Ming
Is CS pin de-selected when you build it? since when I de-select CS pin, build fails.
Hi Ming,
I was working in MCU+SDK version 8.03 and had problem.
I switched to version 8.04, and it is fixed now. (CS pin disappears when change to 3-Pin mode)
Hi Samam,
I also checked with the software team. You can actually configure 2 CSs per MCSPI instance, if you choose Multiple Master mode. By default, it is Single Master which only allow one CS per instance.
Best regards,
Ming