TWR-K60n512 Memory and CPU usage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-K60n512 Memory and CPU usage

Jump to solution
1,254 Views
mrandreas
Contributor III

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?


thanks,


Andreas

0 Kudos
1 Solution
747 Views
paulmartin
Contributor III

take a look at this:

http://www.keil.com/download/files/kinetis_lab.pdf

the performance analyzer can help you with cpu load.

and you can watch the memory in debug mode

View solution in original post

0 Kudos
6 Replies
747 Views
Monica
Senior Contributor III

Hello Andreas,

was that information of any help? Don't forget to keep us posted :smileywink:

Best regards,

Monica.

0 Kudos
747 Views
BlackNight
NXP Employee
NXP Employee

Hi,

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&E Tracelink)

I hope this helps.

0 Kudos
747 Views
mrandreas
Contributor III

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.

Thanks

0 Kudos
748 Views
paulmartin
Contributor III

take a look at this:

http://www.keil.com/download/files/kinetis_lab.pdf

the performance analyzer can help you with cpu load.

and you can watch the memory in debug mode

0 Kudos
747 Views
paulmartin
Contributor III

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.

0 Kudos
747 Views
mrandreas
Contributor III

Thanks,

Is it possible to sample the CPU and memory usage in release?

0 Kudos