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"?
[SOLVED] How to exit "debug mode" on Cortex M3 (EFM32GG290F1024) using J-Link GDB on Eclipse IDE?
-
-
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" -
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 -
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 M3This 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 -
Yes, Fabian, thank you!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!