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

📄 mpserv_dk9200_pgm.mbs

📁 AT91RM9200-BasicTools-IAR4_30A-1_2
💻 MBS
字号:
//*--------------------------------------------------------------------------------------
//*      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_pgm.dbs
//* Object              : Setup script for the ATMEL AT91RM9200 board (Green Hills probes) 
//*			with specifc board initialisation at 30 KHz
//*
//* 1.0 19/Feb/04 JPP  : Creation
//* 1.1 28/Mar/06 JPP  : Change PC val
//*--------------------------------------------------------------------------------------
//* This is an empty place holder Setup Script for setting up an AT91RM9200 board
//* for debugging Startup sequeve programs.

target set clock 10000

//* Reset the processor
echo -- Reset JTAG
target jr
target rst

//* you can wait the Flash initialization
target sleep 2
target halt

echo -- Not Set the speed of the internal clock

//* test remap
echo -- Setup memory
memwrite 4 0x0 0x0
r0 = * 0x0
if (r0 == 0x0) { 
echo -- already remap  
echo -- Application running !! 

} else {  
echo -- REMAP memories, Internal SRAM  > 0x000000000 and Internal ROM  > 0X00100000
echo -- AT91 remap set
memwrite 4 0xFFFFFF00 0x00000001
}

echo -- target set clock 8000000 for download
target set clock 8000000


//* Set All register for RESET
echo -- Reset Register
sp = 0x0
lr = 0x0
pc = 0x0000000
cpsr = 0xd3

//* echo --    Help for command pane                      
//* echo -- MULTI>memload raw c:\tmp\flash\loader.bin 0x00200000
//* echo -- MULTI>pc = 0x00200000
//* echo -- MULTI>cpsr = 0xd3
//* echo -- MULTI>c       
//* echo --    Help for command pane                      

echo -- Please set the clock at 30 KHz for degug 
echo --  ! WARNING ! ! WARNING ! ! WARNING ! ! WARNING ! ! WARNING ! 
echo target set clock 30000

⌨️ 快捷键说明

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