Stair56E UART project
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,53 @@
|
||||
@echo off
|
||||
set Ota_app_bin=.\ota_app.bin
|
||||
set Download_bin=.\output_bin\ble_peripheral.bin
|
||||
set Ota_use_bin=.\output_bin\ota_data.bin
|
||||
set AES_OUTPUT_BIN= .\output_bin\ota_data_aes.bin
|
||||
|
||||
set Host_bin=.\output_tool\host
|
||||
set Host_addr=0x11002000
|
||||
|
||||
set App_bin=.\app.bin
|
||||
set Loading_addr=0x11013000
|
||||
REM Back area
|
||||
set Back_addr=0x20000
|
||||
|
||||
set soft_ver=0x10
|
||||
set hard_ver=0x20
|
||||
|
||||
set Is_xip_mode=1
|
||||
REM If If_add_app is set to 1, then Download_bin = Host_bin + App_bin; else Download_bin = Host_bin.
|
||||
set Is_add_app=1
|
||||
|
||||
REM Set boot2 start app,Only 1 can set 1.
|
||||
set RUN1=0
|
||||
set RUN2=1
|
||||
|
||||
REM AES Config
|
||||
set AES_START=1
|
||||
set KEY=0b0c0d0405060708090a0b0c0d0e0f10
|
||||
set MODE=ECB
|
||||
set PADDING=NONE
|
||||
set BLOCK_SIZE=128Bits
|
||||
|
||||
.\output_tool\Double_ota\ge.exe %App_bin% ^
|
||||
%soft_ver% %hard_ver% ^
|
||||
%Back_addr% ^
|
||||
%Loading_addr% ^
|
||||
%Is_xip_mode% ^
|
||||
%Ota_use_bin%
|
||||
|
||||
.\output_tool\Double_ota\xinchip_bootloader2_tool.exe .\output_tool\Double_ota\boot2 ^
|
||||
%Host_bin% %Host_addr% %RUN1% ^
|
||||
%App_bin% %Loading_addr% %RUN2% ^
|
||||
%Download_bin% %Is_add_app%
|
||||
REM.\output_tool\aes.exe 1 .\output_bin\ota_data.bin .\output_bin\b.bin 0b0c0d0405060708090a0b0c0d0e0f10 ECB NONE 128Bits
|
||||
.\output_tool\aes.exe ^
|
||||
%AES_START% %Ota_use_bin% %AES_OUTPUT_BIN% ^
|
||||
%KEY% %MODE% %PADDING% %BLOCK_SIZE%
|
||||
|
||||
copy %Download_bin% .\
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,57 @@
|
||||
@echo off
|
||||
set Download_bin=.\output_bin\ble_peripheral_single.bin
|
||||
set Ota_use_bin=.\output_bin\single_ota_data.bin
|
||||
set AES_OUTPUT_BIN= .\output_bin\single_ota_data_aes.bin
|
||||
|
||||
set Host_bin=.\output_tool\host
|
||||
set Host_addr=0x11002000
|
||||
|
||||
set App_bin=.\app.bin
|
||||
set App_loading_addr=0x11015000
|
||||
set App_save_addr=0x15000
|
||||
|
||||
set Ota_app_bin=.\ota_app.bin
|
||||
set ota_Loading_Save_addr=0x11011000
|
||||
|
||||
set soft_ver=0x10
|
||||
set hard_ver=0x20
|
||||
|
||||
set Is_xip_mode=1
|
||||
REM If If_add_app is set to 1, then Download_bin = Host_bin + Ota_app_bin + App_bin; else Download_bin = Host_bin + Ota_app_bin.
|
||||
set Is_add_app=1
|
||||
|
||||
REM Set boot2 start app,Only 1 can set 1.
|
||||
set RUN1=0
|
||||
set RUN2=0
|
||||
set RUN3=1
|
||||
|
||||
REM AES Config
|
||||
set AES_START=1
|
||||
set KEY=0b0c0d0405060708090a0b0c0d0e0f10
|
||||
set MODE=ECB
|
||||
set PADDING=NONE
|
||||
set BLOCK_SIZE=128Bits
|
||||
.\output_tool\Single_ota\ge_single.exe %App_bin% ^
|
||||
%soft_ver% %hard_ver% ^
|
||||
%App_save_addr% %App_loading_addr% ^
|
||||
%Ota_app_bin% %ota_Loading_Save_addr% ^
|
||||
%Is_xip_mode% ^
|
||||
%Ota_use_bin%
|
||||
|
||||
.\output_tool\Single_ota\xinchip_bootloader2_tool_single.exe .\output_tool\Single_ota\boot2_single_ota ^
|
||||
%Host_bin% %Host_addr% %RUN1% ^
|
||||
%Ota_app_bin% %ota_Loading_Save_addr% %RUN2% ^
|
||||
%App_bin% %App_loading_addr% %RUN3% ^
|
||||
%Download_bin% %Is_add_app%
|
||||
|
||||
.\output_tool\aes.exe ^
|
||||
%AES_START% %Ota_use_bin% %AES_OUTPUT_BIN% ^
|
||||
%KEY% %MODE% %PADDING% %BLOCK_SIZE%
|
||||
|
||||
copy %Download_bin% .\
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,9 +0,0 @@
|
||||
@echo off
|
||||
|
||||
call .\output_tool\ota_bin_ge.bat
|
||||
.\output_tool\xinchip_bootloader2.bat
|
||||
echo Done
|
||||
exit
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
.\output_tool\ge.exe .\app.bin 0x10 0x20 0x40000 0x11013000 1 .\output_bin\ota_data.bin
|
||||
@@ -1,6 +0,0 @@
|
||||
.\output_tool\xinchip_bootloader2_tool.exe .\output_tool\boot2 ^
|
||||
.\output_tool\host 0x11002000 1 ^
|
||||
app.bin 0x11013000 0 ^
|
||||
.\output_bin\ble_peripheral.bin 1
|
||||
|
||||
copy .\output_bin\ble_peripheral.bin .\
|
||||
Reference in New Issue
Block a user