⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ram.ini

📁 keil 环境下44B0X调试模板
💻 INI
字号:
/******************************************************************************/
/* 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-2008 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 SetupForStart (void) 
{
	// <o> Program Entry Point
 	PC = 0x0c000000;
}


FUNC void Init (void) {
  _WDWORD(0x01D30000, 0x00000000);     // WTCON:  Disable Watchdog
  _WDWORD(0x01C00000, 0x00000001);     // SYSCFG: Disable Cache	 
  _WDWORD(0x01E0000C, 0x07ffffff);      // 关闭所有中断

  _WDWORD(0x01D30000, 0x00000000);       // 关闭看门狗
  _WDWORD(0x01D8000C, 0x800);      	  	// LOCKTIME	   

  _WDWORD(0x01D80000, 0x048032);      	// PLLCON
  _WDWORD(0x01D80004, 0x7ff8);      	// CLKCON	   
                                        // Memory Controller Setup for SDRAM
  _WDWORD(0x01c80000, 0x11110090);      // BWSCON
  _WDWORD(0x01c80004, 0x0600);      	// BANK0
  _WDWORD(0x01c80008, 0x7ffc);      	// BANK1
  _WDWORD(0x01c8000C, 0x7ffc);      	// BANK2
  _WDWORD(0x01c80010, 0x7ffc);      	// BANK3
  _WDWORD(0x01c80014, 0x7ffc);      	// BANK4
  _WDWORD(0x01c80018, 0x7ffc);      	// BANK5
  _WDWORD(0x01c8001C, 0x18000);      	// BANK6
  _WDWORD(0x01c80020, 0x18000);      	// BANK7
  _WDWORD(0x01c80024, 0x820591);      	// REFESH
  _WDWORD(0x01c80028, 0x16);      		// BANKSIZE
  _WDWORD(0x01c8002C, 0x20);      		// REFESH
  _WDWORD(0x01c80030, 0x20);      		// BANKSIZE
}


// Reset chip with watchdog, because nRST line is routed on hardware in a way 
// that it can not be pulled low with ULINK
	CPSR = 0x000000D3;                      // Disable interrupts
//PC   = 0x0C000000;                      // Position PC to start of RAM
//    map 0x01c00000, 0x02000000 read write //二〇〇八年九月七日
	Init();                                 // Initialize memory
	LOAD Flash\MYpROJECT.axf INCREMENTAL         // Download program
	SetupForStart();                        // Setup for Running

	g,main;								// Goto Main

⌨️ 快捷键说明

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