使用J-Link燒寫HI3518步驟,AS follow:
1.連接好J-Link和串口
2、進入J-Link conmmander,輸入r,可以看到如下信息:
SEGGER J-Link Commander V4.26b ('?' for help)Compiled May 20 2011 17:18:29
DLL version V4.26b, compiled May 20 2011 17:18:15
Firmware: J-Link ARM V8 compiled Sep 22 2011 16:23:23
Hardware: V8.00
S/N: 68000020
Feature(s): RDI, FlashDL, FlashBP, JFlash, GDBFull
VTarget = 3.364V
Info: TotalIRLen = 4, IRPrint = 0x01
Info: CP15.0.0: 0x41069265: ARM, Architecure 5TEJ
Info: CP15.0.1: 0x1D152152: ICache: 16kB (4*128*32), DCache: 16kB (4*128*32)
Info: Cache type: Separate, Write-back, Format C (WT supported)
Found 1 JTAG device, Total IRLen = 4:
#0 Id: 0x07926477, IRLen: 04, IRPrint: 0x1, ARM926EJ-S Core (ARM)
Found ARM with core Id 0x07926477 (ARM9)
JTAG speed: 100 kHz
3、設置jlink速度
J-Link>speed 20000kJTAG speed: 12000 kHz
J-Link>rce 0 9 1 1 回車查看這個寄存器的值
J-Link>wce 0 9 1 1 d 回車看寄存器的值變0x0000000D沒
4、首先用初始化代碼初始化內存(建議將log文件裏面的命令拷貝出來一條條執行)
J-Link>loadbin g:\3518\uboot_tools\3518a.log 0
####注意:3518a.log 是我由原來的3518a.log改寫的binary文件,如果使用海思給的log文件,把裏面的命令敲進去就行了
Loading binary file... [g:\3518\uboot_tools\3518a.log]
Writing bin data into target memory @ 0x00000000.
5、設置pc指針
J-Link>setpc 0
6、執行
J-Link>go
7、加載uboot.bin
J-Link>loadbin g:\3518\uboot_tools\3518a.bin 0x80800000Loading binary file... [g:\3518\uboot_tools\3518a.bin]
Writing bin data into target memory @ 0x80800000.
8、設置uboot執行地址
J-Link>setpc 0xXXXX XXXX9、執行
J-Link>go
這時,如果順利,在串口可以看到相應的uboot打印信息。
其實,利用jlink也是可以應對批量生產的,半分鐘之內可以燒錄好一塊板子,包括uboot、os、fs。只是在jlink硬件接線的時候不要把地線去掉、拉太長了。
燒錄器購買鏈接:
http://item.taobao.com/item.htm?spm=686.1000925.1000774.13.R43kFb&id=38550248114
海思的Hi3507、Hi3512、Hi3515、Hi3518、Hi3516C使用jlink燒錄會略有不同。
轉載請註明出處,謝謝!