When configuring STM32F107RC FreeRTOS, the interrupt CALLBACK function is not called
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-10 11:20 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-11 6:38 AM
> 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-11 6:50 AM
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.
