RT-Thread Studio调试错误 Unknown command line option -ExitOnError.

开始下载程序:2019-12-25 20:53:28
C:\RT-ThreadStudio>"C:/Program Files (x86)/SEGGER/JLinkARM_V458a/JLink.exe" -device STM32F103VE -ExitOnError -CommanderScript C:\RT-ThreadStudio\workspace/.metadata/Temp/rtthread_download_init.jlink 
SEGGER J-Link Commander V4.58a ('?' for help)
Compiled Dec  5 2012 18:38:27
Unknown command line option -ExitOnError.
执行完毕, 耗时:3132ms.

因为博主用的是的jlink版本是JLinkARM_V458a,5.0以前不支持ExitOnError指令,可以重新安装一个高版本的Jlink驱动,也可以使用RT-Thread Studio自带的驱动。
在这里插入图片描述
换成RT-Thread Studio自带的驱动:
在这里插入图片描述

下载成功:

开始下载程序:2019-12-25 21:05:03
C:\RT-ThreadStudio>"C:\RT-ThreadStudio\platform\SEGGER\JLink_V630i\JLink.exe" -device STM32F103VE -ExitOnError -CommanderScript C:\RT-ThreadStudio\workspace/.metadata/Temp/rtthread_download_init.jlink 
SEGGER J-Link Commander V6.30i (Compiled Mar 23 2018 18:14:43)
DLL version V6.30i, compiled Mar 23 2018 18:14:24
J-Link Commander will now exit on Error
Script file read successfully.
Processing script file...
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link V9 compiled Jun  2 2222 22:22:22
Hardware version: V9.40
S/N: 59401308
License(s): GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
VTref = 3.343V
Selecting SWD as current target interface.
Device "STM32F103VE" selected.
Selecting 1000 kHz as target interface speed
Target connection not established yet but required for command.
Device "STM32F103VE" selected.
Connecting to target via SWD
Found SW-DP with ID 0x1BA01477
Found SW-DP with ID 0x1BA01477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x14770011)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x411FC231. Implementer code: 0x41 (ARM)
Found Cortex-M3 r1p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 001BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 001BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 001BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 001BB923 TPIU-Lite
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 101BB924 ETM-M3
Cortex-M3 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
PC = FFFFFFFE, CycleCnt = 00000000
R0 = FFFFFFFC, R1 = FFFFFFFF, R2 = 6CCAAC10, R3 = 274F41AF
R4 = 7FEFFFFF, R5 = FFBFFFFF, R6 = 1BB5CA50, R7 = 3BA0B3D3
R8 = FFEFFFFD, R9 = FFFFFFFD, R10= 4EDD2FEB, R11= 27E8ECAE
R12= FFA7F7FF
SP(R13)= FFFFFFFC, MSP= FFFFFFFC, PSP= FBBD6D78, R14(LR) = FFFFFFFF
XPSR = 01000000: APSR = nzcvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
Downloading file [C:\RT-ThreadStudio\workspace\test\Debug\rtthread.bin]...
J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (51200 bytes)
J-Link: Flash download: Total time needed: 1.610s (Prepare: 0.079s, Compare: 0.021s, Erase: 0.000s, Program: 1.489s, Verify: 0.008s, Restore: 0.012s)
O.K.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Script processing completed.
执行完毕, 耗时:6659ms.
发布了323 篇原创文章 · 获赞 63 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/qq_27508477/article/details/103705672