Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
@marveeamasi the behavior is not usually configurable. The stack of the task that triggered the interrupt is always used to store the local variables of the ISR(Interrupt Service Routine). These ISRs might be running multiple tasks at the same time.
And secondly,try to allocate your local variables which you declared within an ISR on the task which triggers the interrupt in your program.
In FreeRTOS, ISRs share the stack of the current running task. They don’t have a dedicated stack by default, but you can configure FreeRTOS to use a separate stack for ISRs by defining configUSE_ISR_STACK in your FreeRTOSConfig.h file. Local variables in ISRs are allocated on the interrupt stack, so keep ISRs short and simple to avoid stack overflow.
I have different understanding, i was in the impression that ISR execution uses the main stack that is used before os initialisation API is called. `configUSE_ISR_STACK` is this new feature in freertos ?
CONTRIBUTE TO THIS THREAD