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.

RTOS/TMS320F28377S: Writing RTOS drivers on C2000Ware

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI-RTOS

Hi,

I need to write RTOS driver implementation for F28377S. I am not sure how to go about it,

Do I build the driver implementation on top of C2000Ware driverlib?

I tried spi but the SPI.h (RTOS) and spi.h (C2000Ware driverlib) already have a conflicting  typedef enum{} SPI_Mode.

Do I need a RTOS aware driverlib?

Any help will be appreciated.

Regards

Ruan

  • Hi Ruan,

    Did you checkout Sys/bios?
    http://www.ti.com/tool/SYSBIOS

    www.ti.com/.../spruex3t.pdf

    Regards,
    Gautam
  • Hi,

    On top of what Gautam suggested, please look into a similar query at e2e.ti.com/.../646483

    Thanks,
    Katta
  • Hi,

    Thanks for the reply.

    Let me try to ask my question another way.

    TI-RTOS have a SPI driver interface that I need to include to use the SPI.

    #include "ti\drivers\SPI.h"     (c:\ti\tirtos_c2000_x_xx_xx_xx\products\tidrivers_c2000_x_xx_xx_xx\packages\ti\drivers\SPI.h)

    Then there should be a driver implementation for  c2000 in c:\ti\tirtos_c2000_x_xx_xx_xx\products\tidrivers_c2000_x_xx_xx_x\packages\ti\drivers\spi\

    but there is only a driver implementation for Tiva (SPITivaDMA.c, SPITivaDMA.h).

    Do I have to create one for C2000? (eg SPIc2000.c, SPIc2000.h)

    Do I have to build the driver implementation on top of C2000Ware_x_xx_xx_xx  library? 

     if so then this is where I get the conflicting  typedef enum{} SPI_Mode 

    SPI.h  ( c:\ti\tirtos_c2000_x_xx_xx_xx\products\tidrivers_c2000_x_xx_xx_xx\packages\ti\drivers\SPI.h)

    spi.h ( c:\c2000\c2000Ware_x_xx_xx_xx\driverlib\f2837xs\driverlib\spi.h)

    Regards

    Ruan

  • Hello,

    You are correct that the TI-RTOS drivers do not currently support C2000 and that you'll need to implement your own.

    The conflicting enum name is a known issue. I think the best course of action for now would be to change the name of the driverlib enum to get rid of the error.

    Whitney