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

📄 burn.bat

📁 flash programming STI 5.5.1.4 DCU3
💻 BAT
字号:
@echo off
set ST20ROOT=c:\pvr2flash\st20
set path=c:\pvr2flash\st20\bin;%path%
if "%1" == "" goto help
if "%1" == "-h" goto help
if "%1" == "-H" goto help
if "%1" == "--help" got help
rem First parameter to flash programmer must be * to put it into digibox compatibility mode
set args=*
set logfil=
:build_args
if "%1%" == "" goto run
if "%1%" == "-l" goto logfile
if "%1%" == "-L" goto logfile
set args=%args% %1
shift
goto build_args
:logfile
shift
set logfil=%1
shift
goto build_args

:help
   echo 
   echo "Usage:"
   echo "burn -f <file> [-d] [-b <bank>] [-s <serial> <prod>] [-n <serial> <prod>] [-a <start>] [-e <end>] [-c <offset> <size>] [-l <logfile>]"
   echo "-f    specify file to program (use \"-f none\" for serialisation only)"
   echo "-d    erase the entire flash bank(s)"	
   echo "-b    specify bank(s) to program"
   echo "      either \"-b bank0\", \"-b bank1\" or \"-b both\" (default bank0 only)"
   echo "-s    specify serialisation (see note 1 below)"
   echo "-n    specify serialisation (see note 2 below)"
   echo "-a    specify bank start address in hex (single bank only)"
   echo "-e    specify bank end   address in hex (single bank only)"
   echo "-c    specify offset and number of bytes to erase in hex (single or both banks)"
   echo "-l    specify log file to send output to"
   echo.
   echo "Note 1:"
   echo "The serialisation should be specified in the order:"
   echo "-s <serial number> <prod info>"
   echo "Example: burn -f A191ldr_153.bin -b both -d -s 12345678 0001219f"
   echo "This will program both banks with A191ldr_153.bin and serialise the box with:"
   echo "serial number 0x12345678, manu 0x9F, model 0x21, h/w id 0x01, OEM 0x00"
   echo.	
   echo "Note 2:"
   echo "The -n option is identical to -s, but it will change the endianness of the"
   echo "serial number, so -n 12345678 0001219f is the same as -s 78563412 0001219f"
   echo.
   echo "Note 3:"
   echo "The -c option is used to specify an area of flash to be erased in one or"
   echo "both banks."
   echo "Example: -c 0x3c0000 0x40000"
   echo "This example will erase 256k bytes of flash starting at offset 0x3c0000"
   goto :end

:run
if "%logfil%" == "" goto nologfile
   st20run -b -i boot.cfg -t boot A191hostboot.lku -log %logfil%
   st20run -b -i product.cfg -t htiramdebug  fp_A191.lku -log %logfil% -a "%args%"
goto end
:nologfile
   st20run -b -i boot.cfg -t boot A191hostboot.lku
   st20run -b -i product.cfg -t htiramdebug  fp_A191.lku -a "%args%"
:end

⌨️ 快捷键说明

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