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

📄 lh7a400_startup.cmm~

📁 sharp flash blob 的烧写代码
💻 CMM~
字号:
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
 ; $Workfile:   LH7A400_startup.CMM  $ 
 ; $Revision:   X.XX  $ 
 ; $Author:   AnvikE  $ 
 ; $Date:    $ 
 ; 
 ; Project: LH7A400
 ; 
 ; Description: 
 ;  This file implements the startup code required to bring the kev7A400
 ;  to a usable state
 ; 
 ; Revision History: 
 ; 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
 ; 
 ;  Copyright (c) 2002 Sharp Microelectronics of the Americas 
 ; 
 ;  All rights reserved 
 ; 
 ;  SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION 
 ;  OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE, 
 ;  AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES, 
 ;  SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE. 
 ; 
 ;  SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY 
 ;  FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A 
 ;  SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE 
 ;  FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS. 
 ; 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
 ; 
 ; Function:  LH7A400_cpu_init
 ; 
 ; Purpose: 
 ;	To init the LH7A400 cpu.
 ; 
 ; Processing: 
 ;  	This method brings up core to a ready state. 
 ; 
 ; Parameters: None
 ; 
 ; Outputs: None. 
 ; 
 ; Returns: Nothing
 ; 
 ; Notes: 
 ;    SW7 must be in position 1 for this sequence to work. When SW7 is
 ;    in position 1, FLASH memory is located at base address 0x00000000.
 ;    If there are problems re-programming FLASH (after it has been
 ;    corrupted), try the following sequence:
 ;    * Set SW7 to position 3
 ;    * remove jumper JP36 (wakeup)
 ;    * Power up the EVB and start the Trace32 software
 ;    * Select 'attach' from the CPU System settings panel
 ;    * Press wakeup immediately after you click attack
 ;    * Run the flash programming sequence as normal, but use address
 ;      0x10000000 instead of address 0x00000000 as the FLASH base
 ;      address.
 ; 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	;
	; Reset the target
	;
	system.reset
	;
	; select CPU type
	;
	system.cpu ARM922T
	;
	; Set the JTAG clock
	;
	system.JtagClock 25.0MHZ
	;
	; Set enReset option to off
	;
	system.option enreset OFF
	;
	; select MemAccess
	;
	system.MemAccess PTMON
	;
	; Select CpuAccess
	;
	system.CpuAccess Enable
	;
	; Set AMBA option (for BUS-RiscTrace)
	;
	system.option AMBA OFF
	;
	; Set up the dissembly mode to ARM
	;
	system.Option DisMode ARM
	;
	; Start debugger
	;
	system.mode Up
	;
	; Disable the MMU
	;
	system.option mmu off
	d.s C15:0x1 %LONG 0xc000317e

	;
	; Bring up the flash device which is attached to CS0
	; 16-bits
	;
	;data.set d:0x80002000 %long 0x2000FBE0 
	
	; for sharp flash
	data.set d:0x80002000 %long 0x2000FFE0 

	;
	; Configure CS1 for 16-bit FLASH to support programming
	; when SW7 is in position 3 (and FLASH is on CS1)
	
 	data.set d:0x71000000 %long 0xff
	
	;
	; Wait a bit
	;
	wait 1s
	;
	; End of the script
	;
	enddo




⌨️ 快捷键说明

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