Debugging some priority issues I saw that the scheduler start sets the systick and pendsv priority to the lowest one.
/* Make PendSV and SysTick the lowest priority interrupts. */
portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
Could you please explain to me why it is mandatory to set those interrupts to the lowest priority and what is the impact if they are kept in the highest priority.
Thanks a lot for your support.