SUPER TRACE支持
SUPER TRACE支持





电话(总机):0755-82518678
传真:0755-82518678转8008
咨询:0755-28709777
技术支持:0755-28716000

手机:13715175345
E-mail:mobile_wei@126.com
邮编:518000
地址:深圳福田区雷圳大厦
 
T32使用之Flash烧写命令解释

Trace32使用之Flash烧写命令解释

请注明http://www.jtag1000.com/

data.sves.b xxx.bin 0x0--0x80000   //读文件并保存,很重要

FLASH.Program


FLASH.Program ALL
Data.LOAD.Binary data.bin /Word   按字节写入
FLASH.Program OFF
Data.LOAD.Binary data.bin /DIFF   效验文件是否写入
IF FOUND()
PRINT “Not ok!”  如发现不通过显示不OK
ELSE
PRINT “FLASH ok!”通过显示 OK

******************************************jtag1000.com
; Format 1
FLASH.RESet
FLASH.Create 1. 0x0--0x3fffff 0x20000 TARGET Word
FLASH.Target 0xA0000000++0xFFF 0xA0001000++0xFFF
~~\demo\arm\flash\word\i28f200j3.bin
FLASH.Erase 1.
FLASH.Program 1.
Data.LOAD.Elf my_application.elf /Word
FLASH.Program OFF
Data.LOAD.Elf my_application.elf /Word /DIFF
IF found()
Print “Not ok!”
ELSE

Print “FLASH ok!”

//jtag1000.com
; Format 2
FLASH.RESet
FLASH.Create 1. 0x0--0x3FFFFF 0x20000 TARGET Word
FLASH.Target 0xA0000000 0xA0001000 0x1000
~~\demo\arm\flash\word\i28f200j3.bin
FLASH.Erase 1.
FLASH.Program 1.
Data.LOAD.Elf my_application.elf /Word
FLASH.Program OFF
Data.LOAD.Elf my_application.elf /Word /DIFF
IF found()
Print “Not ok!”
ELSE
Print “FLASH ok!”
*******************************************jtag1000.com

FLASH.UNLOCK //解锁


Example for 1 (individual unlocking):
INTEL 28F128L18 at address 0x0, connected to the CPU via a 16 bit data bus
Example for 2 (parallel unlocking):
INTEL 28F128J3 at address 0x0, connected to the CPU via a 16 bit data bus, each sector 128KByte
FLASH.RESet ; reset FLASH declaration
FLASH.CFI 0x0 Word ; declare FLASH sectors via
; CFI query
FLASH.UNLOCK ALL ; unlock each sector individually
… ; erasing and programming
FLASH.LOCK ALL ; re-lock each sector individually
FLASH.RESet ; reset FLASH declaration
FLASH.CFI 0x0 Word ; declare FLASH sectors via
; CFI query
FLASH.UNLOCK 0x0--0x1ffff ; execute a single unlock command
; by using an address range
; inside of a FLASH sector (faster)
… ; erasing and programming
FLASH.LOCK ALL ; re-lock each sector individually

请注明:http://www.jtag1000.com/