[SOLVED] Ozone - How to properly setup Power Graph

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Ozone - How to properly setup Power Graph

    Hi,

    So, I have a need to analyze my power consumption on a Cortex-M3 and need some guidance on proper setup.

    I have a J-Link Pro V4.5 loaded with the latest firmware.

    These are the steps I have performed:

    Setup
    1. Installed the latest version of Ozone (v2.61 Beta, as of this writing)
    2. Configured my target to be supplied power by J-Link
    3. Open Ozone and Create New Project
      1. Select my Target Device (ADuCM350) and Peripherals (ARMv7M)
      2. Set Connection Settings for my J-Link (choose defaults, JTAG, 1Mhz, USB)
      3. Select my Program ELF file
      4. Save my project File->Save Project As...
    4. Close Ozone and Edit the project file
      1. Added line 21 below to turn on target power when project loaded

    C Source Code: [project].jdebug

    1. void OnProjectLoad (void) {
    2. //
    3. // Dialog-generated settings
    4. //
    5. // (snip)
    6. //
    7. // User settings
    8. //
    9. Edit.SysVar(VAR_TARGET_POWER_ON,1);
    10. // (snip)
    11. }
    Display All

    Execute
    1. Connect target to J-Link
    2. Open Ozone and load my project
    3. In Ozone
      1. View->Power Graph
      2. Download & Reset Program
        1. one error seen which I haven't looked into yet.

      3. Run the target
        1. When running my target I see just a couple of spikes but mostly 0mA?


    Questions
    1. Am I missing any steps or configuration?
    2. Does my J-Link support Power Trace?
      1. Not every time but I will sometimes receive a J-Link V6.40 warning when setting this up (I've tried several times)



    I can send more details if needed and any help would be appreciated :)

    I setup PowerTrace via J-Link Commander a while back and added a LogFile location ...


    Best Regards,
    --Duane.
  • Hello,

    Thank you for your inquiry.
    Generally the steps you took look correctly.
    I just tried to reproduce the issue with out Cortex-M Trace Reference Board and our embOS start project (LEDs blink there so it is easier to see that something is happening in the power graph) and everything was working as expected. See attached picture.
    The only thing I can imagine goes wrong here is that the target device is not fully powered by the J-Link alone.
    What is the typical current draw of your target device if you power it with a bench power supply?
    Is the 5V-Supply pin the only one supplying the target device? segger.com/products/debug-prob…gy/interface-description/
    All external power supplys that might power the target device must be unplugged.

    Are you using a custom board or an eval board?
    Could you provide an excerpt of the schematics showing the debug interface and its wiring?

    Best regards,
    Nino
    Images
    • Capture.PNG

      11.25 kB, 882×240, viewed 546 times
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hi Nino,

    Thanks for the reply.

    So, I was able to get this working, not sure exactly what the issue was.

    I did a couple of things that may or may not have "fixed" it.

    • I reset my J-Link Pro configuration (via J-Link Configuration)
    • I recalibrated using J-Link Commander (via "calibrate" command)


    Question on Ozone is there a hard limit on the Power Graph data?

    For example when I load and run the power graph will stop after a period of time.

    @10kHz sample, stops at 100 seconds
    @20kHz sample, stops at 50 seconds

    So it looks like a 1M sample limit?

    Best Regards,
    --Duane.

    The post was edited 1 time, last by dfridley ().

  • Hello,

    The default sampling limit is 1M samples.
    You can increase it under Tools->Preferences->Maximum Sample Count
    We will improve documentation in that regard.

    For rule of thumb, 10M samples will need around 100 MB memory.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.