https://github.com/ardafu/segger_debug
segger debug utils, such as SEGGER's Real Time Transfer, SEGGER SystemView porting.
https://github.com/ardafu/segger_debug
Last synced: about 1 year ago
JSON representation
segger debug utils, such as SEGGER's Real Time Transfer, SEGGER SystemView porting.
- Host: GitHub
- URL: https://github.com/ardafu/segger_debug
- Owner: ArdaFu
- Created: 2016-10-25T08:22:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T02:45:00.000Z (almost 8 years ago)
- Last Synced: 2024-03-17T20:32:41.712Z (over 2 years ago)
- Language: C
- Size: 113 KB
- Stars: 1
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# segger_debug
segger debug utils, such as SEGGER's Real Time Transfer, SEGGER SystemView porting.
##How to use the Segger SystemView trace componment
By Arda.Fu 2016.8.10
### 1. Copy description file
Copy the 'description\SYSVIEW_RTThread.txt' to folder '%SystemView_Install_Folder%\Description\'.
### 2. Copy source file
Copy the folder 'trace' to folder '%RTT_ROOT%\components\trace'.
### 3. Enable trace componment
Enable `RT_USING_HOOK` and add `RT_USING_TRACE` define in your bsp's rtconfig.h
```c
//
#define RT_USING_TRACE
```
### 4. Connect to target board debug interface
Segger SystemView only support Segger J-Link and Segger J-Link OB. If you using the origin development boards from vendor, you can upgrade the on board debugger to J-Link OB.
* For ST ST-Link, here is the [ST-Link upgrade utility download page](https://www.segger.com/jlink-st-link.html)
* For Atmel EDBG, here is the [EDBG upgrade utility download page](https://www.segger.com/jlink-edbg.html)
* For Freescale(NXP) OpenSDA/OpenSDA-V2, here is the [OpenSDA upgrade utility download page](https://www.segger.com/opensda.html)
* For NXP LPC Link 2, here is the [LPC link 2 upgrade utility download page](https://www.segger.com/lpc-link-2.html)
* NXP LPCXpresso, here is the [LPCXpresso upgrade utility download page](https://www.segger.com/jlink-lpcxpresso-ob.html)
### 5. Intergration (Porting) limitation
* Can only trace thread, scheduler and interrupt.
* Tracing RT-Thread IPC componment is not supported.