I'm using the TWR - K60N512 evaluation tower as a replacement for unfinished k10 target.
How can I calculate\read CPU and RAM usage on K10\K60 board runtime?
take a look at this:
the performance analyzer can help you with cpu load.
and you can watch the memory in debug mode
I assume that you are using gcc?
then this is about the RAM/ROM usage:
- Code Size Information with gcc for ARM/Kinetis
- text, data and bss: Code and Data Size Explained
If you want to find out how much the CPU is used, that might depend on what you are running on the target.
If you are using an RTOS like FreeRTOS, then you have built-in profiling and performance information you can get:
- Tracing with FreeRTOS+Trace from Percepi
Precepio provides a free version of this tool. FreeRTOS has built in performance analysis (but only per task).
Otherwise you need to collect trace or performance data, e.g. with a TraceLink (First Steps with the P&amp;E Tracelink)
I hope this helps.
Thanks for the reply and sorry for the hold up.
I'm using keil with:
ARM C/C++ Compiler, 5.03 [Build 24] [MDK-ARM Standard]
Software supplied by: ARM Limited
I'm not using any RTOS and I'm not going to. I'm using the Ulink pro.
Is it possible to sample the CPU and memory usage in release?
Unless you stop the core, the debugging runs in real time. As far as i understand it, it does not slow down the processor. So you can run your release version and watch the mcu without causing problems.
was that information of any help? Don't forget to keep us posted
Retrieving data ...