cancel
Showing results for 
Search instead for 
Did you mean: 

ThreadX priority

matlaber74
Associate

Hi guys. Help solve this problem.

I am working with STM32H745 and ThreadX. In my project, an external event generates an interrupt on EXTI10.
The tx_event_flags_set() function is executed from the HAL_GPIO_EXTI_Callback() interrupt handler to start a process that must perform certain actions. According to ThreadX recommendations, custom interrupt handlers from which RTOS functions are called are assigned the smallest interrupts. But when I assign EXTI10 Preemption priority=15, the program is unstable. And when I set Preemption priority=0 everything works fine. What could be the problem?

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @matlaber74 and welcome to the Community 🙂,

Could you please refer to these FAQs to check your configuration:

Part 1: How to create a ThreadX low power project from scratch

Part 2: How to create a ThreadX low power project from scratch

Thank you.

Kaouthar

 

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.

View solution in original post

1 REPLY 1
KDJEM.1
ST Employee

Hello @matlaber74 and welcome to the Community 🙂,

Could you please refer to these FAQs to check your configuration:

Part 1: How to create a ThreadX low power project from scratch

Part 2: How to create a ThreadX low power project from scratch

Thank you.

Kaouthar

 

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.