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.

SPI CODE FOR OMAPL137

Other Parts Discussed in Thread: OMAP-L137

Hello Everyone,

                                   Am working on the spi protocol for omapl137. Here my sm470 is the master and omapl137 is the slave. my master will send the data and my slave needs the receive the data , do some calculations and send it back to the master. So, am looking for the spi code for slave(omapl137)side.

So, can any body help me out with the slave side code??

Waiting for your reply at the earliest!!

Thanks & Regards

Naveen Chandra

  • Dear Naveen,
    For SPI slave code, you can take the following source files as reference code.

    C:\ti\OMAP-L137_FlashAndBootUtils_2_40\OMAP-L137\CCS\SPIWriter\src\spiwriter.c

    Modify the "SPI_MEM_open" APi for SPI slave code.
    C:\ti\OMAP-L137_FlashAndBootUtils_2_40\Common\drivers\src\spi_mem.c

    Ex:
    SPI_ROLE_MASTER to SPI_ROLE_SLAVE
    Also make neccassory changes for slave mode, please refer to the OMAPL137 TRM for SPI slave implementation.

    BTW, we don't have a SPI slave code for OMAPL13x device.
  • Hi Naveen,

    Does Titus suggested code helped you out.
    Have you tried it.

    Do let us know if have further query on this.