2021-09-29 04:45 AM
i m working with SPC584xxx series MCU and trying to work with timers interrupts.
using 1ms timer for calculating times for operations and using 10ms timer for work.
but when 10ms timer work, 1ms timer is waiting and not triggering until 10ms timers work done.
i just wanna see the how the priorities are working but i couldn't get what i want.
i made all settings via gui and adding callbacks manually.
should i add something else?
Solved! Go to Solution.
2021-09-29 05:54 AM
Hello ,
There is an example application in SPC5Studio tools suite :
SPC584Bxx_RLA PIT Test Application for Discovery
the priority is set in Low Level drivers component
You can find all the information in the Reference Manual RM0449
Best Regards
Erwan
2021-09-29 05:54 AM
Hello ,
There is an example application in SPC5Studio tools suite :
SPC584Bxx_RLA PIT Test Application for Discovery
the priority is set in Low Level drivers component
You can find all the information in the Reference Manual RM0449
Best Regards
Erwan
2021-09-30 05:01 AM
i saw this example but it s not about priorities. i tried change priorities manually from IRQ Priority Settings which you share ss but they're not cutting processes.
as example
task2_{ >10ms timer >IRQ Priority 16
some processes +2ms
}
task_1{>1ms timer >IRQ Priority 8
counter++
}
at this scenario, "task_1" should cut "task_2" least 2 time and counter should increase. but it is not working.
by the way, timer registers are counting at backplan but interrupts are not triggering.
2021-09-30 06:11 AM
Sorry ,
it is well PIT channel priority (cf tooltip) (cf help section)
PIT = Periodic Interrupt Timer
could you try to enable the switch :
OSAL_ENABLE_IRQ_PREEMPTION ?
Best Regards
Erwan
2021-09-30 06:19 AM
it's default value is FALSE but tried with both option which TRUE and FALSE. unfortunately results are same.
2021-10-12 06:21 AM
no more help ? any other solution? maybe a misspoint?