Hi
Please will someone point me to example code for using a hardware timer on C66x devices?
Best regards
David
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.
Hi
Please will someone point me to example code for using a hardware timer on C66x devices?
Best regards
David
Hi David,
You can start with the CSL examples for Timer and Interrupt controller.
Please take a look at the example folder of C6678 CSL (C6657 CSL folder seems not have those examples), such as:
C:\ti\pdk_C6678_x_x_x_x\packages\ti\csl\example\timer
The CSL API usage should be the same between C6678 and C6657. In your project, you could use the C6657 CSL library.
Please note the timer numbers in the example as well since C6657 may not have as many timer as C6678.
The timer CSL example also includes one watchdog timer example. You can get a general idea of how to enable the CPU interrupt and Timer event based on that as well.
You can download the BIOS MCSDK in the following link which includes the C66x PDK/CSL packages:
http://www.ti.com/tool/bioslinuxmcsdk
Please refer below thread for more information.
http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/260889.aspx
Thanks.
Hi Rajasekaran
Thanks very much for the pointer to the C6678 timer example. That answers my question.
While I am here, I would like to ask a related question. I need to generate a periodic 1ms interrupt on multiple dsp cores. The interrupts must be synchronised - i.e. all cores should see the interrupt at the same time. Can I use a single timer and interrupt multiple cores from it?
Best regards
David
Hi David,
From my understanding, one core shall get the timer interrupt and communicate the event to other cores. The core to core communication shall happen through IPC or the shared variable across multiple cores.
Please refer image processing demo for IPC implementation.
PATH: ..ti\mcsdk_2_x_x_x\demos\image_processing
http://processors.wiki.ti.com/index.php/MCSDK_Image_Processing_Demonstration_Guide
Thanks.
Hi David,
Please refer PDK of MCSDK3.x for Keystone II devices.
Path: ..\ti\pdk_keystone2_3_00_04_18\packages\ti\csl\src\ip\timer\V0
Download: http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest/index_FDS.html
Thanks.