From 0814498a5a752e7d11866d3fcc45f3636ddf12d1 Mon Sep 17 00:00:00 2001 From: "dustin.wei" Date: Wed, 24 Jan 2024 11:56:01 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BB=8E=E5=88=86=E6=94=AF1e2348e=E4=B8=AD?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=AF=AF=E5=88=A0=E9=99=A4=E7=9A=84cpu/bd19/?= =?UTF-8?q?tools/download.bat=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cpu/bd19/tools/download.bat | 76 +++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 cpu/bd19/tools/download.bat diff --git a/cpu/bd19/tools/download.bat b/cpu/bd19/tools/download.bat new file mode 100644 index 0000000..5d62499 --- /dev/null +++ b/cpu/bd19/tools/download.bat @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +rem @echo off +@echo ********************************************************************* +@echo AC632N SDK +@echo ********************************************************************* +@echo %date% + +cd /d %~dp0 + +set OBJDUMP=C:\JL\pi32\bin\llvm-objdump.exe +set OBJCOPY=C:\JL\pi32\bin\llvm-objcopy.exe +set INELF=sdk.elf +set LZ4_PACKET=lz4_packet.exe + +::@echo on + +if exist sdk.elf ( + +%OBJDUMP% -D -address-mask=0x1ffffff -print-dbg %INELF% > sdk.lst +%OBJCOPY% -O binary -j .text %INELF% text.bin +%OBJCOPY% -O binary -j .data %INELF% data.bin +%OBJCOPY% -O binary -j .data_code %INELF% data_code.bin +%OBJCOPY% -O binary -j .overlay_aec %INELF% aec.bin +%OBJCOPY% -O binary -j .overlay_aac %INELF% aac.bin +%OBJCOPY% -O binary -j .overlay_aptx %INELF% aptx.bin + +%OBJCOPY% -O binary -j .common %INELF% common.bin + + +bankfiles= +for /L %%i in (0,1,20) do ( + %OBJCOPY% -O binary -j .overlay_bank%%i %INELF% bank%%i.bin + set bankfiles=!bankfiles! bank%%i.bin 0x0 +) + +echo %bank_files +%LZ4_PACKET% -dict text.bin -input common.bin 0 %bankfiles% -o bank.bin + +%OBJDUMP% -section-headers -address-mask=0x1ffffff %INELF% +%OBJSIZEDUMP% -lite -skip-zero -enable-dbg-info %INELF% > symbol_tbl.txt + +copy /b text.bin+data.bin+data_code.bin+aec.bin+aac.bin+bank.bin+aptx.bin app.bin + +del bank*.bin common.bin text.bin data.bin bank.bin aac.bin aec.bin aptx.bin +) +call download/data_trans/download.bat -- Gitee From ef381babfcd5decab182347ca2088f2ce2e8885e Mon Sep 17 00:00:00 2001 From: "dustin.wei" Date: Wed, 24 Jan 2024 17:32:06 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E8=93=9D=E7=89=99AE01=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=80=8F=E4=BC=A0=EF=BC=8C=E6=A8=A1=E7=BB=84=E4=B8=B2=E5=8F=A3?= =?UTF-8?q?UART2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/spp_and_le/app_main.c | 15 ++++++++++++++- apps/spp_and_le/examples/trans_data/ble_trans.c | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/spp_and_le/app_main.c b/apps/spp_and_le/app_main.c index eca461f..ad2fde1 100644 --- a/apps/spp_and_le/app_main.c +++ b/apps/spp_and_le/app_main.c @@ -14,7 +14,7 @@ #include "app_charge.h" #include "app_power_manage.h" #include "asm/charge.h" -#include "app_quectel.h" +#include "serial.h" #if TCFG_KWS_VOICE_RECOGNITION_ENABLE #include "jl_kws/jl_kws_api.h" @@ -114,6 +114,19 @@ void check_power_on_key(void) void app_main() { + uart_cfg_t uart_cfg = { + .baud_rate = 115200, + .word_length = UART_WORDLENGTH_8, + .stop_bits = 1, + .parity = UART_PARITY_NO, + .mode = UART_MODE_RX_TX, + .hardware_flowcontrol = UART_HWFC_None, + .rx_buffer_size = 1024 + }; + tlv_bool_t res; + res = serial_init(UART_PORT2, &uart_cfg); + printf(">>> uart init res: %d\n", res); + struct intent it; if (!UPDATE_SUPPORT_DEV_IS_NULL()) { diff --git a/apps/spp_and_le/examples/trans_data/ble_trans.c b/apps/spp_and_le/examples/trans_data/ble_trans.c index c24c12b..d37bab2 100644 --- a/apps/spp_and_le/examples/trans_data/ble_trans.c +++ b/apps/spp_and_le/examples/trans_data/ble_trans.c @@ -32,6 +32,7 @@ #include "gatt_common/le_gatt_common.h" #include "ble_trans.h" #include "ble_trans_profile.h" +#include "serial.h" #if CONFIG_APP_SPP_LE @@ -572,6 +573,7 @@ static int trans_att_write_callback(hci_con_handle_t connection_handle, uint16_t log_info("\n-ae01_rx(%d):", buffer_size); put_buf(buffer, buffer_size); + serial_write(UART_PORT2, buffer, buffer_size); //收发测试,自动发送收到的数据;for test if (ble_comm_att_check_send(connection_handle, buffer_size) && -- Gitee From 549487a9a2b5b3e1224193c2730a8f564d8f1829 Mon Sep 17 00:00:00 2001 From: chenchi Date: Thu, 1 Feb 2024 14:09:23 +0800 Subject: [PATCH 3/5] delete example_lte --- apps/spp_and_le/app_main.c | 1 - .../br25/........cpubr25toolsdownload.bat | 82 ++++++++++++++++++ cpu/br25/tools/isd_config.ini | 86 +++++++++++++++++++ 3 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 apps/spp_and_le/board/br25/........cpubr25toolsdownload.bat create mode 100644 cpu/br25/tools/isd_config.ini diff --git a/apps/spp_and_le/app_main.c b/apps/spp_and_le/app_main.c index ad2fde1..e720406 100644 --- a/apps/spp_and_le/app_main.c +++ b/apps/spp_and_le/app_main.c @@ -136,7 +136,6 @@ void app_main() printf(">>>>>>>>>>>>>>>>>app_main...\n"); printf(">>> v220,2022-11-23 >>>\n"); - example_lte(NULL); if (get_charge_online_flag()) { #if(TCFG_SYS_LVD_EN == 1) diff --git a/apps/spp_and_le/board/br25/........cpubr25toolsdownload.bat b/apps/spp_and_le/board/br25/........cpubr25toolsdownload.bat new file mode 100644 index 0000000..0b8a221 --- /dev/null +++ b/apps/spp_and_le/board/br25/........cpubr25toolsdownload.bat @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +rem @echo off + +@echo ***************************************************************** +@echo SDK BR25 +@echo ***************************************************************** +@echo %date% + +cd %~dp0 + + +set OBJDUMP=C:\JL\pi32\bin\llvm-objdump.exe +set OBJCOPY=C:\JL\pi32\bin\llvm-objcopy.exe +set ELFFILE=sdk.elf + +REM %OBJDUMP% -D -address-mask=0x1ffffff -print-dbg $1.elf > $1.lst +%OBJCOPY% -O binary -j .text %ELFFILE% text.bin +%OBJCOPY% -O binary -j .data %ELFFILE% data.bin +%OBJCOPY% -O binary -j .data_code %ELFFILE% data_code.bin + + +%OBJCOPY% -O binary -j .overlay_aec %ELFFILE% aeco.bin +%OBJCOPY% -O binary -j .overlay_wav %ELFFILE% wavo.bin +%OBJCOPY% -O binary -j .overlay_ape %ELFFILE% apeo.bin +%OBJCOPY% -O binary -j .overlay_flac %ELFFILE% flaco.bin +%OBJCOPY% -O binary -j .overlay_m4a %ELFFILE% m4ao.bin +%OBJCOPY% -O binary -j .overlay_amr %ELFFILE% amro.bin +%OBJCOPY% -O binary -j .overlay_dts %ELFFILE% dtso.bin +%OBJCOPY% -O binary -j .overlay_fm %ELFFILE% fmo.bin +%OBJCOPY% -O binary -j .overlay_mp3 %ELFFILE% mp3o.bin +%OBJCOPY% -O binary -j .overlay_wma %ELFFILE% wmao.bin + + +remove_tailing_zeros -i aeco.bin -o aec.bin -mark ff +remove_tailing_zeros -i wavo.bin -o wav.bin -mark ff +remove_tailing_zeros -i apeo.bin -o ape.bin -mark ff +remove_tailing_zeros -i flaco.bin -o flac.bin -mark ff +remove_tailing_zeros -i m4ao.bin -o m4a.bin -mark ff +remove_tailing_zeros -i amro.bin -o amr.bin -mark ff +remove_tailing_zeros -i dtso.bin -o dts.bin -mark ff +remove_tailing_zeros -i fmo.bin -o fm.bin -mark ff +remove_tailing_zeros -i mp3o.bin -o mp3.bin -mark ff +remove_tailing_zeros -i wmao.bin -o wma.bin -mark ff + +bankfiles= +for /L %%i in (0,1,20) do ( + %OBJCOPY% -O binary -j .overlay_bank%%i %INELF% bank%%i.bin + set bankfiles=!bankfiles! bank%%i.bin 0x0 +) + +echo %bank_files +%LZ4_PACKET% -dict text.bin -input common.bin 0 %bankfiles% -o bank.bin + +%OBJDUMP% -section-headers -address-mask=0x1ffffff %ELFFILE% +%OBJDUMP% -t %ELFFILE% > symbol_tbl.txt + +copy /b text.bin+data.bin+data_code.bin+aec.bin+wav.bin+ape.bin+flac.bin+m4a.bin+amr.bin+dts.bin+fm.bin+mp3.bin+wma.bin+bank.bin app.bin +call download/data_trans/download.bat diff --git a/cpu/br25/tools/isd_config.ini b/cpu/br25/tools/isd_config.ini new file mode 100644 index 0000000..53230cb --- /dev/null +++ b/cpu/br25/tools/isd_config.ini @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + +[EXTRA_CFG_PARAM] +NEW_FLASH_FS = YES; + + + + + + +CHIP_NAME = AC636N; +PID = AC636N; +VID = 0.01; +ENTRY = 0x1e00120; + +RESERVED_OPT = 0; + +DOWNLOAD_MODEL = USB; +[CHIP_VERSION] +SUPPORTED_LIST = B, C, D, E, F, G; + +[SYS_CFG_PARAM] +SPI = 2_3_0_0; + + + + + + +UTTX = PA05; +UTBD = 1000000; + + +UTRX = PB05; + +RESET = PB01_08_0; + + + + + + +UPDATE_JUMP = 0; +EOFFSET = 0; +[RESERVED_CONFIG] +BTIF_ADR = AUTO; +BTIF_LEN = 0x1000; +BTIF_OPT = 1; +PRCT_ADR = 0; +PRCT_LEN = CODE_LEN; +PRCT_OPT = 2; + + + +VM_ADR = 0; +VM_LEN = 8K; +VM_OPT = 1; +[BURNER_CONFIG] +SIZE = 32; + +[TOOL_CONFIG] +1TO2_MIN_VER = 2.26.1; + +1TO8_MIN_VER = 3.1.8; -- Gitee From 936bdf0642f6846bf2b1da39a12839334a8b620b Mon Sep 17 00:00:00 2001 From: chenchi Date: Fri, 2 Feb 2024 17:11:03 +0800 Subject: [PATCH 4/5] =?UTF-8?q?AC6328A=E8=8A=AF=E7=89=87=E8=B0=83=E8=AF=95?= =?UTF-8?q?pass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/spp_and_le/app_main.c | 27 +- .../board/bd19/board_ac6328a_demo_cfg.h | 2 +- apps/spp_and_le/board/bd19/board_config.h | 4 +- .../examples/trans_data/ble_trans.c | 2 +- cpu/bd19/tools/download.bat | 2812 ++++++++++++++++- 5 files changed, 2766 insertions(+), 81 deletions(-) diff --git a/apps/spp_and_le/app_main.c b/apps/spp_and_le/app_main.c index e720406..8b9688b 100644 --- a/apps/spp_and_le/app_main.c +++ b/apps/spp_and_le/app_main.c @@ -15,6 +15,10 @@ #include "app_power_manage.h" #include "asm/charge.h" #include "serial.h" +#include "asm/gpio.h" +#include "thread.h" +#include "timer.h" + #if TCFG_KWS_VOICE_RECOGNITION_ENABLE #include "jl_kws/jl_kws_api.h" @@ -112,6 +116,24 @@ void check_power_on_key(void) } +static void start_feed_dog_thread_worker(void *pdata) { + // 初始化喂狗GPIO + gpio_set_pull_up(IO_PORTA_09, 1); + gpio_set_pull_down(IO_PORTA_09, 0); + gpio_set_direction(IO_PORTA_09, 0); + int rv; + while (1) + { + // printf("feed dog...\n"); + gpio_set_output_value(IO_PORTA_09, 0); + timer_msleep(50); // 0.5s + gpio_set_output_value(IO_PORTA_09, 1); + timer_msleep(100); // 1s + } +} + + + void app_main() { uart_cfg_t uart_cfg = { @@ -124,7 +146,7 @@ void app_main() .rx_buffer_size = 1024 }; tlv_bool_t res; - res = serial_init(UART_PORT2, &uart_cfg); + res = serial_init(UART_PORT1, &uart_cfg); printf(">>> uart init res: %d\n", res); struct intent it; @@ -136,6 +158,9 @@ void app_main() printf(">>>>>>>>>>>>>>>>>app_main...\n"); printf(">>> v220,2022-11-23 >>>\n"); + if(thread_init(start_feed_dog_thread_worker, NULL, 10, 1024) == 0) { + printf("start_feed_dog_thread_worker failed\n"); + } if (get_charge_online_flag()) { #if(TCFG_SYS_LVD_EN == 1) diff --git a/apps/spp_and_le/board/bd19/board_ac6328a_demo_cfg.h b/apps/spp_and_le/board/bd19/board_ac6328a_demo_cfg.h index 443c9c4..95fab0a 100644 --- a/apps/spp_and_le/board/bd19/board_ac6328a_demo_cfg.h +++ b/apps/spp_and_le/board/bd19/board_ac6328a_demo_cfg.h @@ -21,7 +21,7 @@ //*********************************************************************************// // UART配置 // //*********************************************************************************// -#define TCFG_UART0_ENABLE ENABLE_THIS_MOUDLE //串口打印模块使能 +#define TCFG_UART0_ENABLE DISABLE_THIS_MOUDLE //串口打印模块使能 #define TCFG_UART0_RX_PORT NO_CONFIG_PORT //串口接收脚配置(用于打印可以选择NO_CONFIG_PORT) #define TCFG_UART0_TX_PORT IO_PORT_DP //串口发送脚配置 #define TCFG_UART0_BAUDRATE 1000000 //串口波特率配置 diff --git a/apps/spp_and_le/board/bd19/board_config.h b/apps/spp_and_le/board/bd19/board_config.h index 9b3ddcc..5bd1e24 100644 --- a/apps/spp_and_le/board/bd19/board_config.h +++ b/apps/spp_and_le/board/bd19/board_config.h @@ -5,10 +5,10 @@ * 板级配置选择 */ -#define CONFIG_BOARD_AC632N_DEMO +// #define CONFIG_BOARD_AC632N_DEMO // #define CONFIG_BOARD_AC6321A_DEMO // #define CONFIG_BOARD_AC6323A_DEMO -// #define CONFIG_BOARD_AC6328A_DEMO +#define CONFIG_BOARD_AC6328A_DEMO // #define CONFIG_BOARD_AC6328B_DONGLE // #define CONFIG_BOARD_AC6329B_DEMO // #define CONFIG_BOARD_AC6329C_DEMO diff --git a/apps/spp_and_le/examples/trans_data/ble_trans.c b/apps/spp_and_le/examples/trans_data/ble_trans.c index d37bab2..ba05743 100644 --- a/apps/spp_and_le/examples/trans_data/ble_trans.c +++ b/apps/spp_and_le/examples/trans_data/ble_trans.c @@ -573,7 +573,7 @@ static int trans_att_write_callback(hci_con_handle_t connection_handle, uint16_t log_info("\n-ae01_rx(%d):", buffer_size); put_buf(buffer, buffer_size); - serial_write(UART_PORT2, buffer, buffer_size); + serial_write(UART_PORT1, buffer, buffer_size); //收发测试,自动发送收到的数据;for test if (ble_comm_att_check_send(connection_handle, buffer_size) && diff --git a/cpu/bd19/tools/download.bat b/cpu/bd19/tools/download.bat index 5d62499..2844a20 100644 --- a/cpu/bd19/tools/download.bat +++ b/cpu/bd19/tools/download.bat @@ -1,76 +1,2736 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -rem @echo off -@echo ********************************************************************* -@echo AC632N SDK -@echo ********************************************************************* -@echo %date% - -cd /d %~dp0 - -set OBJDUMP=C:\JL\pi32\bin\llvm-objdump.exe -set OBJCOPY=C:\JL\pi32\bin\llvm-objcopy.exe -set INELF=sdk.elf -set LZ4_PACKET=lz4_packet.exe - -::@echo on - -if exist sdk.elf ( - -%OBJDUMP% -D -address-mask=0x1ffffff -print-dbg %INELF% > sdk.lst -%OBJCOPY% -O binary -j .text %INELF% text.bin -%OBJCOPY% -O binary -j .data %INELF% data.bin -%OBJCOPY% -O binary -j .data_code %INELF% data_code.bin -%OBJCOPY% -O binary -j .overlay_aec %INELF% aec.bin -%OBJCOPY% -O binary -j .overlay_aac %INELF% aac.bin -%OBJCOPY% -O binary -j .overlay_aptx %INELF% aptx.bin - -%OBJCOPY% -O binary -j .common %INELF% common.bin - - -bankfiles= -for /L %%i in (0,1,20) do ( - %OBJCOPY% -O binary -j .overlay_bank%%i %INELF% bank%%i.bin - set bankfiles=!bankfiles! bank%%i.bin 0x0 -) - -echo %bank_files -%LZ4_PACKET% -dict text.bin -input common.bin 0 %bankfiles% -o bank.bin - -%OBJDUMP% -section-headers -address-mask=0x1ffffff %INELF% -%OBJSIZEDUMP% -lite -skip-zero -enable-dbg-info %INELF% > symbol_tbl.txt - -copy /b text.bin+data.bin+data_code.bin+aec.bin+aac.bin+bank.bin+aptx.bin app.bin - -del bank*.bin common.bin text.bin data.bin bank.bin aac.bin aec.bin aptx.bin -) -call download/data_trans/download.bat + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +rem @echo off + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@echo ********************************************************************* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@echo AC632N SDK + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@echo ********************************************************************* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@echo %date% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +cd /d %~dp0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +set OBJDUMP=C:\JL\pi32\bin\llvm-objdump.exe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +set OBJCOPY=C:\JL\pi32\bin\llvm-objcopy.exe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +set INELF=sdk.elf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +set LZ4_PACKET=lz4_packet.exe + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +::@echo on + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +if exist sdk.elf ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJDUMP% -D -address-mask=0x1ffffff -print-dbg %INELF% > sdk.lst + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .text %INELF% text.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .data %INELF% data.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .data_code %INELF% data_code.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .overlay_aec %INELF% aec.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .overlay_aac %INELF% aac.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .overlay_aptx %INELF% aptx.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJCOPY% -O binary -j .common %INELF% common.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +bankfiles= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +for /L %%i in (0,1,20) do ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + %OBJCOPY% -O binary -j .overlay_bank%%i %INELF% bank%%i.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + set bankfiles=!bankfiles! bank%%i.bin 0x0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +echo %bank_files + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%LZ4_PACKET% -dict text.bin -input common.bin 0 %bankfiles% -o bank.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJDUMP% -section-headers -address-mask=0x1ffffff %INELF% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%OBJSIZEDUMP% -lite -skip-zero -enable-dbg-info %INELF% > symbol_tbl.txt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +copy /b text.bin+data.bin+data_code.bin+aec.bin+aac.bin+bank.bin+aptx.bin app.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +del bank*.bin common.bin text.bin data.bin bank.bin aac.bin aec.bin aptx.bin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +call download/data_trans/download.bat + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- Gitee From b58e7a2b425c0348b206a2aeb54683108dce26b7 Mon Sep 17 00:00:00 2001 From: chenchi Date: Fri, 2 Feb 2024 17:15:35 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=B2=E5=8F=A3?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/ctlv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/ctlv b/apps/common/ctlv index 5fddd9a..0d2f563 160000 --- a/apps/common/ctlv +++ b/apps/common/ctlv @@ -1 +1 @@ -Subproject commit 5fddd9a5b4e5ed65a00866c2d7eb7e9ef808cf94 +Subproject commit 0d2f563a79954a586aae64a645b4d9b544dd08b2 -- Gitee