• mini2440使用jlink烧写superboot到norflash


    Jlink版本号:J-flash ARM V4.12                   

    J-Flash ARM的配置。


    一般说来file-->open project里面会找到一些*.jflash的配置文件,载入他们即可了,可是没找到适合S3C2440的。所以自己建了一个mini2440.jflash,手动进行配置:


    j-link设置
    1. 打开J-Flash ARM,并进入菜单:Options-->Project settings
    2.主要设置CPU选项和Flash选项
    CPU :
    Core --> ARM9, Little endian


    Use target RAM(faster)-->Addr:40000000 4KB(不选非常慢;从Nor flash启动时内部Boot SRAM的地址和大小,參考S3C2440A的芯片手冊)


    初始化序列(Init sequence)按以下的填。简单做了下凝视。


    ##-------Action-----Value0------Value1


    0)  Halt
    1)  Disable MMU
    2)  Write 32bit 0x53000000 0x00000000 ; pWTCON , 看门狗定时器控制寄存器
    3)  Write 32bit 0x4A000008 0xFFFFFFFF ; INTMSK , 中断屏蔽寄存器
    4)  Write 32bit 0x4A00001C 0x000007FF ; INTSUBMSK , 针对INTMAK详细化的一个中断请求屏蔽寄存器
    5)  Write 32bit 0x53000000 0x00000000 ; pWTCON , 看门狗定时器控制寄存器
    6)  Write 32bit 0x56000050 0x000055AA ; rGPFCON , Port F control
    7)  Write 32bit 0x4C000014 0x00000007 ; CLKDIVN , CPU时钟分频控制寄存器
    8)  Write 32bit 0x4C000000 0x00FFFFFF ; LOCKTIME , 锁时计数寄存器
    9)  Write 32bit 0x4C000004 0x00061012 ; MPLLCON , MPLL寄存器
    10) Write 32bit 0x4C000008 0x00040042 ; UPLLCON , UPLL寄存器
    11) Write 32bit 0x48000000 0x22111120 ; Bus width & wait status
    12)  Write 32bit 0x48000004 0x00002F50 ; Boot ROM control
    13)  Write 32bit 0x48000008 0x00000700 ; BANK1 control
    14) Write 32bit 0x4800000C 0x00000700 ; BANK2 control
    15) Write 32bit 0x48000010 0x00000700 ; BANK3 control
    16) Write 32bit 0x48000014 0x00000700 ; BANK4 control
    17) Write 32bit 0x48000018 0x0007FFFC ; BANK5 control
    18) Write 32bit 0x4800001C 0x00018005 ; BANK6 control
    19) Write 32bit 0x48000020 0x00018005 ; BANK7 control
    20) Write 32bit 0x48000024 0x008E0459 ; DRAM/SDRAM refresh
    21) Write 32bit 0x48000028 0x00000032 ; Flexible Bank Size
    22) Write 32bit 0x4800002C 0x00000030 ; Mode register set for SDRAM
    23) Write 32bit 0x48000030 0x00000030 ; Mode register set for SDRAM 


    3. Flash


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


    mini2440的Flash型号是:AM29LV160DB或SST39VF1601。选中之后不要改写不论什么数值。




    假设没有相应Flash型号,选中Automatically detect flash memory


    设置完毕.


    4. 烧写.bin文件(若二进制文件扩展名不是.bin改成xxx.bin即可)


    1)打开.bin文件(bootloader):File ->Open data file


    2)Target -> Connect


    3)Target ->Erase chip


    4)Target -> Program


    连接USB接口时必须把Jlink的线拔掉。否则minitools连接不上开发板

  • 相关阅读:
    C# 线程间互相通信
    COM组件的使用方法
    C++基于ATL工程编写ActiveX控件步骤
    VC++编写ActiveX控件
    C#协作试取消线程
    Asp.net的内置对象!!!
    C#的三大特性
    类的静态方法。。。。。
    页面的生命周期
    .net面试题 2016
  • 原文地址:https://www.cnblogs.com/llguanli/p/8608527.html
Copyright © 2020-2023  润新知