版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、.JLINK v8命令集 1. JLINK v8命令集Available commands are:2. 有效的命令如下:3. (本人简单翻译了一下如有错误还请指出,谢谢各位网友)-f Firmware info(显示固件信息)4. h halt(暂停CPU)g go(运行)Sleep Waits the given time (in milliseconds). Syntax: Sleep (睡眠多少毫秒)s Single step the target chip(单步调试目标芯片)st Show hardware status(显示硬件状态)hwinfo Show hardware inf
2、o(显示硬件信息)mem Read memory. Syntax: mem , (hex)(读内存)mem8 Read 8-bit items. Syntax: mem8 , (hex)(读内存8字节)mem16 Read 16-bit items. Syntax: mem16 , (hex)mem32 Read 32-bit items. Syntax: mem32 , (hex)w1 Write 8-bit items. Syntax: w1 , (hex)(写内存8字节)w2 Write 16-bit items. Syntax: w2 , (hex)(读内存16字节)w4 Write
3、32-bit items. Syntax: w4 , (hex)(读内存32字节)wm Write test words. Syntax: wm is Identify length of scan chain select registerms Measure length of scan chain. Syntax: ms mr Measure RTCK react time. Syntax: mrq Quit(推出)qc Close JLink connection and quit(关闭jlink连接,并退出)r Reset target (RESET)(重启目标)rx Reset t
4、arget (RESET). Syntax: rx (延时重启)RSetType Set the current reset type. Syntax: RSetType Regs Display contents of registers(显示寄存器信息)wreg Write register. Syntax: wreg , (写继承器)SetBP Set breakpoint. Syntax: SetBP A/T S/H(设置断点)SetWP Set Watchpoint. Syntax: R/W A-Mask(设置监视点)ClrBP Clear breakpoint. Syntax: C
5、lrBP (清除断点)ClrWP Clear watchpoint. Syntax: ClrWP (清楚监视点)VCatch Write vector catch. Syntax: VCatch loadbin Load binary file into target memory.(下载bin文件到目标内存) Syntax: loadbin , savebin Saves target memory into binary file.(保存BIN文件) Syntax: savebin , , SetPC Set the PC to specified value. Syntax: SetPC
6、 (设置PC(r15)寄存器)le Change to little endian mode(设置成小端模式)be Change to big endian mode(设置成大端模式)log Enables log to file. Syntax: log unlock Unlocks a device. Syntax: unlock Type unlock without to get a list of supported device names. nRESET has to be connected- CP15 -rce Read CP15. Syntax: rce , , , (读C
7、P15)wce Write CP15. Syntax: wce , , , , (写CP15)- ICE -Ice Show state of the embedded ice macrocell (ICE breaker)ri Read Ice reg. Syntax: ri (hex)wi Write Ice reg. Syntax: wi , (hex)- ETM -etm Show ETM statusre Read ETM reg. Syntax: re we Write ETM reg. Syntax: we , (hex)es Start trace- ETB -etb Show
8、 ETB statusrb Read ETB register. Syntax: rb wb Write ETB register. Syntax: wb , (hex)- TRACE -TAddBranch TRACE - Add branch instruction to trace buffer. Paras:,TAddInst TRACE - Add (non-branch) instruction to trace buffer. Syntax: TClear TRACE - Clear bufferTSetSize TRACE - Set Size of trace bufferT
9、SetFormat TRACE - SetFormatTSR TRACE - Show Regions (and analyze trace buffer)TStart TRACE - StartTStop TRACE - Stop- SWO -SWOSpeed SWO - Show supported speedsSWOStart SWO - StartSWOStop SWO - StopSWOStat SWO - Display SWO statusSWORead SWO - Read and display SWO dataSWOShow SWO - Read and analyze S
10、WO dataSWOFlush SWO - Flush data- File I/O -fwrite Write file to emulatorfread Read file from emulatorfshow Read and display file from emulatorfdelete Delete file on emulatorfsize Display size of file on emulator- Test -thg Run go/halt 1000 timests Run step 1000 timestestwspeed Test download speed.
11、Syntax: testwspeed testrspeed Test upload speed. Syntax: testrspeed testcspeed Test CPU speed. Syntax: testcspeed - JTAG -Config Set number of IR/DR bits before ARM device. Syntax: Config , speed Set JTAG speed. Syntax: speed |auto|adaptive, e.g. speed 2000,speed ai Read JTAG Id (Host CPU)wjc Write
12、JTAG command (IR). Syntax: wjc (hex)wjd Write JTAG data (DR). Syntax: wjd (hex), (dec)RTAP Reset TAP Controller using state machine (111110)wjraw Write Raw JTAG data. Syntax: wjraw , , rt Reset TAP Controller (nTRST)- JTAG-Hardware -c00 Create clock with TDI = TMS = 0c Clock0 Clear TDI1 Set TDIt0 Cl
13、ear TMSt1 Set TMStrst0 Clear TRSTtrst1 Set TRSTr0 Clear RESETr1 Set RESET- Connection -usb Connect to J-Link via USB. Syntax: usb , where port is 0.3ip Connect to J-Link ARM Pro or J-Link TCP/IP Server via TCP/IP. Syntax: ip - Configuration -si Select target interface. Syntax: si , where 0=JTAG and
14、1=SWD.power Switch power supply for target. Syntax: power perm, where State is either On or Off. Example: power on permwconf Write configuration byte. Syntax: wconf , rconf Read configuration bytes. Syntax: rconfusbaddr Assign usb address to the connected J-Link: Syntax: usbaddr = ipaddr Show/Assign
15、 IP address and subnetmask of/to the connected J-Link.gwaddr Show/Assign network gateway address of/to the connected J-Link.dnsaddr Show/Assign network DNS server address of/to the connected J-Link.conf Show configuration of the connected J-Link.ecp Enable the J-Link control panel.calibrate Calibrat
16、e the target current measurement.selemu Select a emulator to communicate with, from a list of all emulators which are connected to the host The interfaces to search on, can be specified Syntax: selemu .ShowEmuList Shows a list of all emulators which are connected to the host. The interfaces to searc
17、h on, can be specified. Syntax: ShowEmuList .-NOTE: Specifying a filename in command linewill start J-Link Commander in script mode.几个常用命令: usb-连接目标板 r-重启目标板 halt-停止cpu运行的程序 loadbin-加载可执行的二进制文件 g-跳到代码段地址执行 s-单步执行(调试用) setpc-设置pc寄存器的值(调试用) setbp-设置断点 Regs-读寄存器组织 wreg-写寄存器 mem-读内存 w4-写内存 power off mmu
18、-关闭mmu,这个对于裸板调试很重要 w4 cpsr,0x0000001f-切换到系统模式 speed-设置jtag的传输速率 rce 0,c0,c0,0-设置cp15寄存器的第1个寄存器为0JLINK v8命令集Available commands are:有效的命令如下:(本人简单翻译了一下如有错误还请指出,谢谢各位网友)-f Firmware info(显示固件信息)h halt(暂停CPU)g go(运行)Sleep Waits the given time (in milliseconds). Syntax: Sleep (睡眠多少毫秒)s Single step the targe
19、t chip(单步调试目标芯片)st Show hardware status(显示硬件状态)hwinfo Show hardware info(显示硬件信息)mem Read memory. Syntax: mem , (hex)(读内存)mem8 Read 8-bit items. Syntax: mem8 , (hex)(读内存8字节)mem16 Read 16-bit items. Syntax: mem16 , (hex)mem32 Read 32-bit items. Syntax: mem32 , (hex)w1 Write 8-bit items. Syntax: w1 , (
20、hex)(写内存8字节)w2 Write 16-bit items. Syntax: w2 , (hex)(读内存16字节)w4 Write 32-bit items. Syntax: w4 , (hex)(读内存32字节)wm Write test words. Syntax: wm is Identify length of scan chain select registerms Measure length of scan chain. Syntax: ms mr Measure RTCK react time. Syntax: mrq Quit(推出)qc Close JLink c
21、onnection and quit(关闭jlink连接,并退出)r Reset target (RESET)(重启目标)rx Reset target (RESET). Syntax: rx (延时重启)RSetType Set the current reset type. Syntax: RSetType Regs Display contents of registers(显示寄存器信息)wreg Write register. Syntax: wreg , (写继承器)SetBP Set breakpoint. Syntax: SetBP A/T S/H(设置断点)SetWP Set
22、 Watchpoint. Syntax: R/W A-Mask(设置监视点)ClrBP Clear breakpoint. Syntax: ClrBP (清除断点)ClrWP Clear watchpoint. Syntax: ClrWP (清楚监视点)VCatch Write vector catch. Syntax: VCatch loadbin Load binary file into target memory.(下载bin文件到目标内存) Syntax: loadbin , savebin Saves target memory into binary file.(保存BIN文件)
23、 Syntax: savebin , , SetPC Set the PC to specified value. Syntax: SetPC (设置PC(r15)寄存器)le Change to little endian mode(设置成小端模式)be Change to big endian mode(设置成大端模式)log Enables log to file. Syntax: log unlock Unlocks a device. Syntax: unlock Type unlock without to get a list of supported device names.
24、 nRESET has to be connected- CP15 -rce Read CP15. Syntax: rce , , , (读CP15)wce Write CP15. Syntax: wce , , , , (写CP15)- ICE -Ice Show state of the embedded ice macrocell (ICE breaker)ri Read Ice reg. Syntax: ri (hex)wi Write Ice reg. Syntax: wi , (hex)- ETM -etm Show ETM statusre Read ETM reg. Synta
25、x: re we Write ETM reg. Syntax: we , (hex)es Start trace- ETB -etb Show ETB statusrb Read ETB register. Syntax: rb wb Write ETB register. Syntax: wb , (hex)- TRACE -TAddBranch TRACE - Add branch instruction to trace buffer. Paras:,TAddInst TRACE - Add (non-branch) instruction to trace buffer. Syntax
26、: TClear TRACE - Clear bufferTSetSize TRACE - Set Size of trace bufferTSetFormat TRACE - SetFormatTSR TRACE - Show Regions (and analyze trace buffer)TStart TRACE - StartTStop TRACE - Stop- SWO -SWOSpeed SWO - Show supported speedsSWOStart SWO - StartSWOStop SWO - StopSWOStat SWO - Display SWO status
27、SWORead SWO - Read and display SWO dataSWOShow SWO - Read and analyze SWO dataSWOFlush SWO - Flush data- File I/O -fwrite Write file to emulatorfread Read file from emulatorfshow Read and display file from emulatorfdelete Delete file on emulatorfsize Display size of file on emulator- Test -thg Run g
28、o/halt 1000 timests Run step 1000 timestestwspeed Test download speed. Syntax: testwspeed testrspeed Test upload speed. Syntax: testrspeed testcspeed Test CPU speed. Syntax: testcspeed - JTAG -Config Set number of IR/DR bits before ARM device. Syntax: Config , speed Set JTAG speed. Syntax: speed |au
29、to|adaptive, e.g. speed 2000,speed ai Read JTAG Id (Host CPU)wjc Write JTAG command (IR). Syntax: wjc (hex)wjd Write JTAG data (DR). Syntax: wjd (hex), (dec)RTAP Reset TAP Controller using state machine (111110)wjraw Write Raw JTAG data. Syntax: wjraw , , rt Reset TAP Controller (nTRST)- JTAG-Hardwa
30、re -c00 Create clock with TDI = TMS = 0c Clock0 Clear TDI1 Set TDIt0 Clear TMSt1 Set TMStrst0 Clear TRSTtrst1 Set TRSTr0 Clear RESETr1 Set RESET- Connection -usb Connect to J-Link via USB. Syntax: usb , where port is 0.3ip Connect to J-Link ARM Pro or J-Link TCP/IP Server via TCP/IP. Syntax: ip - Co
31、nfiguration -si Select target interface. Syntax: si , where 0=JTAG and 1=SWD.power Switch power supply for target. Syntax: power perm, where State is either On or Off. Example: power on permwconf Write configuration byte. Syntax: wconf , rconf Read configuration bytes. Syntax: rconfusbaddr Assign usb address to the connected J-Link
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论