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: 66AK2G02: Can you recommend to use TI RTOS for 100kHz MotorControl with complex Simulink Model?

Other Parts Discussed in Thread: 66AK2G02

Tool/software: TI-RTOS

Hi,

I’m an typical EE coming from the digital world hitting the RTOS ceiling.

We are using the 66AK2G02 device.

May I ask you, if you recommend using TI-RTOS for the following application:

We want to control a 60-phase E-motor (which we actually implement in an automobile to drive around with :-). We have a rather complex Simulink model which we would like to compile on the C66X. The A15 should do the control of the system, CAN Bus handling, Fuzzy logic, and the “inner loop timing” of the MotorControl Circuit. We hope to achieve a Control Frequency of 100kHz. PWM generation and Current ADC readout are done outside the K2G device.

Most importantly, we need the Ethernet interface (simple UDP would be enough) for motor control data monitoring.

May I use this excellent forum for this simple question:

Can we guarantee with TI-RTOS an exact 100kHz output pulse while organizing the rest of the payload. Do we have to use TI-RTOS when we want to reuse an UDP EMAC driver. Would you rather do this with bare metal code 66AK2G02 ?

A recommendation is highly appreciated,

thank you in advance,

Best Regards, Tobias

  • Hi Tobias,

    Can we guarantee with TI-RTOS an exact 100kHz output pulse while organizing the rest of the payload.

    Yes, you should be able to achieve this. I'll consult the design team to fully confirm this.

    Do we have to use TI-RTOS when we want to reuse an UDP EMAC driver. Would you rather do this with bare metal code 66AK2G02 ?

    I think referring & optimizing the existing RTOS driver would be easier than wring your own bare metal code from scratch. Rtos drivers documentation is located here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_Software_Developer_Guide

    Hope this helps.

    Best Regards,
    Yordan
  • Tobias,

    This 66AK2G02 device will soon be having a dedicated industrial offering with a K2G ICE board and Industrial software offering based on TI RTOS. This strategy is similar to our offerings on other Sitara devices like AM437x and AM571x industrial offering. The SDK provides firmware for our industrial subsytem (ICSS) on these devices that will allow the device to offload Motor control and other industrial Ethernet protocols to this co-processor. the ICSS allows these devices to handle ethernet traffic outside of the usual TCP/IP based network traffic(supported by NETCP) and can support upto 4 independent ports.

    I have reached out to the industrial team so that they can comment about your specific question about UDP and output pulse. In the meantime, I would encourage you to look at the TI Designs available on existing devices for Motor Control:
    www.ti.com/.../refdesignsearchresults.tsp (You can set the filter to processors)

    Note: AM437x is ARM +ICSS only device and AM571X is ARM+DSP+ICSS device.

    Regards,
    Rahul
  • Rahul,

    we don't use industrial Ethernet in out application.

    The TI boards you suggest are no use for us, because we have a 60-phase motor, which requires a 120 PWM and 60 current converters.

    Thanks, Tobias
  • Any outcome from consulting the design team ?