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.

OMAP-L138: Software SPI on OMAP L138 PRU

Part Number: OMAP-L138
Other Parts Discussed in Thread: OMAPL138,

Hi there,

i will have to program a software spi on OMAP L138 PRU soon. I am programming in C using PRU C Compiler.

The C Compiler works perfectly, i already wrote some test programs on PRU in C.

Can you recommend any literature or provide some hints for getting started in programming a SW-SPI on OMAP PRU?

I do already have a solid basic knowledge on how (Hardware) SPI works, but I am a beginner in doing the transfer to sw spi.

Best regards,

Chris

  • Hi Chris

    There are no additional examples or getting started material available on OMAPL138 PRU for any "software" implementations like UART and SPI.

    AFAIK i am not aware of any sw spi over PRU implementation on this device or any others. 

    There is more collateral available on AM335x for sw uart and other getting started material that you may find handy. If this is a new project/new development and PRU based implementations are important, I recommend evaluating AM335x instead - otherwise lack of PRU code base / software support on OMAPL138 may be a challenge for you.

    Some relevant links from AM335x ecosystem

     (look at PRU-i2C)

     (look at general purpose ti designs)

    The difference between the PRU on OMAPL138 (AM18x and c6748) vs AM335x is documented here

    Regards

    Mukul 

  • Hi Mukul,

    thank you a lot for the documents you provided, I will go through and evaluate the docs.

    Unfortunately, we are bound to OMAP-L138, the project cannot easily be switched to AM335, but we will evaluate AM335 for our following projects.

    Another problem we are facing on OMAP-L138 PRU is the size of the DATA RAM, it is a challenging thing to implement projects that are memory-consuming regarding the RAM ;)

    Best regards,

    Chris

  • Hi Chris

    Thanks. Yes people have done cool things with PRU on their own on OMAPL138, unfortunately the eco system for that in terms of hardware, software is limited and definitely better on AM335x. 

    All the best with your effort to do cool things with PRU  - it has been the x-factor for several customers to implement cool things :). 

    Regards

    Mukul