debuginexdram.ini

来自「实现最新的uc/os嵌入式操作系统在LPC2470系列上面的移植(添加了定时器的」· INI 代码 · 共 61 行

INI
61
字号
/******************************************************************************/
/* Ext_RAM.INI: External RAM (SDRAM) Initialization File                      */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>>                           // 
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2006 Keil Software. All rights reserved.                */
/* This software may only be used under the terms of a valid, current,        */
/* end user licence from KEIL for a compatible version of KEIL software       */
/* development tools. Nothing else gives you the right to use this software.  */
/******************************************************************************/
 FUNC void SDRAMInit (void){

_WDWORD(0xE002C010 ,0x50000000);
_WDWORD(0xE002C010 ,0x50000000);
_WDWORD(0xE002C014 ,0x05050555);
_WDWORD(0xE002C018 ,0x55555555);
_WDWORD(0xE002C020 ,0x55555555);
_WDWORD(0xE002C024 ,0x50555555);

_WDWORD(0xFFE08000 ,0x00000001);
_WDWORD(0xFFE08030 ,0x00000001);
_WDWORD(0xFFE08034 ,0x00000003);
_WDWORD(0xFFE08038 ,0x00000001);
_WDWORD(0xFFE0803c ,0x00000001);
_WDWORD(0xFFE08040 ,0x00000005);
_WDWORD(0xFFE08044 ,0x00000002);
_WDWORD(0xFFE08048 ,0x00000003);
_WDWORD(0xFFE0804c ,0x00000003);
_WDWORD(0xFFE08050 ,0x00000005);
_WDWORD(0xFFE08054 ,0x00000001);
_WDWORD(0xFFE08058 ,0x00000002);

_WDWORD( 0xFFE08028 ,0x00000001);
_WDWORD (0xFFE08104 ,0x00000303);
_WDWORD (0xFFE08100, 0x00000680 );
_WDWORD( 0xFFE08020, 0x00000183 );
_RDWORD(0x40000000);
_WDWORD( 0xFFE08020, 0x00000103 );
_RDWORD(0x40000000);
_WDWORD(  0xFFE08024, 0x00000002  ); 
_RDWORD(0x40000000);
_WDWORD(  0xFFE08024, 0x0000001C );
_WDWORD(  0xFFE08020, 0x00000083  );
_RDWORD(0xA0033000);
_WDWORD(  0xFFE08020, 0x00000000  );
_WDWORD(  0xFFE08100, 0x00080680  );
_RDWORD(0x40000000);

 // <o> Program Entry Point
  PC = 0xA0000000;
 }

//CLKInit();
SDRAMInit();                                // SDRAM init.
PC = 0xA0000000;
//MAP  0x40000000, 0x4000003F  READ WRITE EXEC
LOAD .\output\keil_test.axf INCREMENTAL // Download

//g, ResetInit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?