Skip to main content
Visitor II
September 11, 2023
Question

When configuring STM32F107RC FreeRTOS, the interrupt CALLBACK function is not called

  • September 11, 2023
  • 2 replies
  • 769 views


Hello.

I have some questions while testing a product using the 107MCU.

As the title suggests, when I set up FreeRTOS and create a task, the commonly used callback functions cannot be called:

void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi) void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) void HAL_SPI_TxRxCpltCallback(SPI_HandleTypeDef *hspi) void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)

If I remove the task creation function, it operates normally.

Do you know why this is happening?

Thank you.

    This topic has been closed for replies.

    2 replies

    Super User
    September 11, 2023

    > Do you know why this is happening?

    Program bug of some sort.

    Perhaps the starting SPI functions never get called. Perhaps chip resets due to corrupted stack.

    ST Employee
    September 11, 2023

    Hello @User.72

    You may want to check your interrupt priorities, which means it can be a higher priority task blocking SPI, GPIO callbacks