Question
FreeRTOS & H755ZI: many pxPortInitialiseStack() at port.c in call stack
I am testing STM32H755 MPU using the nucleo-144 (STM32H755ZI).
I used the STM32CubeMX tool to automatically generate a basic FreeRTOS example and added an ledTask to toggle an LED.
void ledTaskProc(void *argument)
{
/* USER CODE BEGIN ledTaskProc */
/* Infinite loop */
for(;;)
{
if (BspButtonState == BUTTON_PRESSED)
{
/* Update button state */
BspButtonState = BUTTON_RELEASED;
/* -- Sample board code to toggle leds ---- */
if ( 0 == led_select )
BSP_LED_Toggle(LED_GREEN);
else if ( 1 == led_select )
BSP_LED_Toggle(LED_YELLOW);
else
BSP_LED_Toggle(LED_RED);
led_select++;
if ( led_select >= LED_NUM )
led_select = 0;
/* ..... Perform your action ..... */
}
else
osDelay(10);
}
/* USER CODE END ledTaskProc */
}
The operation proceeds without any issues.
However, as shown in the image, if I set a breakpoint, I see many nested pxPortInitialiseStack() calls in the call stack.
What kind of error could this be? This is not typically seen; is it possible to remove them?

