[SOLVED] How To power on Target MCU With JLinkGDBServer?

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

  • [SOLVED] How To power on Target MCU With JLinkGDBServer?

    I'm using the command power on as described at § 3.2.1.29 power in Segger J-Link - J-Trace User Guide (UM08001).

    Currently, I'm using JLinkExe with a customised power.jlink command script.

    Source Code

    1. $ JLinkExe -device AT91SAMD21G18 -if swd -speed 4000 -commanderscript power.jlink

    The power.jlink command script contains

    Source Code

    1. r
    2. power on
    3. g
    4. exit


    However, I'd like to power the device on when I'm debugging with JLinkGDBServer and GDB.

    The command monitor power on sent from GDB doesn't seem to be recognised by JLinkGDBServer.

    Thank you for your help.
  • Hi,

    you can permanently activate the power supply via "power on perm" command in J-Link Commander (JLinkExe)
    This way, the target will already powered at startup of JLinkGDBServer.

    Best regards,
    Niklas
    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.