I’m a little confused by your post, but think you have the following scenario:
- The scheduler has not been started yet.
- You are using two hardware timers to blink LEDs, one LED per timer.
- After a call to pvPortMalloc() the rate at which the LEDs are blinking changes.
Is that correct?
Are your timers using interrupts? If so, then interrupts are deliberately left masked (up to configMAXSYSCALL
INTERRUPT_PRIORITY) once you start using the FreeRTOS API. That is done to prevent any interrupts attempting to use the scheduler before the scheduler has been started.