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/TMS320F28379D: How can I use ECAP(C2000Ware Lib) with SYS/BIOS?

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE, SYSBIOS

Tool/software: TI-RTOS

Hello everyone,

I could add C2000Ware library with SYSBIOS and I created two tasks for blink LED. Tasks are running successfully but I want to use ecap module to detect falling edge. Before SYSBIOS, I used ecap module in C2000Ware lib . Now I tried to create "hwi" function but interrupt did not occur. I looked up wiki website, but I could not see any peripheral example such as ECAP, SCI, CAN etc(except timer). So, do you have any suggestion about ecap with hwi?

  • Have you looked at the SYS/BIOS PIE example to see the example Hwi configurations? If that doesn't help, could you share your Hwi and ECAP configurations so I can take a look?

    Another thing you need to keep in mind is that SYS/BIOS will manage the PIE for you, so you don't need to call the functions that the C2000Ware examples do to initialize the PIE and the vector table because it will conflict with SYS/BIOS.

    Whitney
  • Hi everybody,
    I resolved the problem. The solution is initializing peripheral clocks. At the beginning of the code, I did not initialize peripheral clocks. That's why I could not change ECAP parameters. First I tried the InitSysCtrl() function but due to auto PLL arrangement of the SYSBIOS. InitSysCtrl() function crashed the code. Only I have used InitPeripheralClocks() function which declared in InitSysCtrl() . This resolved my issue.