debug.wsx001vQTv/gAAAQAXAAIA8QkPAAAABAAAAAAAPwAAAAAAAAAEAAAAAgAAAAAAAAAAAAAAAAAAAA==4.011.12.2012 15:30:10:000000WorkspaceManagerWorkspaceManager01Core1Target0.Controller0.CoreTarget0.Controller0.Core102200702314312968181280780NormalfalseTop1272falseBottom0000falsefalse00DockPaneltrue457falseLeft0000falsefalse00DockPaneltrue457falseLeft0000falsefalse20DockPanelfalse0falseTop0000falsefalse0-1TabbedDocumenttrue457falseLeft0000falsefalse30DockPanelfalse457falseLeft0000falsefalse10DockPanelfalsetrue556false200false200true200true100truetrue0012807400128024Platform Main Menufalsetrue32444025Views ToolbarfalsetrueUDE_0x4_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}trueTarget BrowserImagetrueUDE_0x15_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}trueDiagnostic Message ViewerImagetrueUDE_0xF_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}trueConsoleImagetrueUDE_0x0_{DED51A60-E0B7-11D4-9112-0001034962B6}trueCPU WindowImagetrueUDE_0x1E_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueExplore SymbolsImagetrueUDE_0xA_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueProgramImagetrueUDE_0x5C_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueSingle Program WindowImagetrueUDE_0x5A_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueDisassembly WindowImagetrueUDE_0x2D_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueShow Special Function RegisterImagetrueUDE_0x3C_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueLocalsImagetrueUDE_0x46_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueWatchImagetrueUDE_0xA_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueSimulated I/OImagetrueUDE_0x14_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueUDE HTMLImagetrueUDE_0x19_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueArray ChartImagetrueUDE_0x1B_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueTime Traced Signal ChartImagetrueUDE_0x50_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueIP Trace ProfilingImagetrueUDE_0x28_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueMemoryImagetrueUDE_0x46_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueCall StackImagetrue4432421025File ToolbarfalsetrueUDE_Workspace_0x1770trueNew WorkspaceImagetrueUDE_Workspace_0x1771trueOpen workspaceImagetrueUDE_Workspace_0x1772trueSave workspace asImagetrueUDE_Workspace_0x1773trueSave workspaceImagetrueUDE_Workspace_0x1774trueClose workspaceImagetrueUDE_Workspace_0x177FtrueExport view contentImagetrueUDE_Workspace_0x1778truePrintImagetrueUDE_0x1_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueLoad ProgramImagetrue653249525Edit ToolbarfalsetrueUDE_Workspace_0x1779trueCutImagetrueUDE_Workspace_0x177AtrueCopyImagetrueUDE_Workspace_0x177BtruePasteImagetrue7482427625Macro ToolbarfalsetrueUDE_0x3B_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}trueRun MacroImagetrueUDE_0x40_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}trueDebug MacroImagetrueUDE_0x3_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}trueBreak MacroImagetrueUDE_0x3C_{F5FC9736-9EE3-460B-BB80-67C14C9581BF}trueReload MacroImagetrueUDE_Ctrl_{4D5190CD-077D-4F92-B890-4545242BF32A}_UDEWorkspacetrueImageAndTextfalse34950925Debug ToolbarfalsetrueUDE_0x18_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueShow IPImagetrueUDE_0x5E_{27B09B6B-1CF9-4B8E-8F03-63D41538E5D2}trueShow program codeImagetrueUDE_0x7_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueStart ProgramImagetrueUDE_0x9_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueStep OverImagetrueUDE_0xA_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueStep IntoImagetrueUDE_0xB_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueStep OutImagetrueUDE_0x8_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueRun CursorImagetrueUDE_0x321_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueBreak ProgramImagetrueUDE_0xD_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueResetImagetrueUDE_0xC_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueRestart ProgramImagetrueUDE_0x3_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueBreakpointsImagetrueUDE_0x6_{692DBD81-4A3F-11D2-B2CD-00A02457BF0F}trueToggle BreakImagetrueUDE_Ctrl_{FB7BC773-88A4-4ECE-B9B6-7189610B0735}_CoretrueImageAndTextfalseUDE_0x3_{1C85B31A-5D25-4197-9635-9C5DC28EAFD7}trueTrigger setupImagetrue5124914125Config ToolbarfalsetrueUDE_0x3_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}trueTarget ConfigurationImagetrueUDE_0xFE_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueConnect TargetImagetrueUDE_0x100_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueDisconnect TargetImagetrueUDE_0x6_{1C85B31A-5D25-4197-9635-9C5DC28EAFD7}trueSetup Target InterfaceImagetrueUDE_0x12_{D8F96613-6E55-48F7-AF2A-5FCE31D103FA}trueMCU Run ControlImagetrue6534915125Tools ToolbarfalsetrueUDE_Ctrl_{377CE046-823C-4A05-8828-13C25D345D77}_CoretrueImageAndTextfalseUDE_0xE1_{BE30DC4A-FD5D-47C1-994D-8CCEC8720E6E}trueExecution Time SetupImagetrue01002625Show Toolbarfalsefalse02002625Window Toolbarfalsefalse02252625Workspace Toolbarfalsefalse02752625Help Toolbarfalsefalse075712802300128023Platform Status Barfalsetrue0740683128074068311.12.2012 15:30:17:9561007782411WorkspaceManager11011.12.2012 15:30:17:847MgAAAA==AQAAAA==ZAAAAA==AQAAAA==lgAAAA==AQAAAA==6AMAAA==AQAAAA==9011201WorkspaceManager110000\\napnt002.nap.st.com\NAPPRT0001..\..\..\..\..\Program Files\pls\UDE 4.0\StdLibrary.mso{866f82d3-fac5-43cd-8a82-0af01e46e2c5}..\..\..\..\..\Documents and Settings\disiriog\My Documents\pls\UDE 4.0The script contains a collection of macros to save memory content into different file formats and fill target memory rangesV:\UDE\AddOns\Macro\MacroLibrary\StdMacros1.dsm' ' $Header: /Ude/AddOns/Macro/MacroLibrary/StdMacros.dsm 3 30.04.04 9:34 Weisses $ '_______________________________________________________ ' ' universal debug engine ' ' Standard command line macros - part 1 ' ' pls Development Tools 1999-2004 ' ' 28.04.04 SW correction for UDE 1.10 ' 03.06.03 SW initial version '_______________________________________________________ '_______________________________________________________ ' ' UnAss command line function ' ' generates disassembly file ' ' command line UnAss output-file range1 [range2] [range3] ..... ' range description: ' C:<startaddress>,<length> or - code ' DB:<startaddress>,<length> or - data byte ' DW:<startaddress>,<length> or - data word ' DD:<startaddress>,<length> or - data dword '_______________________________________________________ Sub UnAss(File,ParameterObj) set debugger = workspace.Coredebugger(0) set DisASMObj = debugger.DisASMObj If Not IsObject(ParameterObj) Then MsgBox "Number of parameters wrong" Exit Sub End If If IsNumeric(File) Then MsgBox "File parameter wrong - " & File Exit Sub End If DisASMObj.OutputPath = CStr(File) bRetVal = DisASMObj.CreateStream(True,"UDE Disassembler output of current Program",False) If bRetVal = True Then ParmeterCnt = ParameterObj.ParameterCount If ParmeterCnt = 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If If ( ParmeterCnt Mod 3 ) <> 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If RangeCnt = ParmeterCnt/3 ParamIndex = 0 For Range = 0 To RangeCnt -1 KindOfRange = CStr(ParameterObj.Parameter(ParamIndex)) KindOfRange = UCase(KindOfRange) Address = CLng(ParameterObj.Parameter(ParamIndex +1)) Length = CLng(ParameterObj.Parameter(ParamIndex +2)) ParamIndex = ParamIndex +3 If IsNumeric(KindOfRange) Then If KindOfRange = 12 Then DisASMObj.AddRange Address,Length,1 ElseIf KindOfRange = 219 Then DisASMObj.AddRange Address,Length,2 ElseIf KindOfRange = 221 Then DisASMObj.AddRange Address,Length,4 Else MsgBox "Invalid range type " & KindOfRange & "of range " & Range +1 Exit Sub End If Else If KindOfRange = "C" Then DisASMObj.AddRange Address,Length,1 ElseIf KindOfRange = "DB" Then DisASMObj.AddRange Address,Length,2 ElseIf KindOfRange = "DW" Then DisASMObj.AddRange Address,Length,3 ElseIf KindOfRange = "DD" Then DisASMObj.AddRange Address,Length,4 Else MsgBox "Invalid range type " & KindOfRange & "of range " & Range +1 Exit Sub End If End If Next DisASMObj.HexFileModeFlag = False DisASMObj.ListModeFlag = False DisASMObj.WriteAllRanges(False) End If End Sub '_______________________________________________________ ' ' SaveHEX command line function ' ' generates intel-HEX file ' ' command line SaveHex output-file range1 [range2] [range3] ..... ' range description: ' <startaddress>,<length> '_______________________________________________________ Sub SaveHEX(File,ParameterObj) set debugger = workspace.Coredebugger(0) set DisASMObj = debugger.DisASMObj If Not IsObject(ParameterObj) Then MsgBox "Number of parameters wrong" Exit Sub End If If IsNumeric(File) Then MsgBox "File parameter wrong - " & File Exit Sub End If DisASMObj.OutputPath = CStr(File) bRetVal = DisASMObj.CreateStream(True,"UDE generated intel-Hex file of current Program",False) If bRetVal = True Then ParmeterCnt = ParameterObj.ParameterCount If ParmeterCnt = 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If If ( ParmeterCnt Mod 2 ) <> 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If RangeCnt = ParmeterCnt/2 ParamIndex = 0 For Range = 0 To RangeCnt -1 Address = CLng(ParameterObj.Parameter(ParamIndex)) Length = CLng(ParameterObj.Parameter(ParamIndex +1)) ParamIndex = ParamIndex +2 DisASMObj.AddRange Address,Length,0 Next DisASMObj.HexFileModeFlag = True DisASMObj.WriteAllRanges(False) End If End Sub '_______________________________________________________ ' ' FillByte command line function ' ' fills memory range with byte pattern ' ' command line FillByte range1,pattern1 [range2,pattern2] [range3,pattern3] ..... ' range description: ' <startaddress>,<length> '_______________________________________________________ Sub FillByte(ParameterObj) set debugger = workspace.Coredebugger(0) set DisASMObj = debugger.DisASMObj If Not IsObject(ParameterObj) Then MsgBox "Number of parameters wrong" Exit Sub End If ParmeterCnt = ParameterObj.ParameterCount If ParmeterCnt = 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If If ( ParmeterCnt Mod 3 ) <> 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If RangeCnt = ParmeterCnt/3 ParamIndex = 0 set udearrayobj = debugger.ByteArrayObj(1) For Range = 0 To RangeCnt -1 Address = CLng(ParameterObj.Parameter(ParamIndex)) Length = CLng(ParameterObj.Parameter(ParamIndex +1)) Pattern = CLng(ParameterObj.Parameter(ParamIndex +2)) ParamIndex = ParamIndex +3 udearrayobj.Resize(Length) udearrayobj.Fill(Pattern) debugger.Write Address,udearrayobj Next End Sub '_______________________________________________________ ' ' FillWord command line function ' ' fills memory range with word pattern ' ' command line FillWord range1,pattern1 [range2,pattern2] [range3,pattern3] ..... ' range description: ' <startaddress>,<length> '_______________________________________________________ Sub FillWord(ParameterObj) set debugger = workspace.Coredebugger(0) set DisASMObj = debugger.DisASMObj If Not IsObject(ParameterObj) Then MsgBox "Number of parameters wrong" Exit Sub End If ParmeterCnt = ParameterObj.ParameterCount If ParmeterCnt = 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If If ( ParmeterCnt Mod 3 ) <> 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If RangeCnt = ParmeterCnt/3 ParamIndex = 0 set udearrayobj = debugger.WordArrayObj(1) For Range = 0 To RangeCnt -1 Address = CLng(ParameterObj.Parameter(ParamIndex)) Length = CLng(ParameterObj.Parameter(ParamIndex +1)/2) Pattern = CLng(ParameterObj.Parameter(ParamIndex +2)) ParamIndex = ParamIndex +3 udearrayobj.Resize(Length) udearrayobj.Fill(Pattern) debugger.Write Address,udearrayobj Next End Sub '_______________________________________________________ ' ' FillDWord command line function ' ' fills memory range with dword pattern ' ' command line FillDWord range1,pattern1 [range2,pattern2] [range3,pattern3] ..... ' range description: ' <startaddress>,<length> '_______________________________________________________ Sub FillDWord(ParameterObj) set debugger = workspace.Coredebugger(0) set DisASMObj = debugger.DisASMObj If Not IsObject(ParameterObj) Then MsgBox "Number of parameters wrong" Exit Sub End If ParmeterCnt = ParameterObj.ParameterCount If ParmeterCnt = 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If If ( ParmeterCnt Mod 3 ) <> 0 Then MsgBox "Number of parameters wrong " & ParmeterCnt Exit Sub End If RangeCnt = ParmeterCnt/3 ParamIndex = 0 set udearrayobj = debugger.DWordArrayObj(1) For Range = 0 To RangeCnt -1 Address = CLng(ParameterObj.Parameter(ParamIndex)) Length = CLng(ParameterObj.Parameter(ParamIndex +1)/4) Pattern = CLng(ParameterObj.Parameter(ParamIndex +2)) ParamIndex = ParamIndex +3 udearrayobj.Resize(Length) udearrayobj.Fill(Pattern) debugger.Write Address,udearrayobj Next End Sub63VBScript24.11.2006 14:43:20:0001WS_CORE_DUOMacro_27_02_14_13_40_38_010Execute UnAss ..Macro UnAssExecute macro UnAss0210Execute SaveHEX ..Macro SaveHEXExecute macro SaveHEX0210Execute FillByte ..Macro FillByteExecute macro FillByte0110Execute FillWord ..Macro FillWordExecute macro FillWord0110Execute FillDWord ..Macro FillDWordExecute macro FillDWord0150126.04.2013 11:10:18:5317782550Target0.Controller0.Core1011.12.2012 15:30:17:9877782740Target0.Controller0.Core110111.12.2012 15:33:58:525..\main.c7372830Target0.Controller0.Core1118.12.2012 10:46:43:006..\..\ChibiOS-RT_Portable_Kernel_Component\component\lib\src\chsys.c7372830Target0.Controller0.Core101120.12.2012 10:51:57:042AwAAAA==AQAAAA==kAAAAA==YAAAAA==TgAAAA==oAAAAA==TgAAAA==oAAAAA==TgAAAA==oAAAAA==AAAAAA==AAAAAA==AAAAAA==AAAAAA==7782620Target0.Controller0.Core100000000000000..\build11..\build\ch.elfSoftware;enabled;0;disabled;'main {C:\ChibiStudio\workspace\SPC5\demos\SPC563Mxx OS-Less Test Application\main.c} .25';main.c;1;0;;$disabled; ;disabled; ;10011100verify.txt0000000001..\main.cstm_xpc563m64_minimodule_debug_jtag.cfg27.02.2014 13:40:38:000