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

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

  • [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.

    Source Code: myFile.JLinkScript

    1. int SetupTarget(void){
    2. JLINK_SYS_Report("JY: in SetupTarget");
    3. return 0;
    4. }
    5. int InitEMU(void) {
    6. JLINK_SYS_Report("JY: Low-power-handling mode enabled by script.");
    7. JLINK_ExecCommand("EnableLowPowerHandlingMode");
    8. return 0;
    9. }
    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
    wiki.segger.com/UM08001_J-Link_/_J-Trace_User_Guide
    wiki.segger.com/UM08001_J-Link…Guide#Low_Power_Debugging
    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":
    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: segger.com/ticket/

    Or you can contact us via e-mail.