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.

TMDSICE3359: McSPI configuration in RTOS

Part Number: TMDSICE3359


Hi,

SDK:PRU-ICSS-ETHERCAT-SLAVE 01-00-07-02

EVM:AM335X ICE V2

The customer refer to code located in am3359-pru-ethercat-slave\examples\board\iceAM335x and configured mcspi as master. He wants to realize communication between mcspi and multiple slave nodes( four or more). But the values of chNum in mcspi.h are from 0 to 3, does that mean I have to choose gpio as spi chip select and my question is what’s the chNum? How should I correspond chNum to the chip select? Please help explain the relevance between chNum snd spi chip select.

  • Nancy,

    Please refer to the multi-channel example in the MCSPI LLD test in PDK under :
    pdk_am65xx_1_0_4\packages\ti\drv\spi\test

    In the src folder, if you refer main_mcspi_test.c , each mcspi instance can support upto 4 channels. If you trace the MCSPI_MULT_CHANNEL macro in the code, you check the configuration usage.

    Regards,
    Rahul