cancel
Showing results for 
Search instead for 
Did you mean: 

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

User.72
Associate II


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.

2 REPLIES 2
TDK
Guru

> 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".
Sarra.S
ST Employee

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.