JLINK+ADS+mini2440配置
配置J-Link为mini2440烧写bootloader 收藏
使用ADS1.2的时候进入AXD调试环境回出现“ the session file could not be loaded”
解决方案:1:将工程文件放在不包含中文路径的目录下。
2:设置AXD->confing Interface 中general中的save and load default session前面的选项去掉。
一:在AXD->options ->configure interface 中的session file 中载入初始化文件,具体内如如下:
Setmem 0×53000000 0×00000000 32
Setmem 0x4A000008 0xFFFFFFFF 32
Setmem 0x4A00001C 0x000007FF 32
Setmem 0×53000000 0×00000000 32
Setmem 0×56000050 0x000055AA 32
Setmem 0x4C000014 0×00000007 32
Setmem 0x4C000000 0x00FFFFFF 32
Setmem 0x4C000004 0×00061012 32
Setmem 0x4C000008 0×00040042 32
Setmem 0×48000000 0×22111120 32
Setmem 0×48000004 0x00002F50 32
Setmem 0×48000008 0×00000700 32
Setmem 0x4800000C 0×00000700 32
Setmem 0×48000010 0×00000700 32
Setmem 0×48000014 0×00000700 32
Setmem 0×48000018 0x0007FFFC 32
Setmem 0x4800001C 0×00018005 32
Setmem 0×48000020 0×00018005 32
Setmem 0×48000024 0x008E0459 32
Setmem 0×48000028 0×00000032 32
Setmem 0x4800002C 0×00000030 32
Setmem 0×48000030 0×00000030 32
二:在AXD –〉options -〉configurate processor 把semihosting上的选项去掉 点击clear all.
三:第一次使用ADS时需要在AXD中配置J-LINK,在AXD>OPTION>CONFIGURE TARGET里选择J-LING的安装目录下的JLinkRDI.dll,然后点击CONFIGURE配置,将芯片的复位时间选为2000ms即可正常调试.
#########################################################################
配置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 0×53000000 0×00000000 ; pWTCON , 看门狗定时器控制寄存器
Setmem 32-Bit 0x4A000008 0xFFFFFFFF ; INTMSK , 中断屏蔽寄存器
Setmem 32-Bit 0x4A00001C 0x000007FF ; INTSUBMSK , 针对INTMAK具体化的一个中断请求屏蔽寄存器
Setmem 32-Bit 0×53000000 0×00000000 ; pWTCON , 看门狗定时器控制寄存器
Setmem 32-Bit 0×56000050 0x000055AA ; rGPFCON , Port F control
Setmem 32-Bit 0x4C000014 0×00000007 ; CLKDIVN , CPU时钟分频控制寄存器
Setmem 32-Bit 0x4C000000 0x00FFFFFF ; LOCKTIME , 锁时计数寄存器
Setmem 32-Bit 0x4C000004 0×00061012 ; MPLLCON , MPLL寄存器
Setmem 32-Bit 0x4C000008 0×00040042 ; UPLLCON , UPLL寄存器
Setmem 32-Bit 0×48000000 0×22111120 ; Bus width & wait status
Setmem 32-Bit 0×48000004 0x00002F50 ; Boot ROM control
Setmem 32-Bit 0×48000008 0×00000700 ; BANK1 control
Setmem 32-Bit 0x4800000C 0×00000700 ; BANK2 control
Setmem 32-Bit 0×48000010 0×00000700 ; BANK3 control
Setmem 32-Bit 0×48000014 0×00000700 ; BANK4 control
Setmem 32-Bit 0×48000018 0x0007FFFC ; BANK5 control
Setmem 32-Bit 0x4800001C 0×00018005 ; BANK6 control
Setmem 32-Bit 0×48000020 0×00018005 ; BANK7 control
Setmem 32-Bit 0×48000024 0x008E0459 ; DRAM/SDRAM refresh
Setmem 32-Bit 0×48000028 0×00000032 ; Flexible Bank Size
Setmem 32-Bit 0x4800002C 0×00000030 ; Mode register set for SDRAM
Setmem 32-Bit 0×48000030 0×00000030 ; Mode register set for SDRAM
4. Flash
取消”Automatically detect flash memory”,然后”Select Flash Device”。
mini2440的Flash型号是:SST39VF1601,选中之后不要改写任何数值。
5. Production
Erase, Program and Verify enable.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zhulizhen/archive/2009/11/16/4818463.aspx