Jlink + IAR调试时下载速度上不去呀,基本都是110KB/S,代码大点的话就有点慢呀~~~
不知有无改进的可能?哪里改改设置?
下面是直接用Jlink测到的速度,IAR下载速度跟之一致。
J-Link>device am3359
Info: Device "AM3359" selected (0 KB flash, 0 KB RAM).
Reconnecting to target…
Info: TotalIRLen = 6, IRPrint = 0x01
Info: TotalIRLen = 10, IRPrint = 0x0011
Info: ARM AP[0]: 0x04770001, AHB-AP
Info: ARM AP[1]: 0x04770002, APB-AP
Info: ARM AP[2]: 0x04760000, JTAG-AP
Info: Found Cortex-A8 r3p2
Info: 6 code breakpoints, 2 data breakpoints
Info: Data endian: little
Info: Main ID register: 0x413FC082
Info: L1 (I-cache): 32 KB, 128 sets, LineSize 64 bytes, 4-way
Info: L1 (D-cache): 32 KB, 128 sets, LineSize 64 bytes, 4-way
Info: L2 (unified cache): 0 KB, 1 sets, LineSize 256 bytes, 1-way
Info: System control register:
Info: Instruction endian: little
Info: Level-1 instruction cache enabled
Info: Level-1 data cache enabled
Info: MMU enabled
Info: Branch prediction enabled
J-Link>speed 1000
Target interface speed: 1000 kHz
J-Link>testwspeed 0x402F0400 0x00019000
Speed test: Writing 8 * 100kb into memory @ address 0x402F0400 ……..
100 kByte written in 1568ms ! (65.3 KByte/sec)
J-Link>speed 2000
Target interface speed: 2000 kHz
J-Link>testwspeed 0x402F0400 0x00019000
Speed test: Writing 8 * 100kb into memory @ address 0x402F0400 ……..
100 kByte written in 912ms ! (112.3 KByte/sec)
J-Link>speed 8000
Target interface speed: 8000 kHz
J-Link>testwspeed 0x402F0400 0x00019000
Speed test: Writing 8 * 100kb into memory @ address 0x402F0400 ……..
100 kByte written in 910ms ! (112.5 KByte/sec)
J-Link>speed 12000
Target interface speed: 12000 kHz
J-Link>testwspeed 0x402F0400 0x00019000
Speed test: Writing 8 * 100kb into memory @ address 0x402F0400 ……..
100 kByte written in 912ms ! (112.3 KByte/sec)
J-Link>testRspeed 0x402F0400 0x00019000
Speed test: Reading 8 * 100kb from address 0x402F0400 ……..
100 kByte read in 1064ms ! (96.2 KByte/sec)
J-Link>
Jian Zhou:
我认为Jlink的速度可能就是相对慢一些。
TI的560v2是最快的,xds100也比较慢,您有没有TI这集中仿真器,可以做个对比
Yaoming Qin:
你这个的确比较慢了,理论上的值应该可以达到M级别,一方面检查下你用的usb线等,质量是否好,以及PC 的USB 口是否是2.0的。另一方面,我记得IAR可以配置下载的速度的,在配置jlink 的地方。
YanChang Liang:
回复 Yaoming Qin:
IAR里可以对Jlink的JTAG时钟做设置,于是我设置成了12M,结果得到的速度也就110KB/S。
USB是2.0,有谁能做一下类似的测试?
Lingbo Xu:
回复 YanChang Liang:
110K BYTE已经很快了。你用过XDS100V2吗?生不如死的速度!
YanChang Liang:
回复 Lingbo Xu:
也许你觉得100K/s是挺快的,但如果你调试的镜像是个2MB+的文件时,就知道100K/S,意味着每次修改下载后要等20秒才能调试,开发效率很低下呀~~~
另外今天用示波器看了TCK的波形,
Speed 2000
speed 4000
speed 10000
这些都测到TCK周期是563ns,也就是2000K,因此可以认为是Jlink固件限制了速度只能到2000K吧。