This may be a very stupid question but i am very new to RTOS and i haven’t been able to find where this is addressed. i have a function that i would like to be able to call either in the initialization before any threads are actually running or from a running thread (i.e., in the init section of main before the ostask scheduler starts as well as in a thread after the scheduler is running). HAL_Delay won’t work properly after the thread starts and osDelay doesn’t seem to work before the thread and scheduler starts. is there a way to have a delay in a function so that function can be used regardless of where it is used?
for the moment i am just playing with the keil examples,e.g., FreeRTOS thread creation and moving delays around and trying different delays on an eval board. so i am stuck right out of the gates!