Lauterbach Trace32 Setup Guide.ppt

上传人:文库蛋蛋多 文档编号:2844913 上传时间:2023-02-27 格式:PPT 页数:21 大小:1.20MB
返回 下载 相关 举报
Lauterbach Trace32 Setup Guide.ppt_第1页
第1页 / 共21页
Lauterbach Trace32 Setup Guide.ppt_第2页
第2页 / 共21页
Lauterbach Trace32 Setup Guide.ppt_第3页
第3页 / 共21页
Lauterbach Trace32 Setup Guide.ppt_第4页
第4页 / 共21页
Lauterbach Trace32 Setup Guide.ppt_第5页
第5页 / 共21页
点击查看更多>>
资源描述

《Lauterbach Trace32 Setup Guide.ppt》由会员分享,可在线阅读,更多相关《Lauterbach Trace32 Setup Guide.ppt(21页珍藏版)》请在三一办公上搜索。

1、Lauterbach Trace32 Setup Guide,Zhao Xiaoliang&Yang Fengkaifor P1A&P1B,2/27/2023,CONFIDENTIAL,2,Contents,Setup PreparationTrace32 StartupTips,Setup Preparation,Lauterbach Software InstallationInstall Lauterbach software from TDDLTE09-Tools LauterbachSoftwareFollow the following steps to install the L

2、auterbach software,2/27/2023,CONFIDENTIAL,3,Setup Preparation,PatchCopy and replace three patches of the following folder to the c:T32 directory TDDLTE09-ToolsLauterbachPatch20090921DriversIf USB driver is not available when plugging USB,choose driver from the following folder TDDLTE09-ToolsLauterba

3、chSoftwarebin windowsdrivers or manually copy t32usb.sys to C:WINDOWSsystem32drivers,2/27/2023,CONFIDENTIAL,4,Setup Preparation,License and configurationCopy the License file(license.t32)and the configuration file(config.t32)from the following path to C:T32 TDDLTE09-ToolsLauterbachOpen the configura

4、tion file(config.t32),and change“TMP=C:DOCUME1dp037LOCALS1Temp”to“TMP=C:DOCUME1LOCALS1Temp”,2/27/2023,CONFIDENTIAL,5,Setup Preparation,ScriptsCopy the scripts from the following folder to C:T32Script TDDLTE09-ToolsLauterbachScriptFor P1AFind T32_USB.ts2 from the following folder with an editor C:T32

5、ScriptP1A_scriptsU7xxPCSallyMake a shortcut of T32_USB.ts2 to you desktop,and change the name of shortcut to“PC-Sally T32_USB.ts2”For P1BFind T32_USB.ts2 from the following folder with an editor C:T32ScriptP1A_scriptsU7xxSallyMake a shortcut of T32_USB.ts2 to you desktop,and change the name of short

6、cut to“Sally T32_USB.ts2”,2/27/2023,CONFIDENTIAL,6,Setup Preparation,Source files collectionSource files for PHY SWYou can find the source files in“C:sdeCCcrh1090667_lte_phycrh1090667_MAIN_LTE_PHY_LM_DEBUGRVCTsrc”or“C:sdeCCcrh1090667_lte_phycrh1090667_MAIN_LTE_PHY_LMRVCTsrc”Source files for McoreFor

7、 P1A B700the source files for mcore can be found in TDDLTE04-PHYSW05-Versions04_P1A_versions02_P1A_R1A056CRH1090667CRH1090667_P1A014execrh1090672_MCORE_PC_CARDRVCT-NANDsrcFor P1B B700the source files for mcore can be found in TDDLTE04-PHYSW05-Versions08_P1B_versions02_P1B_R2C013CRH1090667CRH1090667_

8、P1B004execrh1090672_MCORE_PC_CARDRVCT-NANDsrcFor P1B P700the source files for mcore can be found in TDDLTE04-PHYSW05-Versions08_P1B_versions02_P1B_R2C013CRH1090667CRH1090667_P1B004execrh1090672_MCORE_PC_CARD_P700RVCT-NANDsrc,2/27/2023,CONFIDENTIAL,7,Setup Preparation,Load fileUnified Mcore elf file

9、is usedFor P1A B700You can find the crh1090672_MCORE_PC_CARD_debug.elf for P1A version in“TDDLTE04-PHYSW05-Versions04_P1A_versions02_P1A_R1A056CRH1090667CRH1090667_P1A014execrh1090672_MCORE_PC_CARDRVCT-NANDexecrh1090672_MCORE_PC_CARD_debug.elf“and it will be released with P1A version release.For P1A

10、 B700You can find the crh1090672_MCORE_PC_CARD_debug.elf for P1B version in“TDDLTE04-PHYSW05-Versions08_P1B_versions02_P1B_R2C013CRH1090667CRH1090667_P1B004execrh1090672_MCORE_PC_CARDRVCT-NANDexecrh1090672_MCORE_PC_CARD_debug.elf“and it will be released with P1B version release.For P1A P700You can f

