[SOLVED] How to exit "debug mode" on Cortex M3 (EFM32GG290F1024) using J-Link GDB on Eclipse IDE?

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

  • [SOLVED] How to exit "debug mode" on Cortex M3 (EFM32GG290F1024) using J-Link GDB on Eclipse IDE?

    Is there a command I can send the J-Link GDB to cause it to issue the SWD command to the processor to exit the "debug mode"?
  • What is the actual question?
    When you are debugging with Eclipse, you have a "resume" / "go" button.
    This will resume the program execution, meaning "leave debug mode and continue user program execution"
    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.
  • Sorry for the confusion. Our application is very power sensitive and the EFM32's debug interface uses a significant amount of power when enabled. This interface is enabled when hitting the "resume / go" button. I am looking for a method to "go" but with this interface disabled. Only the SWD interface can disable the EFM32's debug interface (exit debug mode). I realize we can't pause or halt the program after this, but we can measure true power consumption.
  • Hi,
    We are still not entirely sure what you want to do.
    From what we understand:
    You want to use the J-Link to get to a certain point of your application.
    Then you want to end the debug session and have your program run from this point to (for example measure power consumption) without the debug logic being enabled.
    Is that correct?

    This is currently not possible with J-Link. We see two possible ways to get what you want:
    1) Measure the Power consumption from a certain defined point, with and without debug logic enabled.
    This will give you a delta which should be constant in all situations. You could then subtract it from your measurements with J-Link attached.
    2) You implement an external trigger (e.g. button press) which makes your application leave a loop right before the point of your application you want to measure completely without J-Link.

    If this is not correct, could you please elaborate what your setup is and what exactly you are trying to achieve?

    Best regards,
    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.
  • Hi Fabian,

    Sorry about the confusion.
    Steps needed:
    1. Download program via J-Link SWD to M3
    2. Disable debug interface in M3
    3. Run program in M3

    This can be accomplished manually by causing a pin reset on the M3 after Step 1.
    Note: A S/W reset does not disable the M3 internal debug interface.
    Is it possible for the J-Link to do this, eliminating the manual step?

    Thanks,
    Richard
  • Hi Richard,

    This cannot be accomplished with eclipse, but you could use J-Flash for it.
    This requires the reset pin to be connected to the debug interface of the J-Link.

    In J-Flash, there is an option to start the application via reset pin after downloading the application.
    All information on how to use J-Flash and how to set the required option can be found in the J-Flash Manual (UM08003).

    Does this answer your question?

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