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: CAN open in TI-RTOS?

Tool/software: TI-RTOS

Hi everybody out there!

I have a question about the CAN open node stack, is it possible to implement it on TI-RTOS?
If yes, how? Can you give me some advises how to start and what is important to keep in mind?

Thank you!
BR Ben

  • Hi Benjamin,

    Yes. You can use TI-RTOS with CAN. We don't have a CAN driver in TI-RTOS, but we have a prototype that you could start with. It's modeled after the other TI-RTOS drivers (e.g. <Driver>_open, etc.). The other option is to use a CAN example with TivaWare and do one of two things:
    1. Move the interrupt management to TI-RTOS's Hwi module. So use Hwi_create (or Hwi_construct) like the other TI-RTOS drivers (use I2CTiva as an example).
    2. Make the CAN interrupt a zero-latency interrupt (RTOS does not manage it and therefore adds zero latency). This is probably the easiest in terms of migrating a TivaWare example to, but restricts the ISR from calling any RTOS calls that could impact scheduling (e.g. Semaphore_post). Zero-latency interrupts are handy when you want an RTOS for most things, but have it leave very time critical interrupts alone.

    Let me know if you are interested in the prototype or would like to pursue one of the other two options and I can give you some more details.

    Todd
  • Hi Benjamin,

    Did you need anymore information, or can I mark this as closed?

    Todd

    [Update 5/2: Marking this as TI thinks resolved. If you disagree, please post a response.]