11、ind the crh1090672_MCORE_PC_CARD_debug.elf for P1B version in“TDDLTE04-PHYSW05-Versions08_P1B_versions02_P1B_R2C013CRH1090667CRH1090667_P1B004execrh1090672_MCORE_PC_CARD_P700RVCT-NANDexecrh1090672_MCORE_PC_CARD_debug.elf“and it will be released with P1B version release.,2/27/2023,CONFIDENTIAL,8,Setu

12、p Preparation,User CMM fileAfter start T32,you should Here you can load a private cmm file which may contain other loadmodule elf files and their source path or add some breakpointsBe sure that the loadmodule which will be loaded is a debug versionFor P1AYou can find the example file(loadlte.cmm)in

13、TDDLTE09-ToolsLauterbachPut loadlte.cmm into C:t32For P1BYou can find the example file(loadlte_sally.cmm)in TDDLTE09-ToolsLauterbachPut loadlte_sally.cmm into C:t32,2/27/2023,CONFIDENTIAL,9,Setup Preparation,HardwareSet a jumper to On/OFF(B),2/27/2023,CONFIDENTIAL,10,Trace32 Startup,Powering orderCo

14、nnect the Lauterbach while the B700/P700 board powered off to the JTAG/ETM connectorSwitch on the LauterbachSwitch on the B700/P700 board Switch off is in the other order,2/27/2023,CONFIDENTIAL,11,Trace32 Startup,STEP 1:Press the DEBUG HALT button and hold until STEP 5 finishedThis step is necessary

15、 to stop Boot-ROM code running in a normal way,2/27/2023,CONFIDENTIAL,12,Trace32 Startup,STEP 2:Power on the B700/P700 BoardSTEP 3:Double click the Sally T32_USB.ts2 or PC-Sally T32_USB.ts2 shortcut on the desktop for P1B or P1A,the following dialog will popup,press start button on the right side.,2

16、/27/2023,CONFIDENTIAL,13,Trace32 Startup,Three windows will appear for different CPUs,2/27/2023,CONFIDENTIAL,14,Trace32 Startup,For DAT CPU dialog,there are five buttons with different colors:green button:used for setupyellow button:used for loading the software itselfred button:used for resetting(c

17、urrently this button does not work)purple button:used for synchronization of the 3 cores in case of a breakpointteal button:used for ETM setup-which side to be tracedFor the dialog of LTE CPU and ACC CPU,only first three button above exists.,2/27/2023,CONFIDENTIAL,15,Trace32 Startup,STEP 4:Set the“T

18、arget Setup Dialog”This dialog can be called by pressing the green buttonPC Sally Flash Setup flashed by PA in advanceUse the following settingData CPU:NAND/NOCODE/VM/StripPART 0Access CPU:NAND-/NOCODE/VM/StripPART 0LTE CPU:NAND-/NOCODE/VM/StripPART 0Kernel/main load fileLoad the crh1090672 debug EL

19、F files as follows:All three CPU:crh1090672_MCORE_PC_CARD_debug.elfSource path:Choose the directory src for mcore as page 6 saidUse custom cmm fileChoose a cmm file only in DAT CPU,and the path is“C:t32loadlte.cmm”for P1A or“C:t32loadlte_sally.cmm”for P1B.Leave other options as their defaults,2/27/2

20、023,CONFIDENTIAL,16,Trace32 Startup,STEP 5:Press the yellow load button in DAT window to load the elf files.After all loaded,the state of DAT window is“system ready”and the state of LTE and ACC window is“running”,2/27/2023,CONFIDENTIAL,17,Trace32 Startup,STEP 6:Set breakpointFor example,if we want t

21、o debug LTE CPUPrecondition:crh1090667_MAIN_LTE_PHY_LM_debug.elf is loaded by cmm file and source path is spicifiedMethod I:Menu:Break-Set to set a breakpointNote:you could not see the code because the state is running,but the debug unit is availableMethod II:STEP 7After USB cable connected(DebugMux

22、 or LTT connected),break in DAT windowSet breakpoint in LTE window in code(View-Symbols-Browser)Method III:Set in cmm script using b.s before loadingSTEP 7:Press Go in DAT window,2/27/2023,CONFIDENTIAL,18,ETM Setup,Connect the JTAG and ETM probe to the ETMBefore STEP 5,press teal button and choose t

23、he CPU which you want to trace ON.After STEP 5,choose menu PC Sally LTE(if trace LTE CPU)-Trace Use ETM ETM auto set-up Note:in case the auto set-up fails,then set a breakpoint at the main function and retry.,2/27/2023,CONFIDENTIAL,19,Tips,You could use the UART port 0 which is for DAT CPU to check the DAT CPU state especially for the initial steps存数据:Data.save.十六进制 c:/name d:全局变量的地址范围,2/27/2023,CONFIDENTIAL,20,THANK YOU,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号