- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi I am working on bldc motors , and I used the software code exemple in keil library (FOC) to drive the motor in sensorless mode and I want to know how much ressources it takes to run this exemple code (RAM, flash memory and CPU)? is it possible to get these informations ? .
thank you .
Best regard.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Ghassen
The TLE98xx family does not support the arm M Instruction Trace data (ETM), which is required for the uVision performance analyzer.
To analyze the runtime of a function, you can toggle a GPIO and check the timing of execution.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Ghassen
You may look into the following content for information on the resource allocation :
https://developer.arm.com/documentation/ka004381/latest
https://www.keil.com/support/man/docs/bl51/bl51_ln_mapfile.htm
You will find the .MAP file for the example codes in
Tle9879_evalkit\Boards\Infineon\TLE9879_EvalKit\BLDC_SENSORLESS_FOC_EXAMPLE_TLE987X\Listings
A view of the .MAP file is given below:
I hope This will help you to find out how much resources it takes to run the example code.
Thanks and Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @RupakC
Thanks a lot , that's so helpful ,but is there any way to measure processor usage while running this program ?
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Ghassen
Please use the performance analyzer feature in Keil uvision. For details on the performance analyzer, please find the related document (page no. 105):
https://www.keil.com/product/brochures/uv4.pdf
I hope this helps solve your query. Please let me know if you need any other help.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @RupakC
Thanks for the suggestion , I tried to use performance analyzer in keil but when I start the debug session and run the program nothing is displayed on the performance analyzer window , I mean all the modules statistics stay at 0 % and nothing evolve , do you know what is the problem ?
here an attached screenshot of the problem.
Thank you .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Ghassen
The TLE98xx family does not support the arm M Instruction Trace data (ETM), which is required for the uVision performance analyzer.
To analyze the runtime of a function, you can toggle a GPIO and check the timing of execution.
Regards