配置J-Link为mini2440烧写bootloader

来源:互联网 发布:do178b 软件 编辑:程序博客网 时间:2024/05/16 11:21



177958603嵌入式开源开发






转载:http://blog.csdn.net/zhulizhen/article/details/4818463


                                     配置J-Link为mini2440烧写bootloader                                   

 

用J-Link其实不配置也能烧,只不过速度超慢

因为啥,因为不是在板子的内存里运行的。

 

初学者可能不会配置J-Flash,可以参考我的配置文件(慎用,烧BIOS容易出问题)。

【DownUrl】 J-Link烧写mini2440 BIOS配置文件

-----------------------------------------------------------------------------------------------------------------

自己配置的话,基本配置如下,主要是要参考光盘里带的init script,自己填入初始化选项中。

配置的主要过程如下:

菜单:[Options]-->[option settings]

1. Gneral : Connectioin to J-link --> USB : Device 0

2. Target Interface : 保持默认设置,不用动

3. CPU :

Core --> Auto, Little endian

Use target RAM(faster)-->Addr:40000000 64KB(主要是这个,不用的话就太慢了)

初始化序列(Init sequence)按下面的填,也是从H-Jtag的script扒出来的,我简单做了下注释。

##-------Action-----Value0------Value1
Setmem 32-Bit 0x53000000 0x00000000 ; pWTCON , 看门狗定时器控制寄存器
Setmem 32-Bit 0x4A000008 0xFFFFFFFF ; INTMSK , 中断屏蔽寄存器
Setmem 32-Bit 0x4A00001C 0x000007FF ; INTSUBMSK , 针对INTMAK具体化的一个中断请求屏蔽寄存器
Setmem 32-Bit 0x53000000 0x00000000 ; pWTCON , 看门狗定时器控制寄存器
Setmem 32-Bit 0x56000050 0x000055AA ; rGPFCON , Port F control
Setmem 32-Bit 0x4C000014 0x00000007 ; CLKDIVN , CPU时钟分频控制寄存器
Setmem 32-Bit 0x4C000000 0x00FFFFFF ; LOCKTIME , 锁时计数寄存器
Setmem 32-Bit 0x4C000004 0x00061012 ; MPLLCON , MPLL寄存器
Setmem 32-Bit 0x4C000008 0x00040042 ; UPLLCON , UPLL寄存器
Setmem 32-Bit 0x48000000 0x22111120 ; Bus width & wait status
Setmem 32-Bit 0x48000004 0x00002F50 ; Boot ROM control
Setmem 32-Bit 0x48000008 0x00000700 ; BANK1 control
Setmem 32-Bit 0x4800000C 0x00000700 ; BANK2 control
Setmem 32-Bit 0x48000010 0x00000700 ; BANK3 control
Setmem 32-Bit 0x48000014 0x00000700 ; BANK4 control
Setmem 32-Bit 0x48000018 0x0007FFFC ; BANK5 control
Setmem 32-Bit 0x4800001C 0x00018005 ; BANK6 control
Setmem 32-Bit 0x48000020 0x00018005 ; BANK7 control
Setmem 32-Bit 0x48000024 0x008E0459 ; DRAM/SDRAM refresh
Setmem 32-Bit 0x48000028 0x00000032 ; Flexible Bank Size
Setmem 32-Bit 0x4800002C 0x00000030 ; Mode register set for SDRAM
Setmem 32-Bit 0x48000030 0x00000030 ; Mode register set for SDRAM

4. Flash

取消"Automatically detect flash memory",然后"Select Flash Device"。

mini2440的Flash型号是:SST39VF1601,选中之后不要改写任何数值。

5. Production

Erase, Program and Verify enable.

原创粉丝点击