Skip to main content
Associate III
Aug 28, 2024 6:03 AM UTC
Question

i want to add delay into my code

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

This topic has been closed for replies.

1 reply

ST Employee
Aug 28, 2024 10:29 AM UTC

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.