拿到HPM6750EVK2,使用jlink下载时,我原来用买jlink配的20转10转接板进行连接,下载程序里一直报不能连接到开发板。经过查找用手册后,找到了问题。
我的jlink的引脚图与之不对,之后只有用杜绑线进行跳线,终于解决了下载的问题:
Download Start Address: 0x80000400
C:\RT-ThreadStudio>"C:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link/v7.94g\JLink.exe" -device HPM6750xVMx -ExitOnError -CommanderScript C:\RT-ThreadStudio\workspace/.metadata/Temp/rtthread_download_init.jlink
SEGGER J-Link Commander V7.94g (Compiled Jan 24 2024 15:53:36)
DLL version V7.94g, compiled Jan 24 2024 15:52:26
J-Link Commander will now exit on Error
J-Link Command File read successfully.
Processing script file...
J-Link>si JTAG
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link V11 compiled Dec 4 2023 10:22:45
Hardware version: V11.00
J-Link uptime (since boot): 0d 00h 50m 52s
S/N: 601012352
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
USB speed mode: High speed (480 MBit/s)
VTref=3.315V
Selecting JTAG as current target interface.
J-Link>jtagconf -1 -1
J-Link>exec device=HPM6750xVMx
Device "HPM6750XVMX" selected.
J-Link>speed auto
Selecting auto as target interface speed
J-Link>r
Target connection not established yet but required for command.
Device "HPM6750XVMX" selected.
Connecting to target via JTAG
TotalIRLen = 5, IRPrint = 0x01
JTAG chain detection found 1 devices:
#0 Id: 0x1000563D, IRLen: 05, RV32
Debug architecture:
RISC-V debug: 0.13
AddrBits: 7
DataBits: 32
IdleClks: 7
Memory access:
Via system bus: Yes (8/16/32-bit accesses are supported)
Via ProgBuf: Yes (8 ProgBuf entries)
Via abstract command (AAM): May be tried as last resort
DataBuf: 4 entries
autoexec[0] implemented: Yes
Detected: RV32 core
RISC-V: The connected J-Link (S/N 601012352) uses an old firmware module V0 with known problems / limitations.
Temp. halting CPU for for feature detection...
HW instruction/data BPs: 2
Support set/clr BPs while running: No
HW data BPs trigger before execution of inst
CSR access via abs. commands: Yes
Compressed instruction support: Yes
Feature detection done. Restarting core...
BG memory access support: Via SBA
Memory zones:
Zone: "Default" Description: Default access mode
RISC-V identified.
Reset delay: 0 ms
Reset type Normal: Resets core & peripherals using bit in debug register.
RISC-V: Performing reset via
J-Link>h
pc = 80003000 sp = 000BFA10 ra = 200165CA
gp = 000B9800 tp = 00000000 fp = 80003000
t0 = 20001932 t1 = 0000000F t2 = 00100000
t3 = 0000271A t4 = 010BACB8 t5 = 0003ACB8 t6 = 010BF9E0
a0 = 000BD9FC a1 = 00000000 a2 = 00010000 a3 = F40CC000
a4 = F4002000 a5 = 00000001 a6 = 00000008 a7 = 00000004
s1 = 000BCC48 s2 = 000BAC48 s3 = 000BAC48 s4 = B000F0F0
s5 = 2001E9C0 s6 = 00000000 s7 = 2001F000 s8 = 00000001
s9 = 000BD9FC s10 = 000BAD48 s11 = 00000001
J-Link>loadbin "C:\RT-ThreadStudio\workspace\testHPM6750\flash_debug\rtthread.bin" 0x80000400
'loadbin': Performing implicit reset & halt of MCU.
RISC-V: Performing reset via
Downloading file [C:\RT-ThreadStudio\workspace\testHPM6750\flash_debug\rtthread.bin]...
J-Link: Flash download: Bank 0 @ 0x80000000: 1 range affected (32768 bytes)
J-Link: Flash download: Total: 3.117s (Prepare: 1.122s, Compare: 0.778s, Erase: 0.231s, Program: 0.630s, Verify: 0.097s, Restore: 0.256s)
J-Link: Flash download: Program speed: 51 KB/s
O.K.
J-Link>setpc 0x80000400
J-Link>r
Reset delay: 0 ms
Reset type Normal: Resets core & peripherals using bit in debug register.
RISC-V: Performing reset via
J-Link>g
Memory map 'after startup completion point' is active
J-Link>q
Script processing completed.
执行完毕, 耗时:7006ms.
【总结】原来的开发板是用20PIN的插座,现在改为10PIN,转接起来有点麻烦。
|