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.

TMDS243EVM: Add new task to the Task Manager

Part Number: TMDS243EVM
Other Parts Discussed in Thread: SYSCONFIG

I'm using the SD project in the following SDK: mcu_sdk_am243x_09_00_00_05

I would like to add a new task to the PRU's task manger which is synced on EPWM1 - like EPWM0 which is already given.

I managed to create and compile the EPWM1 via SysConfig, however I could not find any help in the following documents for defining new task:

  1. https://www.ti.com/lit/ug/spruj61/spruj61.pdf?ts=1680440691425
  2. https://www.ti.com/lit/ug/spruhv6b/spruhv6b.pdf?ts=1599573620918

 Is there a document with more details? Like the task manger’s constant table? A detailed explanation and the event comparator?

Thanks

  • Hi Ariel,

    In MCU+ SDK, the task management is done through the DPL APIs: AM243x MCU+ SDK: Task (ti.com)

    The CCS ROV can be used to monitor the task status: AM243x MCU+ SDK: Using SDK with Real-time Object View (ROV)

    Best regards,

    Ming

  • Again, I'm trying to create a new Task on the PRU.

  • You can map EPWM1 system event to task manager host event via INTC - sys event to channel to host mapping

    Refer to Table 9-84. PRU_ICSSG0 Interrupt Map (continued) for 64-159 events.

    Also see Table 6-505

  • Hello Ariel, 

    In SDFM project, EPWM0 SynOut is used to align ICSSG IEP timer to PWM cycle. IEP timer comparators (CMP1..CMP15) are used to schedule task via PRU's task manger. You can follow sdfm motor control sdk documents for more information about sync implementation: AM243x Motor Control SDK: SDFM Interface Design (ti.com). This SynOut event is only mapped with IEP timers for EPWM0 and EPWM3.

    But there is another way to sync EPWM and Task Manager. You can map EPWM1 event to task manager via INTC - system event to channel to host event mapping. Below example shows the routing of epwm event to INTC and INTC host events to task manager. The ICSS interrupt controller connects to task manager which triggers PRU0 task.

    Please see below mentioned table in am243x TRM for detailed event routing scheme:

    Table 9-84.  section 9.4.1.6:   This is mapping table for PRU_ICSSG0 Interrupt, where you can see EPWM1 as source interrupt for PRU interrupt.

    Table 6-464. section 6.4.6.2.8.1.1:  Mapping table for task manager and events, where you can find mapping between task and interrupt host event.

    Also see below image for INTC -system event to host event mapping. 

    Best regards,

    Achala Ram