Hello,
I have two Hwi threads (Timers) and one ISR function (called directly by the Hwi_dispatcher). The 20Khz thread must have the highest priority.
Using oscilloscope, I notice that my 20Khz timers thread (ti_sysbios_hal_Timer) seems to be preampted by the CAN ISR (ti_sysbios_family_arm_tms570_Hwi, priority 16) even if the 20Khz interrupt number is lower (higher priority).
I have jitter in the 20Khz thread as I have CANBUS interrupts (16).
In the ROV diagnostic, I could see that the priority of the 20Khz timer thread is higher (2, lower than 16), which is ok.
So what's going on? It seems that the BIOS doesn't handle the priority properly.
Another question:
I don't see where we configure the priority of timer thread. I can configure the priority of the CAN interrupt (Hwi) tough.
CCS 4.2, sysbios 6.31.4.27, xdc 3.20.8.88, TMS570
Simon