43 lines
1.3 KiB
Batchfile
43 lines
1.3 KiB
Batchfile
@echo off
|
||
|
||
cd %~dp0
|
||
|
||
copy ..\..\script.ver .
|
||
copy ..\..\tone.cfg .
|
||
copy ..\..\p11_code.bin .
|
||
copy ..\..\br30loader.bin .
|
||
copy ..\..\flash_params.bin
|
||
|
||
..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br30 -boot 0x2000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin ..\..\cfg_tool.bin -res p11_code.bin tone.cfg -uboot_compress -flash-params flash_params.bin
|
||
:: -format all
|
||
::-reboot 2500
|
||
|
||
@rem 删除临时文件-format all
|
||
if exist *.mp3 del *.mp3
|
||
if exist *.PIX del *.PIX
|
||
if exist *.TAB del *.TAB
|
||
if exist *.res del *.res
|
||
if exist *.sty del *.sty
|
||
|
||
@rem 生成固件升级文件
|
||
..\..\fw_add.exe -noenc -fw jl_isd.fw -add ..\..\ota.bin -type 100 -out jl_isd.fw
|
||
@rem 添加配置脚本的版本信息到 FW 文件中
|
||
..\..\fw_add.exe -noenc -fw jl_isd.fw -add script.ver -out jl_isd.fw
|
||
|
||
..\..\ufw_maker.exe -fw_to_ufw jl_isd.fw
|
||
copy jl_isd.ufw update.ufw
|
||
del jl_isd.ufw
|
||
|
||
@REM 生成配置文件升级文件
|
||
::ufw_maker.exe -chip AC800X %ADD_KEY% -output config.ufw -res bt_cfg.cfg
|
||
|
||
::IF EXIST jl_696x.bin del jl_696x.bin
|
||
|
||
@rem 常用命令说明
|
||
@rem -format vm //擦除VM 区域
|
||
@rem -format cfg //擦除BT CFG 区域
|
||
@rem -format 0x3f0-2 //表示从第 0x3f0 个 sector 开始连续擦除 2 个 sector(第一个参数为16进制或10进制都可,第二个参数必须是10进制)
|
||
|
||
ping /n 2 127.1>null
|
||
IF EXIST null del null
|