Part Number: EVMK2H
Tool/software: TI C/C++ Compiler
Hey all,
I'm working with the DSP's i have successfully used the CSL, and only the CSL, to use timer0 to generate interrupts but when i tried the same approach with timer 1 I was unsuccessful. Also when I created the timer I had to use the local events for the timer, instead of the CIC event numbers. I thought that you had to first enable the CIC modules to activate the interrupts. This was not the case. the event was subscribed to vector 12. I don't know what changes would have to be added to get timer 1 working alongside timer0.
How does the CSL play with the CIC, It was my suspicion that your libs worked in the background to configure these chip interrupts, but in this case the values were not used. does this mean that the timer API's were made as primary events not secondary?
I followed the example code under ti/csl/example/timer/timer_test.c
I found values that worked with the K2H but only for timer0. Is this by design or is there a way to use any other timer?
Changes I made:
CSL_GEM_TINTHN = 65
CSL_GEM_TINTHL = 64
IntcInstance = 1
// The libraries didn't define these but i figured this was right
CSL_TMR_0 = 0
I added the GPIO/ TIMER / UART /CSL libraries just in case I needed them
also the watchdog functionality did not work as is presented in the example code