Tool/software:

This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello Nisarg,
I am looking at your queries and you may get delayed replies as I was in handling other issues .
Regards,
Anil.
Hello Anil,
Any update on this ? We are waiting for your response on this.
Thanks,
Nisarg
Hello Nisarg,
Sorry for delayed reply as I was fixing other customer issues.
The VTaskDelay will create delay interms of msec and not in usec since the task scheduling is at 1msec.
To generate usec delays we need to use generic timers and other than this there is no possibility.
And, there is a PMU timer which runs at R5F core operating frequency. By using it also , we can derive the usec delay, but this will not work correctly if any lower priority tasks execute WFI instructions, and it is used mostly in NORTOS applications.
Regards,
Anil.
Hello Anil,
Does "ClockP_usleep()" API able to add delay (with Block-Execution or without Block-Execution) of 20 to 65535us (microsecond) range in FreeRTOS ?
Or suggested if we can use any other API to add delay with block-execution for 20 to 65535us (microsecond) range?
Thanks,
Nisarg
Hello,
Any update on above queries ? Kindly provide details on it. We need information on "ClockP_usleep()" API. Please resolve above queries on it.
Thanks,
Nisarg
Hello Nisarg,
Does "ClockP_usleep()" API able to add delay (with Block-Execution or without Block-Execution) of 20 to 65535us (microsecond) range in FreeRTOS ?
The above one does not work out.
Please look at the comments below for why the above one is not working in FreeRTOS.
ClockP_usleep is a PMU (Performance Monitor unit) timer which runs at R5F core operating frequency. By using it also, we can derive the use delay, but this will not work correctly if any lower priority tasks execute WFI instructions, and it is used mostly in NORTOS applications.
For free RTOS applications, this PMU timer does not work out.
The below one is lowest priority task .
To generate use delays we need to use generic timers and other than this there is no possibility.
Regards,
Anil.