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

📄 hjtag-flash.ini

📁 keil 下的ucOS移植程序。移植平台AT91SAM7S64.
💻 INI
字号:
/******************************************************************************/
/* ROM.INI: RAM 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 Setup (void) {
// <o> Program Entry Point
  PC = 0x00000000;
}

FUNC void Remap (unsigned int remap)
{
	unsigned int addr;
	unsigned int v0, v1;
	
	addr = 0x00000014;
	v0 = _RDWORD(addr);
	_WDWORD(addr, v0 + 1);
	v1 = _RDWORD(addr);
	
	if (v0 == v1)
	{	// is FLASH
		if (remap)
			_WDWORD(0xFFFFFF00, 1);
	}
	else
	{	// is RAM
		// restore the original value
		_WDWORD(addr, v0);
		
		if (!remap)
			_WDWORD(0xFFFFFF00, 1);
		
	}
	
}

_WDWORD(0xFFFFFD44, 0x00008000);     // WDT_WDMR: Disable Watchdog

// Switching from Slow Clock to Main Oscillator for faster Download
_WDWORD(0xFFFFFC20, 0x00000601);     // PMC_MOR: Enable Main Oscillator
_sleep_(10);                         // Wait for stable Main Oscillator
_WDWORD(0xFFFFFC30, 0x00000001);     // PMC_MCKR: Switch to Main Oscillator

// <e> Remap
//			<i> Remap the on chip ram to Addr:0x00000000
// </e>
Remap(0);
LOAD .\HJTAG-FLASH\Obj\SAM7S64-UCOS.axf INCREMENTAL NOCODE // Download

Setup();                             // Setup for Running

//g, main

⌨️ 快捷键说明

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