Skip to main content
Associate III
August 28, 2024
Question

i want to add delay into my code

  • August 28, 2024
  • 1 reply
  • 1312 views

hi community,

i my project. i am using PIT and it is working fine. before initialization of the drivers osalThreadDelayMilliseconds() is working fine. but after initialization of the low level drivers, osalThreadDelayMilliseconds() is blocked even though when i had used osalThreadGetMilliseconds() logic . even though it is not working (bolcking the code (PIT also)).

is there any alternatives. to add delay's without blocking PIT.

Regards 

E shiva

1 reply

ST Employee
August 28, 2024

Hi,

Please could you share your code and your pheripheral configuration?

Are you initializing (low level driver initialization) other peripherals besides the pit in your project? 

Have you enabled irqIsr ?

 

 

int main(void) {

     componentsInit();

     /* Enable Interrupts */
     irqIsrEnable();

     .....

}

 

Luca R.