Tool/software:
Hello Experts,
Is there a way (or an example) to implement CPU usage % for C28x CPUs in TMS320F28388D?
Note that FreeRTOS is being used. However, time critical power electronics functionalities are in ADC ISR and we would like to view CPU Usage % for both CPUs.
Thanks,
Rohit
Hi Rohit,
Using the FreeRTOS vTaskGetRunTimeStats() API, you'll be able to get the CPU usage % of all the RTOS tasks, including the idle (this is measured w.r.t. a timebase set up by a timer running at min. 10x tick frequency). The (total time - idle task time) should give you a measure of how much time CPU spends on useful tasks.
Beyond the view of FreeRTOS, you can utilize a similar timer approach. You can also consider using the profile clock or the ERAD module.
Regards,
Arnav
Hi Arnav,
Regarding ERAD module for profiling, could you please share links to the documents, examples, etc. That will be very useful.
Thanks
Rohit
Hi Rohit,
You can refer to the following page in the C28x Academy : Embedded Real-time Analysis and Diagnostic (ERAD). There are examples demonstrating the usage of ERAD available in (c2000ware)\driverlib\f2838x\examples\c28x\erad.
Regards,
Arnav