Просмотр исходного кода

[SystemView] Re-organize the code for creating RTT Packages

ArdaFu 8 лет назад
Родитель
Сommit
5f61d0d9bb

+ 28 - 0
README.md

@@ -1,2 +1,30 @@
 # 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
+// <bool name="RT_USING_TRACE" description="Enable trace" default="true" />
+#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.

+ 15 - 0
SConscript

@@ -0,0 +1,15 @@
+# RT-Thread building script for trace component
+
+from building import *
+
+src_folder = 'SystemView_Src'
+
+cwd = GetCurrentDir()
+src = Glob(src_folder +'/Config/*.c')
+src += Glob(src_folder +'/SEGGER/*.c')
+
+CPPPATH = [cwd, os.path.join(cwd, src_folder+'/Config')]
+CPPPATH += [cwd, os.path.join(cwd, src_folder+'/SEGGER')]
+group = DefineGroup('trace', src, depend = ['RT_USING_HOOK','RT_USING_TRACE'], CPPPATH = CPPPATH)
+
+Return('group')

+ 0 - 0
SystemView_Porting/description/SYSVIEW_RTThread.txt → SystemView_Description/SYSVIEW_RTThread.txt


BIN
SystemView_Porting/archive/SystemView_Src_V240.zip


+ 0 - 27
SystemView_Porting/readme.md

@@ -1,27 +0,0 @@
-##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
-// <bool name="RT_USING_TRACE" description="Enable trace" default="true" />
-#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.

+ 0 - 15
SystemView_Porting/trace/SConscript

@@ -1,15 +0,0 @@
-# RT-Thread building script for trace component
-
-from building import *
-
-trace_module_folder = 'SystemView_Src_V240'
-
-cwd = GetCurrentDir()
-src = Glob(trace_module_folder +'/Config/*.c')
-src += Glob(trace_module_folder +'/SEGGER/*.c')
-
-CPPPATH = [cwd, os.path.join(cwd, trace_module_folder+'/Config')]
-CPPPATH += [cwd, os.path.join(cwd, trace_module_folder+'/SEGGER')]
-group = DefineGroup('trace', src, depend = ['RT_USING_HOOK','RT_USING_TRACE'], CPPPATH = CPPPATH)
-
-Return('group')

+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/Config/Global.h → SystemView_Src/Config/Global.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/Config/SEGGER_RTT_Conf.h → SystemView_Src/Config/SEGGER_RTT_Conf.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/Config/SEGGER_SYSVIEW_Conf.h → SystemView_Src/Config/SEGGER_SYSVIEW_Conf.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/Config/SEGGER_SYSVIEW_Config_RTThread.c → SystemView_Src/Config/SEGGER_SYSVIEW_Config_RTThread.c


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/Config/SEGGER_SYSVIEW_RTThread.c → SystemView_Src/Config/SEGGER_SYSVIEW_RTThread.c


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/Config/SEGGER_SYSVIEW_RTThread.h → SystemView_Src/Config/SEGGER_SYSVIEW_RTThread.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/License_SystemView.txt → SystemView_Src/License_SystemView.txt


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER.h → SystemView_Src/SEGGER/SEGGER.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER_RTT.c → SystemView_Src/SEGGER/SEGGER_RTT.c


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER_RTT.h → SystemView_Src/SEGGER/SEGGER_RTT.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER_SYSVIEW.c → SystemView_Src/SEGGER/SEGGER_SYSVIEW.c


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER_SYSVIEW.h → SystemView_Src/SEGGER/SEGGER_SYSVIEW.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER_SYSVIEW_ConfDefaults.h → SystemView_Src/SEGGER/SEGGER_SYSVIEW_ConfDefaults.h


+ 0 - 0
SystemView_Porting/trace/SystemView_Src_V240/SEGGER/SEGGER_SYSVIEW_Int.h → SystemView_Src/SEGGER/SEGGER_SYSVIEW_Int.h