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

📄 standard_arm_target.js.bak

📁 An complete pmp solution for mattel juicebox player. Using crossworks for arm.
💻 BAK
字号:
/******************************************************************************
  Target Script for a generic ARM.

  Copyright (c) 2007 Rowley Associates Limited.

  This file may be distributed under the terms of the License Agreement
  provided with this software.

  THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING THE
  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 ******************************************************************************/

function Reset()
{
  TargetInterface.stopAndReset(1);
}

function RAMReset()
{
  Reset();
  TargetInterface.pokeWord(0x01c00000, 0x0000000E);
  TargetInterface.pokeWord(0x01c00004, 0xC0000020);
  TargetInterface.pokeWord(0x01c00008, 0xC140C000);
  TargetInterface.pokeWord(0x01c40000, 0x80001B1B);
  TargetInterface.pokeWord(0x01c80000, 0x11000002);
  TargetInterface.pokeWord(0x01c80004, 0x00000600);
  TargetInterface.pokeWord(0x01c8001c, 0x00018000);
  TargetInterface.pokeWord(0x01c80020, 0x00018000);
  TargetInterface.pokeWord(0x01c80024, 0x0082062B);
  TargetInterface.pokeWord(0x01c80028, 0x00000010);
  TargetInterface.pokeWord(0x01c8002c, 0x00000020);
  TargetInterface.pokeWord(0x01c80030, 0x00000020);
  TargetInterface.pokeWord(0x01d30000, 0x00000000);
  TargetInterface.pokeWord(0x01d80000, 0x00038080);
  /*


*0x01d20000 = 0x000003FF;
*0x01d20008 = 0x000007FF;
*0x01d20010 = 0xF555FFDF;
*0x01d20018 = 0x00000600;
*0x01d2001c = 0x0000AAAA;
*0x01d20024 = 0x000000FF;
*0x01d20028 = 0x0002AA80;
*0x01d20030 = 0x000000F8;
*0x01d20034 = 0x000827EA;
*0x01d2003c = 0x000001E3;
*0x01d20040 = 0x0000FFFF;
*0x01d20048 = 0x00000000;
*0x01d2004c = 0x00000007;
*0x01d20050 = 0x00000422;

*0x01e00000 = 0x00000004;
*0x01e00008 = 0x00025999;
*0x01e0000c = 0x00000000;*/
  // TODO: Configure target so RAM is accessible, e.g.
  // TargetInterface.pokeWord(0x78100000, 0x00000068);
  // TargetInterface.pokeWord(0x78100004, 0x00000003);
  // etc, etc.
}

function FLASHReset()
{
  Reset();
  TargetInterface.pokeWord(0x01c00000, 0x00000006);
  TargetInterface.pokeWord(0x01c00004, 0xC0000020);
  TargetInterface.pokeWord(0x01c00008, 0xC140C000);
  TargetInterface.pokeWord(0x01c40000, 0x80001B1B);
  TargetInterface.pokeWord(0x01c80000, 0x11000002);
  TargetInterface.pokeWord(0x01c80004, 0x00000600);
  TargetInterface.pokeWord(0x01c8001c, 0x00018000);
  TargetInterface.pokeWord(0x01c80020, 0x00018000);
  TargetInterface.pokeWord(0x01c80024, 0x0082062B);
  TargetInterface.pokeWord(0x01c80028, 0x00000010);
  TargetInterface.pokeWord(0x01c8002c, 0x00000020);
  TargetInterface.pokeWord(0x01c80030, 0x00000020);
  TargetInterface.pokeWord(0x01d30000, 0x00000000);
  TargetInterface.pokeWord(0x01d80000, 0x00038080);
  // TODO: Configure target so RAM area occupied by loader is accessible and
  // FLASH can be programmed, e.g.
  // TargetInterface.pokeWord(0x78100000, 0x00000068);
  // TargetInterface.pokeWord(0x78100004, 0x00000003);
}

⌨️ 快捷键说明

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