全部博文(333)
分类: LINUX
2011-09-27 11:21:00
H-JTAG的最新版本以加入对nand flash的烧写支持,首先到下载安装最新版本的hjtag。(硬件为mini2440(256M)+ jtag小板,跳线开关拨至nandflash)
一,配置H-JTAGserver
(1)Settings->USB/LPT Selection
(2)Settings->LPT JTAG setting
(3)使用开发板附带的 JTAG 小板连接开发板的 JTAG 接口,并接上打开电源。点主菜单
Operations->Detect Target
二,程序烧写
(1)打开H-Flasher,选择flash型号(Flash Selection)
(2)configuration
(3)Init scripts,分别输入以下各行:
SoftReset
Setmem+32-Bit+0x53000000+0x00000000
Setmem+32-Bit+0x4A000008+0xFFFFFFFF
Setmem+32-Bit+0x4A00001C+0x000007FF
Setmem+32-Bit+0x53000000+0x00000000
Setmem+32-Bit+0x56000050+0x000055AA
Setmem+32-Bit+0x4C000014+0x00000007
Setmem+32-Bit+0x4C000000+0x00FFFFFF
Setmem+32-Bit+0x4C000004+0x00061012
Setmem+32-Bit+0x4C000008+0x00040042
Setmem+32-Bit+0x48000000+0x22111120
Setmem+32-Bit+0x48000004+0x00002F50
Setmem+32-Bit+0x48000008+0x00000700
Setmem+32-Bit+0x4800000C+0x00000700
Setmem+32-Bit+0x48000010+0x00000700
Setmem+32-Bit+0x48000014+0x00000700
Setmem+32-Bit+0x48000018+0x0007FFFC
Setmem+32-Bit+0x4800001C+0x00018005
Setmem+32-Bit+0x48000020+0x00018005
Setmem+32-Bit+0x48000024+0x008E0459
Setmem+32-Bit+0x48000028+0x00000032
Setmem+32-Bit+0x4800002C+0x00000030
Setmem+32-Bit+0x48000030+0x00000030
如图示:
(4)programming
点击check键,如果配置正确,应该出现flash 和 target信息,如图:
其他配置选项请参考..\H-JTAG\DOC\H-JTAG USER MANUAL (CN).pdf。完成配置即可烧写对应的nandflash。
转载:http://hi.baidu.com/ouc3881/blog/item/f1887db0b08c13a8d8335af0.html