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.

C2000 TI-RTOS CAN example?

Dear all,

 

My customer has a question with respect to the usage of HWI’s for the following scenario:

 

Can shared resources be used with these? If an ADC conversion complete HWI should trigger sending the conversion results via CAN, how do you recommend doing this?

Is it possible to use the CAN module directly in the HWI if there are other tasks also using it?

Is it possible to use a OS queue or a mailbox to send the data to a task managing the CAN communication?

 

Thanks,

BR,

Matthias

  • Hi Matthias,

    I searched for a C2000 CAN example using DSP/BIOS but didn't find one to point you to.

    For your questions:

    Matthias Schmitt said:

    Can shared resources be used with these? If an ADC conversion complete HWI should trigger sending the conversion results via CAN, how do you recommend doing this?

    Please provide some more details as to what needs to be done here.  For example, what “shared resources”?

    Matthias Schmitt said:

    Is it possible to use the CAN module directly in the HWI if there are other tasks also using it?

    Maybe, it depends on if some mutual exclusion mechanisms are used to avoid collisions between the HWI and task management of the interface.

    Matthias Schmitt said:

    Is it possible to use a OS queue or a mailbox to send the data to a task managing the CAN communication?

     

    Yes, I think so.  But without more details I can’t say for sure.

    Regards,
    Scott