mpserv_dk9200_flahs.mbs
来自「AT91RM9200-BasicTools-IAR4_30A-1_2」· MBS 代码 · 共 53 行
MBS
53 行
//*--------------------------------------------------------------------------------------
//* ATMEL Microcontroller Software Support - ROUSSET -
//*--------------------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*--------------------------------------------------------------------------------------
//* File Name : mpserv_dk9200.dbs
//* Object : Setup script for the Ateml AT91RM9200 board (Green Hills probes)
//* with specifc board initialisation
//*
//* 1.0 19/Feb/04 JPP : Creation
//* 1.1 24/Mar/04 JPP : Add Pll setting
//*--------------------------------------------------------------------------------------
//* This is an empty place holder Setup Script for setting up an AT91RM9200 board
//* for running programs.
//* Set target need only the first connection for Green Hills probes setting
//* target set target arm9tdmi
//* target set
//* Reset the processor
echo -- Reset JTAG
target halt
target jr
target rst run
echo -- you can wait the Flash initialization
target sleep 1
target halt
//* test remap
memwrite 4 0x0 0x0
r0 = * 0x0
if (r0 == 0x0) {
echo -- AT91 need remap clear
memwrite 4 0xFFFFFF00 0x00000001
} else {
echo -- Not remap
}
//* Set All register for RESET
echo -- Reset Register
sp = 0x204000
lr = 0x204000
pc = 0x0
cpsr = 0xd3
//* cpsr
target set clock 30000
echo --------- Start debug
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?