My platform: STM32WB55x series.
I’m calling ISR safe FreeRTOS APIs from TIM2’s ISR. It won’t pass
configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
assertion.
Now, it is abundantly clear that I’m calling this API from an ISR with a priority higher than configMAX_SYSCALL_INTERRUPT_PRIORITY, and that is problematic (why? I dunno)
the ucCurrentPriority is already at 0x00, given it’s STMicroelectronics, it means that it’s the highest priority, so I need to “downgrade” it by increasing its value.
What I’m trying to find out is that:
-
Is it a good idea to lower the priority of TIM2, I assumed ucCurrentPriority is its priority.
-
How do I lower the priority of TIM2?
Please help! Thanks in advance!