[En-Nut-Discussion] openSTM32 System Workbench Debugging

Holger Mai mai at gemac.info
Tue May 10 15:02:22 CEST 2016

After terminating a SystemWorkbench debug session, CPU is in HALT state
(Firmware stopped).
To solve this and restart the firmware, the command line interface of ST link
can be used.
do following in Workbench/Eclipse:

External Tools -> Configurations: create a new Configuration (double click on
rename it to i.E. "ResumeAfterDebugging"
Location: select the ST-Link_CLI.exe with Browse File System
Working Directory: leave field empty
Arguments: -c -run exit

Run Configurations -> Launch Groups: create a new Launch Group (double click on
Launch Groups),
rename it to i.E. "<projectname>_DebugAndRestart"
Add as first the <projectname>.elf, select as Post launch action "wait until
terminated"  for this
Add the primary created External Tool (Program) "ResumeAfterDebugging"
Common: select "Debug" as Favorite Menü Display

Now you can use the new Launch Group for debugging, after termination the CPU
will be restarted.
Alternate you can restart the Firmware independent from debugging by running the
Program "ResumeAfterDebugging" in External Tools.

mit freundlichen Grüßen /Best Regards

Holger Mai

mai at gemac-chemnitz.de

GEMAC - Gesellschaft für Mikroelektronik-
anwendung Chemnitz mbH
Zwickauer Straße 227
D-09116 Chemnitz
Tel. +49 371 3377 - 0
Fax +49 371 3377 272
UST-ID: DE140851265
HRB 6443 Chemnitz/Stadt
Geschäftsführer: Dirk Hübner / Karsten Grönwoldt

More information about the En-Nut-Discussion mailing list