Forums » Req. WJ2(ESP32) support »
CPU Idle time estimation
Added by Marco Cini 6 months ago
Hi,
is there a way to evaluate the CPU idle time using some of the blocks present in WJ2?
Since FreeRTOS is used, is it possible to call dedicated functions to output directly the CPU Idle task?
Thank you in advance,
Marco Cini
Replies (2)
RE: CPU Idle time estimation - Added by Chandima Jayaneththi (จันทิมา) 5 months ago
Hi Marco,
Currently, there is no option to measure the CPU idle time using Waijung 2 blockset. But you can do a Code execution profiling using PIL (Processor in the loop (PIL) simulation) to get an idea about the execution cycle. Using PIL, you can generate a code execution profiling report regarding the CPU utilization and execution cycle in detail. I hope this will help you for evaluating the CPU idle time.
- Waijung 2 only supports PIL using Model Block
- Other related limitations: https://www.mathworks.com/help/ecoder/ug/sil-and-pil-simulation-limitations.html
Best regards,
Chandima