nasa / SCH

The Core Flight System (cFS) Scheduler (SCH) application.
30 stars 24 forks source link

Questions about OS_TimerSet #27

Open yuanshuaipeng-sakura opened 11 months ago

yuanshuaipeng-sakura commented 11 months ago

In SCH APP, the function SCH_MinorFrameCallback uses OS_TimerSet, but OS_TimerSet specifies that it cannot be used in the callback function of timer, and SCH_MinorFrameCallback is the callback function of timer. What is the purpose of this design? I tried to run this scenario, and calling OS_TimerSet from SCH_MinorFrameCallback failed, returning -35.

PeanutTheDog commented 4 months ago

I have now run into the same problem; when a CPU is configured as a CFE Time client but isn't getting major frame interrupts, the scheduler stops running because of this issue (the timer isn't reset). The system basically halts. @yuanshuaipeng-sakura, did you find any sort of resolution?