系统相关
首页 > 系统相关> > OK6410A 开发板 (八) 81 linux-5.11 OK6410A JTAG调试

OK6410A 开发板 (八) 81 linux-5.11 OK6410A JTAG调试

作者:互联网

1. jlink 调试器
2. OK6410A 板子中 DBGSEL 接地
3. JLink_Windows
4. https://github.com/lisider/ok6410-rawcode/tree/master/bin 中的 1led.bin

过程

连接硬件
怎么连接就不用说了
打开软件
D:\ProgramFiles\ProgramFilesForSW\SEGGER\JLink\JLink.exe
操作后的现象为led4一直闪烁
操作流程如下
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: ARM11
Type '?' for selection dialog
Device>
Please specify target interface:
  J) JTAG (Default)
TIF>
Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect
JTAGConf>
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "ARM11" selected.


Connecting to target via JTAG
TotalIRLen = 9, IRPrint = 0x0011
JTAG chain detection found 2 devices:
 #0 Id: 0x2B900F0F, IRLen: 04, ARM ETB
 #1 Id: 0x07B76F0F, IRLen: 05, ARM1176 Core
ARM11 identified.
J-Link>h
PC: (R15) = 00000000, CPSR = 00000000 (Unknown mode, ARM)
Current:
     R0 =00000000, R1 =00000001, R2 =00000001, R3 =00000001
     R4 =5FE30C40, R5 =5FF6BE1C, R6 =00000001, R7 =00000000
USR: R8 =00000000, R9 =5FE2FEE0, R10=5FF6BE04, R11=5FF6BE10, R12=00001414
     R13=B34F105C, R14=B966F199
FIQ: R8 =891B2EB0, R9 =C095605F, R10=A701A8F0, R11=8F2A982C, R12=8B300263
     R13=B53C17B2, R14=67CBFBB6, SPSR=00000010
IRQ: R13=1E8754BA, R14=A1338D67, SPSR=00000010
SVC: R13=5FE2EF98, R14=5FF3C808, SPSR=00000010
ABT: R13=19AB6EF5, R14=199FD9E6, SPSR=00000010
UND: R13=F181AEF5, R14=BBF06AD6, SPSR=00000010
J-Link>loadbin E:\work\1led.bin 0x50000000
Downloading file [E:\work\1led.bin]...
O.K.
J-Link>SetPC  0x50000000
J-Link>g
J-Link>h
PC: (R15) = 50000054, CPSR = 20000010 (User mode, ARM)
Current:
     R0 =7F008824, R1 =00000008, R2 =00512FF3, R3 =00000001
     R4 =5FE30C40, R5 =5FF6BE1C, R6 =00000001, R7 =00000000
     R8 =00000000, R9 =5FE2FEE0, R10=5FF6BE04, R11=5FF6BE10, R12=00001414
     R13=B34F105C, R14=50000048
USR: R8 =00000000, R9 =5FE2FEE0, R10=5FF6BE04, R11=5FF6BE10, R12=00001414
     R13=B34F105C, R14=50000048
FIQ: R8 =891B2EB0, R9 =C095605F, R10=A701A8F0, R11=8F2A982C, R12=8B300263
     R13=B53C17B2, R14=67CBFBB6, SPSR=00000010
IRQ: R13=1E8754BA, R14=A1338D67, SPSR=00000010
SVC: R13=5FE2EF98, R14=5FF3C808, SPSR=00000010
ABT: R13=19AB6EF5, R14=199FD9E6, SPSR=00000010
UND: R13=F181AEF5, R14=BBF06AD6, SPSR=00000010

标签:R14,R13,00000000,00000001,00000010,SPSR,开发板,5.11,OK6410A
来源: https://blog.csdn.net/u011011827/article/details/118713517