📄 smdk2440.scp
字号:
///////////////////////////////////////////////////////////////////////
; SCRIPT FILE smdk2410
/////////////////////////////////////////////////////////////////////
;============================================================================
; Name:
; SPIDER.SCP
;
; Description:
; Script file for AIJI system OpeniceA900
;
; Execution:
; Modify the command line load file.elf(axf) to load the file that you want.
; For more details, refer to SCP.txt file that accompanies this.
;
; Copyright (c) 2003,2004 by AIJI system, Incorporated. All Rights Reserved.
;----------------------------------------------------------------------------
; ';' '//' comment
;============================================================================
;
; EDIT HISTORY FOR MODULE
;
;
; when who what, where, why
; ------- --- ----------------------------------------------------
; 04/21/2003 AIJI system initial release
;============================================================================;
;============================================================================;
; Prepare system
;============================================================================;
Target.disconnect
;============================================================================;
;remote environmemt
;comm.channel serial
;comm.Serial.port COM1 ; COM1,COM2,COM3
;comm.Serial.BaudRate DES_B9600 ; DES_B9600,DES_B19200,DES_B38400,DES_B57600,DES_B115200
comm.channel usb ; select usb
;comm.channel ethernet ;select ethernet
;comm.ethernet.ipaddr 100.100.100.100
;Debugger environmemt
SYS.JtagClock 10 ; Jtagclock
SYS.SysReset on ;on or off
SYS.SmuInit on ;on or off
SYS.Endian Little ;little or big
;sys.dnbuffersize 0x1000
sys.dnbuffersize 0x8000
;============================================================================;
;Processor
P.Auto
//P.Manual ARM7TDMI
P.INDEX 1
P.MCUNAME smdk2440 ;MSM5100 ;dev filename
;============================================================================;
;Flash configure
Flash.DownLoad on;on,off
Flash.userOption on ;on,off
F.userfilepath .\MBA_2440.axf
F.Erase chip //if you want to erase chip itself make it voliate
;F.Erase auto ; if you want to erase device automatically
;F.Erase sector // if you want to erase device based on SECTOR
;F.SectorInfo reset
;F.sectorRange 0x10000000 - 0x20000000 ; start - size , '/' range grouping
F.FlashBase 0x00000000 ; Flash1 base address
F.FlashBaseTwo 0x00000000 ; Fhash2 base address(in case of 8M)
F.FlashSize 0x00100000
F.FlashSizeTwo 0x00000000
F.RamBase 0x30000000 ; RAM start address
F.RamSize 0x00200000 ; RAM Size
;F.Device Am29LV800BB ; choose Flash Device name on board
F.DataWidth 16 ; //8,16,32
F.BlankCheck off ;on or off
F.Verify off ;on or off
;============================================================================;
Target.connect ;Target.connect ,Target.disconnect
;============================================================================;
;SMU setting
; Init important SMU registers
; any other important system init should be done here
; Address Init Value Size
;WTCON
mem.write 0x53000000 0x00000000 4
;INTMSK
mem.write 0x4a000008 0xffffffff 4
;INTSUBMSK
mem.write 0x4a00001c 0x000007ff 4
;LOCKTIME
mem.write 0x4c000000 0x00ffffff 4
;MPLLCON
mem.write 0x4c000004 0x0005c042 4
;BWSCON
mem.write 0x48000000 0x22111120 4
;BANKCON0
mem.write 0x48000004 0x00000700 4
;BANKCON1
mem.write 0x48000008 0x00000700 4
;BANKCON2
mem.write 0x4800000c 0x00000700 4
;BANKCON3
mem.write 0x48000010 0x00000700 4
;BANKCON4
mem.write 0x48000014 0x00000700 4
;BANKCON5
mem.write 0x48000018 0x00000700 4
;BANKCON6
mem.write 0x4800001c 0x00018005 4
;BANKCON7
mem.write 0x48000020 0x00018005 4
;REFRESH
mem.write 0x48000024 0x008e0459 4
;BANKSIZE
mem.write 0x48000028 0x00000032 4
;MRSRB6
mem.write 0x4800002c 0x00000030 4
;MRSRB7
mem.write 0x48000030 0x00000030 4
;============================================================================;
;script g:\a900\current_job\spider\bin\spider.scp
;============================================================================;
; Load our flash programming routine and prepare flash
;============================================================================;
loadbin nboot.bin 0x0
;loadbin .\Code.bin 0x0000
;loadbin 02_MBA_nk.bin 0x4000
Flash.DownLoad off ;on,off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -