烧写U-boot遇到了很多问题,在自己坚持不懈的努力下终于把问题都解决了,全是自己的总结,希望对新手带来帮助。
遇到的问题:我在使用Jlink V8调试FL2440时,setpc 0命令执行时,总是显示“CPU is not halted !”
|
SEGGER J-Link Commander V4.08l ('?' for help)
Compiled Sep 17 2009 09:42:18
DLL version V4.08l,compiled Sep 17 2009 09:41:55
Firmware: J-Link ARM V8 compiled Dec??1 2009 11:42:48
Hardware: V8.00
S/N : 20100214
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull
VTarget = 3.248V
Info: TotalIRLen = 4,IRPrint = 0x01
Info: CP15.0.0: 0x41129200: ARM,Architecure 4T
Info: CP15.0.1: 0x0D172172: ICache: 16kB (64*8*32),DCache: 16kB (64*8*32)
Info: Cache type: Separate,Write-back,Format A
Found 1 JTAG device,Total IRLen = 4:
#0 Id: 0x0032409D,IRLen:??4,Unknown device
Found ARM with core Id 0x0032409D (ARM9)
JTAG speed: 5 kHz
J-Link>speed 12000
JTAG speed: 12000 kHz
J-Link>loadbin C:linuxfl2440init.bin 0
Loading binary file... [C:linuxfl2440init.bin]
Writing bin data into target memory @ 0x00000000.
J-Link>setpc 0
CPU is not halted !
解决方法:原来是J-link软件版本的问题,使用Setup_JLinkARM_V410i.zip就好了。上面的使用的是Setup_JLink v8 ARM_V408l.zip出错。
具体怎么烧写在下文中会详细介绍。