debug.wsx002vQTv/gAAAQAXAAIA8QkPAAAABAAAAAAAPwAAAAAAAAAEAAAAAgAAAAAAAAAAAAAAAAAAAA==4.029.10.2012 12:15:07:999MCAAAAAAAAAAAAAABAAAAAAAPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPHHAAAAAAPBAAAAAADGFAAAAABCDAAAAAFalseTrue1416801050593930FalseFalse1000000000000000UDEStatusBarFor Help, press F105941912059647059398593975940359401594060593995940200FalseFalse0000000000CUDEDockBar05942230911000FalseFalse0000000000CUDEDockBar05942030910000FalseFalse0000000000CUDEDockBar059647True0001252278196-21474836480908FalseFalse1000000001252270006144014947UDEMDIMenuBarMenu bar0Menu barBAAAAAAIAACAAAAAAIAADAAAAAAIAAEAAAAAAIAAFAAAAAAIAAGAAAAAAIAAHAAAAAAIAAIAAAAAAIAAJAAAAAAIAAKAAAAAAIAA5939826True0026111568196-21474836480780FalseFalse6250000111300006144014946CUdeCustomToolBarEdit0Edit2DCBOAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAACCBOAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAFCBOAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAIABOAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAA5939711026True011026290568196-21474836480780FalseFalse6250000180300006144014946CUdeCustomToolBarFile0File3AHHBAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAABHHBAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAACHHBAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAADHHBAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAEHHBAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAFHHBAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAOKHBAAAAAABAAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAA5940329026True029026424568196-21474836481002780FalseFalse12500000134300006144014946CUdeCustomToolBarConfig0Config2GJHBAAAAAADAAAAAAADBGGJPINFFOGHPIEPKKCPFOMBDBNDAKPAAAAAAAAPPPPPPPPAAAAAAAAMMHBAAAAAAOPAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAANMHBAAAAAAAABAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAAFNHBAAAAAAGAAAAAAAKBDLFIMBFCNFHJBEGJFDMJNFCMOIPKHNAAAAAAAAPPPPPPPPAAAAAAAAINHBAAAAAACBAAAAAADBGGJPINFFOGHPIEPKKCPFOMBDBNDAKPAAAAAAAAPPPPPPPPAAAAAAAA5940142426True042426903568196-21474836481002780FalseFalse25000000479300006144014946CUdeCustomToolBarViews0Views6JJHBAAAAAAFBAAAAAADBGGJPINFFOGHPIEPKKCPFOMBDBNDAKPAAAAAAAAPPPPPPPPAAAAAAAAKJHBAAAAAAPAAAAAAADBGGJPINFFOGHPIEPKKCPFOMBDBNDAKPAAAAAAAAPPPPPPPPAAAAAAAAMJHBAAAAAAGBAAAAAADBGGJPINFFOGHPIEPKKCPFOMBDBNDAKPAAAAAAAAPPPPPPPPAAAAAAAANKHBAAAAAAAAAAAAAAAGKBFNONHLAOENBBBJCBAABADAJECGGLAAAAAAAAPPPPPPPPAAAAAAAAALHBAAAAAAKAAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAACLHBAAAAAAMFAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAADLHBAAAAAAKFAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAAFLHBAAAAAANCAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAAGLHBAAAAAAMDAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAAHLHBAAAAAAGEAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAAAMHBAAAAAAKAAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAABMHBAAAAAAEBAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAACMHBAAAAAAJBAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAADMHBAAAAAALBAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAAEMHBAAAAAAAFAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAAFMHBAAAAAAICAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAAIMHBAAAAAANEEAAAAAJEOEILFFBLMIPBEEPLLMEDEOPKHPBGJHAAAAAAAAPPPPPPPPAAAAAAAAJMHBAAAAAAGFEAAAAAJEOEILFFBLMIPBEEPLLMEDEOPKHPBGJHAAAAAAAAPPPPPPPPAAAAAAAAKMHBAAAAAAAGEAAAAAJEOEILFFBLMIPBEEPLLMEDEOPKHPBGJHAAAAAAAAPPPPPPPPAAAAAAAALMHBAAAAAAGEAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAA5940690326True0903261149568196-21474836480780FalseFalse50000000246300006144014946CUdeCustomToolBarMacro0Macro2DKHBAAAAAALDAAAAAAGDHJMPFPDOOJLAGELLAIHGBMMEFJBIPLAAAAAAAAPPPPPPPPAAAAAAAAEKHBAAAAAAAEAAAAAAGDHJMPFPDOOJLAGELLAIHGBMMEFJBIPLAAAAAAAAPPPPPPPPAAAAAAAAGKHBAAAAAAMDAAAAAAGDHJMPFPDOOJLAGELLAIHGBMMEFJBIPLAAAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAMKHBAAAACAGJAAAAAAAAAANMAJBFNENHHACJPEILAJFEFEECLCDPKCBAAAAAAAKAAAAAAANAAAAAAAFFEEFEHFPGCHLGDHAHBGDGFGAA5939956504True59419056504868196-21474836480780FalseFalse60000050430504303931506144014946CUdeCustomToolBarDebug0Debug5BLHBAAAAAAIBAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAAELHBAAAAAAOFAAAAAALGLJALHCJPMBOILEPIDADGENFBIDFOCNAAAAAAAAPPPPPPPPAAAAAAAAILHBAAAAAAHAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAJLHBAAAAAAJAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAKLHBAAAAAAKAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAALLHBAAAAAALAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAMLHBAAAAAAIAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAANLHBAAAAAABCDAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAOLHBAAAAAANAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAPLHBAAAAAAMAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAANHBAAAAAADAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAABNHBAAAAAAGAAAAAAABINLNCJGPDKECNBBCLNMAAAKECHFPLPAAAAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPPPPPPPPAAAAAAAACNHBAAAACAKKAAAAAAAAAADHHMLHLPEKIIOMOEJLGLBHJIBGLAHAFDBAAAAAAADAAAAAAAFAAAAAAADEPGCHFGAAENHBAAAAAADAAAAAAAKBDLFIMBFCNFHJBEGJFDMJNFCMOIPKHNAAAAAAAAPPPPPPPPAAAAAAAA5940250356142True5941950356645868196-21474836480780FalseFalse4000001423014230314606144014946CUdeCustomToolBarTools0ToolsDNHBAAAACAEGAAAAAAAAAAGEAOMHHDMDCIFAKEIIICDBCMNFEDNFHHBAAAAAAAGAAAAAAAFAAAAAAADEPGCHFGAAHNHBAAAAAABOAAAAAAKEMNADOLNFNPBMHEJJNEMIOMIMCHOAOGAAAAAAAAPPPPPPPPAAAAAAAA911015True594221512521554-214748364803889FalseFalse1000000300180125115030018006144014948CTabWndControlBarTab Window Bar 00-1FalseUDEDesktop Standard BarsTab Window Bar 0UDEDesktop0015019100False00True000004-214748364803889FalseFalse100000030018030018015018006144014948CUdeProjectWspBarProject Workspace Bar0-1FalseUDEDesktop Standard BarsProject Workspace BarUDEDesktop0001TrueTrueFalse29.11.2012 14:44:16:141517782411WorkspaceManager11029.10.2012 12:22:48:420MgAAAA==AQAAAA==ZAAAAA==AQAAAA==lgAAAA==AQAAAA==6AMAAA==AQAAAA==139011201WorkspaceManager110000110010\\napnt002.nap.st.com\NAPPRT0001000WorkspaceManagerWorkspaceManager01Core1Target0.Controller0.CoreTarget0.Controller0.Core10220070914912848231268785NormalfalseTop1260falseBottom0000falsefalse00DockPaneltrue462falseLeft0000falsefalse00DockPaneltrue462falseLeft0000falsefalse10DockPanelfalse0falseTop0000falsefalse0-1TabbedDocumenttrue462falseLeft0000falsefalse20DockPanelfalse462falseLeft0000falsefalse30DockPanelfalsetrue606false200false200true200true100truetrue0012687400126824Platform 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 StackImagetrue443249525Edit ToolbarfalsetrueUDE_Workspace_0x1779trueCutImagetrueUDE_Workspace_0x177AtrueCopyImagetrueUDE_Workspace_0x177BtruePasteImagetrue5382427625Macro 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}_UDEWorkspacetrueImageAndTextfalse8142421025File 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 ProgramImagetrue34950925Debug 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 Toolbarfalsefalse076212682300126823Platform Status Barfalsetrue07406881268740688..\..\..\..\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_26_02_14_15_10_40_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 FillDWord0150129.11.2012 14:41:40:7537782750Target0.Controller0.Core1014.11.2012 11:38:16:7287782640Target0.Controller0.Core110105.11.2012 10:25:05:825..\main.c1,104,42,457,11360017372830Target0.Controller0.Core11024.10.2013 10:57:59:2281,-4,-1,319,1093001..\..\ChibiOS-RT_Portable_Kernel_Component\component\lib\src\chsys.c7372840Target0.Controller0.Core105.11.2012 10:35:28:1091,0,0,323,1094001..\..\..\eclipse\plugins\org.chibios.spc5.components.kernel_2.5.1.1\component\lib\src\chthreads.c05.11.2012 10:35:58:6321,0,0,323,1094001..\..\..\eclipse\plugins\org.chibios.spc5.components.kernel_2.5.1.1\component\lib\src\chsys.c105.11.2012 10:36:48:552..\..\..\eclipse\plugins\org.chibios.spc5.components.kernel_2.5.1.1\component\lib\src\chschd.c1,0,0,323,109400105.11.2012 10:37:13:303..\..\..\eclipse\plugins\org.chibios.spc5.components.kernel.port.gcc.spc560pxx_2.5.1.1\component\lib\src\chcore.c1,0,0,323,109400105.11.2012 10:38:46:323..\..\..\eclipse\plugins\org.chibios.spc5.components.hal_2.5.1.1\component\lib\src\pal.c1,0,0,323,109400123456129.11.2012 14:42:34:347AwAAAA==AQAAAA==kAAAAA==YAAAAA==TgAAAA==mgAAAA==TgAAAA==mgAAAA==TgAAAA==mgAAAA==AAAAAA==AAAAAA==AAAAAA==AAAAAA==7782520Target0.Controller0.Core1000000000000000000000000x000000000x000000000x000000000x000000000x000000000x0000000000000000000000000x00000x00000x00000x000000000x00000x00000x00000x00000x00000x000000000000000000000000000000000000000000000..\build11..\build\ch.elfSoftware;enabled;0;disabled;'main {C:\ChibiStudio\workspace\SPC5\demos\SPC560Pxx OS-Less Test Application\main.c} .25';main.c;1;0;;$disabled; ;disabled; ;1000011100verify.txt0000000001..\main.cstm_xpc560p_minimodule_40mhz_debug_jtag.cfg26.02.2014 15:10:39:999