Forums - CPU UTILIZATION CSR1010

6 posts / 0 new
Last post
CPU UTILIZATION CSR1010
641fc925
Join Date: 14 Jun 16
Posts: 5
Posted: Thu, 2016-06-30 13:19

how can i tell how heavily loaded the cpu is?

i have a csr1011 dev board, running the SDK 2.5.1 base app firmware

wle

 

  • Up0
  • Down0
cbs
Profile picture
Join Date: 4 Mar 15
Location: IoT consultant, Cambridgeshire, UK
Posts: 21
Posted: Fri, 2016-07-15 01:54

Current consumption is a fairly good guide. Expect ~2mA when the CPU is 100%.

Chris

  • Up0
  • Down0
641fc925
Join Date: 14 Jun 16
Posts: 5
Posted: Sun, 2016-07-17 08:18

i hadn;t thought of that...

 

but how does that give cpu utilization?

isn;t the cpu *always* doing 'something'?

what i need is the time it  is spending in 'idle loops' or not doing useful stuff..

 

also wouldn;t current be most strongly correlated with TX and RX activity, not just 'non-idle time'?

 

wle

 

  • Up0
  • Down0
cbs
Profile picture
Join Date: 4 Mar 15
Location: IoT consultant, Cambridgeshire, UK
Posts: 21
Posted: Tue, 2016-07-19 01:22

No. Usually (hopefully) the CPU is asleep. When you break into execution with the xIDE debugger you'll almost certainly find it at the SLEEP instruction. That uses different amounts of current depending on the sleep_mode you've selected.

Current correlates with all sorts of things - not least the radio which causes huge spikes you need to filter to get any meaningful measurement. I suppose the question I would ask is: Why do you want to know the CPU utilisation?
  • Up0
  • Down0
641fc925
Join Date: 14 Jun 16
Posts: 5
Posted: Wed, 2016-07-20 07:51

i would want to know it because i had a suspicion that due to my added application code, it may be overloaded with computations and work.

i experienced  "link_loss" disconnects for no known reason, if i could rule   'cpu overloading' out (or in), it would help.

wle.

 

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Thu, 2016-07-28 19:45

You can use PIO high/low to monitor your main work in the CPU. 

Then monitor that by an external oscilloscope. 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.