7、erase
erase start end
- erase FLASH from addr ‘start’ to addr ‘end’
erase N:SF[-SL]
- erase sectors SF-SL in FLASH bank # N
erase bank N
- erase FLASH bank # N
erase all
- erase all FLASH banks
erase命令可以擦Flash。
參數(shù)必須指定Flash擦除的范圍。
按照起始地址和結(jié)束地址,start必須是擦除塊的起始地址;end必須是擦除末尾塊的結(jié)束地址。這種方式最常用。舉例說明:擦除0x20000 – 0x3ffff區(qū)域命令為erase 20000 3ffff。
按照組和扇區(qū),N表示Flash的組號,SF表示擦除起始扇區(qū)號,SL表示擦除結(jié)束扇區(qū)號。另外,還可以擦除整個組,擦除組號為N的整個Flash組。擦除全部Flash只要給出一個all的參數(shù)即可。
8、flinfo
flinfo
- print information for all FLASH memory banks
flinfo N
- print information for FLASH memory bank # N
flinfo命令打印全部Flash組的信息,也可以只打印其中某個組。一般嵌入式系統(tǒng)的Flash只有一個組。
9、go
go addr [arg 。。.]
- start application at address ‘a(chǎn)ddr’
passing ‘a(chǎn)rg’ as arguments
go命令可以執(zhí)行應(yīng)用程序。
第1個參數(shù)是要執(zhí)行程序的入口地址。
第2個可選參數(shù)是傳遞給程序的參數(shù),可以不用。
10、minfo
iminfo addr [addr 。。.]
- print header information for application image starting at
address ‘a(chǎn)ddr’ in memory; this includes verification of the
image contents (magic number, header and payload checksums)
iminfo可以打印程序映像的開頭信息,包含了映像內(nèi)容的校驗(yàn)(序列號、頭和校驗(yàn)和)。
第1個參數(shù)指定映像的起始地址。
可選的參數(shù)是指定更多的映像地址。
11、loadb
loadb [ off ] [ baud ]
- load binary file over serial line with offset ‘off’ and baudrate ‘baud’
loadb命令可以通過串口線下載二進(jìn)制格式文件。
12、loads
loads [ off ]
- load S-Record file over serial line with offset ‘off’
loads命令可以通過串口線下載S-Record格式文件。
13、mw
mw [.b, .w, .l] address value [count]
- write memory
mw命令可以按照字節(jié)、字、長字寫內(nèi)存,.b .w .l的用法與cp命令相同。
第1個參數(shù)address是要寫的內(nèi)存地址。
第2個參數(shù)value是要寫的值。
第3個可選參數(shù)count是要寫單位值的數(shù)目。
評論