Saturday, December 16th 2017, 4:35am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

annamolalex

Beginner

Date of registration: Feb 27th 2016

Posts: 1

1

Monday, February 29th 2016, 10:03am

[SOLVED] Enable power debugging using Jlink PRO in IAR Embedded Workbench forARM

Hi,

I am having Jlink Pro and IAR Embedded workbench for ARM for embedded development. As part of power analysis, I want to test out the power debugging feature of IAR. To enable power debugging, there should be some plugin or software to enable power debug support from Jlink Pro. Because the options related to power debug in IAR still remains disabled.

It would be of great help, if anyone can guide me with the configuration. Please let me know the following too
  • jlink ultra supports power debugging , Doesn't jlink pro support power debug
  • How can we enable power debug feature in Pro, do we have to use some softwares/ command line tools
Thanks in advance

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,691

2

Monday, February 29th 2016, 10:57am

Hi,

Quoted

I want to test out the power debugging feature of IAR.

Please understand that we cannot provide support for IAR EWARM as it is not a SEGGER product.

Both J-Link ULTRA+ and PRO support Target power consumption measuring.
Power Consumption can be monitored within the J-Link control panel, tab Target Power or in J-Link Commander with the command hwinfo .

Furthermore, the J-Link SDK provides access to the J-Link Power API (POWERTRACE).
IAR EWARM uses this API in order to support "power debugging" with J-Link debug probes.

Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,691

3

Monday, March 7th 2016, 10:50am

Hi Forum,

quoted answer via Mail from my colleague Erik:

Quoted

In general, there are two things to take care about:

a) The target needs to be supplied via the J-Link (Pin 19).

If there is an adapter in between J-Link and Target or not, does not care as long as Pin 19 is mapped to the correct pin on the 5x2 header to supply the target.
Furthermore, the J-Link needs to be configured to supply power to the target via the Pin 19 as default is "do not supply power".
This can be done using J-Link Commander (JLink.exe):
1) Connect the J-Link to the PC via USB
2) Start JLink.exe
3) Enter the "power on perm" command without quotes to enable target power by default

b) Power debugging needs to be enabled in the IDE (EWARM)

1) Start the debug session configured for J-Link
2) Click "J-Link" --> "Power Log Setup" from the EWARM main menu and make sure that I0 is enabled
3) Click "J-Link" --> "Power Log" from the EWARM main menu:
Right click in the opened log window ->
Choose "Enable" to enable power debugging
4) Let the CPU run some time. Halt it --> Now you should see the consumption values in the power log (see screenshot below)


Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link