Skip to main content
Visitor II
December 11, 2023
Solved

ThreadX priority

  • December 11, 2023
  • 1 reply
  • 3521 views

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?

    Best answer by KDJEM.1

    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

     

    1 reply

    KDJEM.1
    KDJEM.1Best answer
    Technical Moderator
    December 12, 2023

    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.