[ABANDONED] J-Link problems in activating “low-power-mode handling”

  • Problem Summary:
    When I try to activate J-Link’s “low-power-mode handling”, there are no messages indicating whether it was activated, or not.
    How can J-Link be configured and run so that it provides such messages?

    More info is below. Any help is much appreciated.

    Problem Description:
    I’m using Ozone, and a J-Link probe on an ST Nucleo dev-board. The MCU is an STM32F767ZI.
    The Ozone project-file runs the J-Link script below, which has code to activate J-Link’s low-power-mode handling.
    The J-Link script’s output is displayed on the Ozone console and in a log file.

    In the script, SetupTarget() runs JLINK_SYS_Report(), to show if the script runs. The message is written to the Ozone console and log-file, as shown below. So, the script runs.

    SetupTarget() start
    JY: in SetupTarget
    SetupTarget() end
    Connected to target device.

    In the script, InitEMU() also runs JLINK_SYS_Report(), and it runs the command EnableLowPowerHandlingMode. The problem is that there is no output from InitEMU, neither in the Ozone console nor the log-file.
    It seems there should be output from InitEMU, including the message from JLINK_SYS_Report() and an indication of whether the command worked ok.

    System Specs and References
    Dev-board: STM32 Nucleo-F767ZI
    Ozone: v3.22a
    Debug probe: ST-Link on dev-board, converted to a J-Link v6.94

    J-Link low-power mode handling
    https://wiki.segger.com/UM08001_J-Link_/_J-Trace_User_Guide
    https://wiki.segger.com/UM08001_J-Link…Power_Debugging
    https://wiki.segger.com/Generic_IDE#Via_J-Link_script_file

  • Hi,
    The documentation of InitEmu explicitly says that the only allowed command string is "SetHostIf":
    https://wiki.segger.com/J-Link_script_files#InitEMU.28.29

    ConfigTargetSettings() or SetupTarget() would be the correct functions to pass "EnableLowPowerHandlingMode" to the DLL.

    BR
    Fabian

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!