Difference between revisions of "System Workbench"
(→Thread-Aware Example) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __TOC__ |
||
− | |||
System Workbench is an Eclipse-based IDE developed by the AC6 in partnership with ST. |
System Workbench is an Eclipse-based IDE developed by the AC6 in partnership with ST. |
||
− | = |
+ | =System Workbench setup for J-Link debug probe= |
− | The setup for debugging your target with J-Link probes is exactly the same as for an Eclipse IDE project. For further information on how to setup your debugging environment please see [ |
+ | The setup for debugging your target with J-Link probes is exactly the same as for an Eclipse IDE project. For further information on how to setup your debugging environment please see [[Eclipse | Eclipse Setup]] or [https://www.segger.com/products/debug-probes/j-link/technology/ides/system-workbench-for-stm32/ System Workbench STM32 j-Link Setup]. |
− | =Thread-Aware |
+ | =Thread-Aware= |
+ | ==RTOS plugin setup in System Workbench== |
||
− | If you already have a running project with freeRTOS or embOS and you wish to add Thread-Aware support you can simply add -rtos GDBServer/RTOSPlugin_FreeRTOS under Debug Configurations from J-Link Debugger -> "other options". |
||
+ | If you already have a running project with freeRTOS or embOS and you wish to add Thread-Aware support you can simply add the plugin to the command line. |
||
− | These Plugins can be found under any J-Link installation folder: GDBServer\RTOSPlugin_embOS.dll and GDBServer\RTOSPlugin_FreeRTOS.dll |
||
+ | Commandline options can be specified by editing the field '''Other options''': |
||
+ | * Open '''Run | Debug Configurations...''' |
||
+ | * On the left side, select the used Debug configuration in the group '''GDB SEGGER J-Link Debugging''' |
||
+ | * Switch to the tab '''Debugger''' |
||
+ | * Add in '''Other options''' you can add '''-rtos GDBServer/RTOSPlugin_FreeRTOS''' if you are using FreeRTOS or '''-rtos GDBServer/RTOSPlugin_embOS''' if you are using embOS marked below |
||
+ | These plugins can be found under any J-Link installation folder: GDBServer\RTOSPlugin_embOS.dll and GDBServer\RTOSPlugin_FreeRTOS.dll |
||
− | Furthermore, in the below link you may find a Thread-aware example using J-Link freeRTOS plugin under Eclipse. This example was generated with ST CubeMX and works out-of-the-box and you may use it as a starting point for your project. |
||
+ | ==Thread-aware example for System Workbench== |
||
+ | Furthermore, in the below link you may find a Thread-aware example using J-Link freeRTOS plugin under Eclipse. This example was generated with ST CubeMX and works out-of-the-box. |
||
[[Media:STM32L475 ThreadAwareDebug.zip | J-Link FreeRTOS Thread-Aware Example Link]] |
[[Media:STM32L475 ThreadAwareDebug.zip | J-Link FreeRTOS Thread-Aware Example Link]] |
||
Line 15: | Line 22: | ||
[[File:RTOSPlugin Eclipse.png|1000px]] |
[[File:RTOSPlugin Eclipse.png|1000px]] |
||
+ | |||
+ | Thread-Aware output example under FreeRTOS with J-Link probes and RTOS plugin. |
||
+ | |||
+ | [[File:threadAware SystemWorkbench.png|500px]] |
Latest revision as of 17:07, 9 October 2020
Contents
System Workbench is an Eclipse-based IDE developed by the AC6 in partnership with ST.
System Workbench setup for J-Link debug probe
The setup for debugging your target with J-Link probes is exactly the same as for an Eclipse IDE project. For further information on how to setup your debugging environment please see Eclipse Setup or System Workbench STM32 j-Link Setup.
Thread-Aware
RTOS plugin setup in System Workbench
If you already have a running project with freeRTOS or embOS and you wish to add Thread-Aware support you can simply add the plugin to the command line.
Commandline options can be specified by editing the field Other options:
- Open Run | Debug Configurations...
- On the left side, select the used Debug configuration in the group GDB SEGGER J-Link Debugging
- Switch to the tab Debugger
- Add in Other options you can add -rtos GDBServer/RTOSPlugin_FreeRTOS if you are using FreeRTOS or -rtos GDBServer/RTOSPlugin_embOS if you are using embOS marked below
These plugins can be found under any J-Link installation folder: GDBServer\RTOSPlugin_embOS.dll and GDBServer\RTOSPlugin_FreeRTOS.dll
Thread-aware example for System Workbench
Furthermore, in the below link you may find a Thread-aware example using J-Link freeRTOS plugin under Eclipse. This example was generated with ST CubeMX and works out-of-the-box.
J-Link FreeRTOS Thread-Aware Example Link
Thread-Aware output example under FreeRTOS with J-Link probes and RTOS plugin.