openSTM32 System Workbench Debugging
Holger Mai <[email protected]> Tue, 10 May 2016 15:02:22 +0200 (CEST)
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <398565797.303162.428859d7-5360-40c1-b83f-7fe418a8fcaa.open-xchange@email.1und1.de> |
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 Program), 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 [email protected] 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 http://www.gemac-chemnitz.de _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion