Skip to main content
User.72
Associate II
September 11, 2023
Question

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


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

    TDK
    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.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    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 

     

     

     

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.