历史上的今天
今天是:2024年09月02日(星期一)
2019年09月02日 | STM32开发 -- Jlink常用命令
2019-09-02 来源:eefocus
h
speed 4000
device = STM32F429ZI
erase
loadbin BOOT.bin 0x8000000
loadbin 正式版本.bin 0x08004000
loadbin 工厂测试.bin 0x08020000
savebin 工厂生产.bin 0x08000000 0x00080000
rx 3
qc
exit
一直在用这个脚本烧写程序,但是,细细一看有点懵。
里面 h,rx 3,qc 等的含义不太清楚。
接下来详细总结一下,Jlink都还有哪些常用的命令。
一、查看jlink命令
使用的jlink版本如下图:

jlink命令:
J-Link>?
Available commands are:
----------------------
f Firmware info(固件信息)
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 info(显示硬件信息) mem Read memory. Syntax: mem mem8 Read 8-bit items. Syntax: mem8 mem16 Read 16-bit items. Syntax: mem16 mem32 Read 32-bit items. Syntax: mem32 w1 Write 8-bit items. Syntax: w1 w2 Write 16-bit items. Syntax: w2 w4 Write 32-bit items. Syntax: w4 erase Erase internal flash of selected device. Syntax: Erase(擦除) wm Write test words. Syntax: wm is Identify length of scan chain select register(确定扫描链选择寄存器的长度) ms Measure length of scan chain. Syntax: ms mr Measure RTCK react time. Syntax: mr(测量RTCK反应时间) q Quit(退出) qc Close JLink connection 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 moe Shows mode-of-entry, meaning: Reason why CPU is halted(显示输入模式,表示:CPU停止的原因) SetBP Set breakpoint. Syntax: SetBP SetWP Set Watchpoint. Syntax: ClrBP Clear breakpoint. Syntax: ClrBP ClrWP Clear watchpoint. Syntax: ClrWP VCatch Write vector catch. Syntax: VCatch loadbin Load binary file into target memory.(将二进制文件加载到目标内存中) Syntax: loadbin savebin Saves target memory into binary file. Syntax: savebin verifybin Verfies if the specified binary is already in the target memory at th(验证指定的二进制文件是否已在目标内存中) e specified address. Syntax: verifybin SetPC Set the PC to specified value. Syntax: SetPC 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 of supported device names. nRESET has to be connected term Test command to visualize printf output from the target device, using DCC (SEGGER DCC handler running on target)(测试命令以可视化目标设备的printf输出,使用DCC(在目标上运行的SEGGER DCC处理程序)) ReadAP Reads a CoreSight AP register.(读取CoreSight AP寄存器) Note: First read returns the data of the previous read. An additional read of DP reg 3 is necessary to get the data. ReadDP Reads a CoreSight DP register.(读取CoreSight DP寄存器) Note: For SWD data is returned immediately. For JTAG the data of the previous read is returned. An additional read of DP reg 3 is necessary to get the data. WriteAP Writes a CoreSight AP register.(写入CoreSight AP寄存器) WriteDP Writes a CoreSight DP register.(写入CoreSight DP寄存器) SWDSelect Selects SWD as interface and outputs the JTAG -> SWD swichting sequence.(选择SWD作为接口和输出JTAG - > SWD切换序列) SWDReadAP Reads a CoreSight AP register via SWD.(通过SWD读取CoreSight AP寄存器) Note: First read returns the data of the previous read. An additional read of DP reg 3 is necessary to get the data. SWDReadDP Reads a CoreSight DP register via SWD.(通过SWD读取CoreSight DP寄存器) Note: Correct data is returned immediately. SWDWriteAP Writes a CoreSight AP register via SWD.(通过SWD写入CoreSight AP寄存器) SWDWriteDP Writes a CoreSight DP register via SWD.(通过SWD写入CoreSight DP寄存器) Device Selects a specific device J-Link shall connect to and performs a reconnect. In most cases explicit selection of the device is not necessary. Selecting a device enables the user to make use of the J-Link flash programming functionality as well as using unlimited breakpoints in flash memory. For some devices explicit device selection is mandatory in order to allow the DLL to perform special handling needed by the device. (设备选择J-Link应连接的特定设备 并执行重新连接。 在大多数情况下,不需要明确选择设备。 选择设备使用户可以使用J-Link 闪存编程功能以及使用无限制 闪存中的断点。 对于某些设备,必须按顺序显式设备选择 允许DLL执行设备所需的特殊处理。) ExpDevList Exports the device names from the DLL internal device list to a text file Syntax: ExpDevList PowerTrace Perform power trace (not supported by all models)(执行电源跟踪(并非所有型号都支持)) Syntax: PowerTrace 1: Number of bytes transmitted on SWO ---- CP15 ------------ rce Read CP15. Syntax: rce wce Write CP15. Syntax: wce ---- ICE ------------- Ice Show state of the embedded ice macrocell (ICE breaker)(显示嵌入式ice宏单元(ICE断路器)的状态) ri Read Ice reg. Syntax: ri wi Write Ice reg. Syntax: wi ---- TRACE ----------- TAddBranch TRACE - Add branch instruction to trace buffer. Paras: TAddInst TRACE - Add (non-branch) instruction to trace buffer. Syntax: TClear TRACE - Clear buffer(清除缓冲区) TSetSize TRACE - Set Size of trace buffer(设置跟踪缓冲区的大小) TSetFormat TRACE - SetFormat(设置格式) TSR TRACE - Show Regions (and analyze trace buffer)(显示区域(并分析跟踪缓冲区)) TStart TRACE - Start(开始) TStop TRACE - Stop(停止) ---- SWO ------------- SWOSpeed SWO - Show supported speeds(显示支持的速度) SWOStart SWO - Start(开始) SWOStop SWO - Stop(停止) SWOStat SWO - Display SWO status(显示SWO状态) SWORead SWO - Read and display SWO data(读取和显示SWO数据) SWOShow SWO - Read and analyze SWO data(读取和分析SWO数据) SWOFlush SWO - Flush data(刷新数据) SWOView SWO - View terminal data(查看终端数据) ---- PERIODIC -------- PERConf PERIODIC - Configure(配置) PERStart PERIODIC - Start(开始) PERStop PERIODIC - Stop(停止) PERStat PERIODIC - Display status(显示状态) PERRead PERIODIC - Read and display data(读取和显示数据) PERShow PERIODIC - Read and analyze data(读取和分析数据)
下一篇:STM32开发 -- 系统架构
史海拾趣
|
如题:安装了Wince(5.0)的主机,网线与局域网其它计算机连通,都能想互ping通对方。请问如何好其它计算机(XP与2003)交换文件,试了试靠文件共享好像不行哦。… 查看全部问答> |
|
在PC上接入多个相同的usb设备,第二个设备提示安装驱动,为什么? 我在PC上接入两个相同的usb设备,通常usb端口可以提供500ma的电流,我接的设备耗电都小于这个值,但是在接入第二个设备时,总是提示安装驱动,或者干脆无法识别。 我在同事的新机箱上试验,他的机器可以,但是我的不行,不知道这种现象除了更换机 ...… 查看全部问答> |
|
程序运行在SVC模式,突然发生了IRQ,会发生什么事情? (1)CPU会自动把CPSR保存到SPSR_IRQ中 (2)然后把PC保存到R14_IRQ (3)然后把CPSR中的模式位强制设置为IRQ模式 (4)然后把PC强制设置为0x18 我理解的对么? 那么,IRQ处理程序怎么写,是不是要完 ...… 查看全部问答> |
|
如何使STM32进行USB传输时提高传输速度?还请大家不吝赐教啊 最近一直在学习USB,总算是稍微有点懂了。现在自己写的PC端USB驱动程序和应用程序终于可以成功实现STM32的BULK /INT传输和有数据/无数据传输控制请求等功能(STM32固件的程序我是用STM32 USB开发工具包中的 ...… 查看全部问答> |
|
各位坛友,我使用UART时,设置了FIFO接收中断深度,同时使能接收超时中断。请问,这个接收超时中断是什么情况下触发的?手册上有这样一句话,“当接收FIFO不为空时接收超时中断有效”。我做了一块modbus主机板,没接从机的时候,也就没有接收,这个 ...… 查看全部问答> |




