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.

Driver for CLA

Other Parts Discussed in Thread: MOTORWARE

Hi

The InstaSPIN software package contains nicely developped software drivers and modules to control the system. Especially the construct with the handles seems to be a good idea to encapsulate the drivers and modules. However, for the CLA there seems to be just included and 'old' header file. Does there also exist a driver for the CLA in the new style with objects and handles? Does there exist an example how to implement the CLA driver in a project?

Kind regards

Timon

  • Timon,

    Currently there are no corresponding CLA drivers in motorware.  The main reason for this is because the CLA C compiler has limitations on how deep the call stack can get.  Driver like this often make use of several other driver functions which would not work with the CLA C compiler.

    In the future drivers may be developed, but this is not currently comprehended.

    Regards,

  • Hi Trey,

    Thanks for your response. I know that the CLA is limited and nested functions are only possible to a certain limit.

    However, I am looking for a driver running in the CPU and configuring the CLA. There, I guess, nested functions are not a problem as they are running in the CPU. This driver would mainly configure the CLA control register, like enabling interrupts, enabling Ram0 and/or Ram1 etc. Would it be possible that TI could provide such a driver in the same style as the motorware drivers are?

    Regards,

    Timon

  • Timon,

    Ahh, I understand what you're looking for now.  While I'm not aware of any immediate plans to make a driver like this, I know the motor team is working on developing some solutions for the CLA.  I would expect that when they release these there will be a corresponding CLA driver.

    Sorry I don't have better news.  If you need something now, you'll have to write it yourself.

    Regards,