KT25-1014_AC695x_BTE_SDK310/cpu/br23/tools/download_app_ota.bat

56 lines
1.4 KiB
Batchfile
Raw Normal View History

2025-10-14 08:57:01 +00:00
@echo off
@echo ********************************************************************************
@echo SDK BR23
@echo ********************************************************************************
@echo %date%
cd /d %~dp0
cd tool_resource\app_ota
copy * ..\..\
cd ..\..\
json_to_res.exe json.txt
del isd_config.ini
copy isd_config_app_ota.ini isd_config.ini
isd_download.exe -tonorflash -dev br23 -boot 0x12000 -div8 -wait 300 -uboot uboot.boot -app app.bin cfg_tool.bin -res tone.cfg config.dat
::-ex_api_bin user_api.bin
@REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>
@rem -format vm // <20><><EFBFBD><EFBFBD>VM <20><><EFBFBD><EFBFBD>
@rem -format all // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@rem -reboot 500 // reset chip, valid in JTAG debug
del isd_config.ini
@REM ɾ<><C9BE><EFBFBD><EFBFBD>ʱ<EFBFBD>ļ<EFBFBD>
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
if exist json_to_res.exe del json_to_res.exe
if exist json.txt del json.txt
if exist config.dat del config.dat
if exist isd_config_app_ota.ini del isd_config_app_ota.ini
@REM <20><><EFBFBD>ɹ̼<C9B9><CCBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
fw_add.exe -noenc -fw jl_isd.fw -add ota.bin -type 100 -out jl_isd.fw
@REM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ýű<C3BD><C5B1>İ汾<C4B0><E6B1BE>Ϣ<EFBFBD><CFA2> FW <20>ļ<EFBFBD><C4BC><EFBFBD>
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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
rem ufw_maker.exe -chip AC693X %ADD_KEY% -output config.ufw -res bt_cfg.cfg
ping /n 2 127.1>null
IF EXIST null del null
pause