I use Freertos with RL78 target and the compiler used is IAR. My Freertos configuration doesn’t use the preemption (configUSE_PREEMPTION == 0.
I’ve encountered some “jitter” problems with a timer interrup. This regular interrupt must be acknowledged in my application without this jitter. I have checked the reason of this jitter and I’ve seen that the macro taskYIELD() use the BRK instruction. The acknowledgement of this interrupt disables all interrupts (like DI), and my normal interruption is served only after each RETB instruction. ( For my test, I have got only one active task and this task is suspended by call of vTaskDelay() , so portYield() is called everytime)
Furthermore, the RL78 can have 4 levels of interruption.
My questions are as follows:
1) It is possible to introduce the concept of priority level and have the same behaviour as RX62N, with the 2 parameters?
2) Additionally and to avoid any problems with the interrupt being disabled in the main loop (in case there is none preemption option), is it possible to not disabled the global flag interrupt (as BRK instruction made) or retabish it ?
Thank you in advance for your answers.