WQ7033开发指南(基础篇)之1.2 烧录固件详解

整个系列文章查看:

​​​​​​WQ7033开发指南汇总


目录

修改后缀名

解压固件文件包

app_evt.xml

audmap_config.json

buidl_info.txt 

dbglog_table.txt

dsp_tws_app.bin 

fw_updater_core0.bin

iomap_config.json

kv_left.json

kv_right.json

memory_config.json

sbl_core0.bin

 tone.bin

tws_core0.bin 

 tws_core1.bin

 修改UI和打包WPK


修改后缀名

WQ7033开发指南(基础篇)之1.2 烧录固件详解

从前面的文章中我们已经了解到了,WQ7033编译后的文件格式是wpk.

把.wpk文件后缀改成.rar

WQ7033开发指南(基础篇)之1.2 烧录固件详解

解压固件文件包

解压patch_tws_1_1-6.1.0.295-release.rar:

WQ7033开发指南(基础篇)之1.2 烧录固件详解

app_evt.xml

应用事件集

WQ7033开发指南(基础篇)之1.2 烧录固件详解

audmap_config.json

MIC 硬件通道配置相关
{
    "version": "2.0",
    "audmap": [
        {
            "name":"voice_main",
            "id":0,
            "bias": 0,
            "adc": 1,
            "chn":0,
            "asrc":2,
            "rx_fifo":0,
            "dac":255,
            "note1":"bias is mic adc power switch, ranges is 0~1",
            "note2":"adc is analog to digital module,ranges is 0~2",
            "note3":"chn is adc digital front, filter, adjusted gain,ranges is 0~5",
            "note4":"asrc is transfer sampling rate adjust frequency offset",
            "note5":"rx fifo is adc path data stream buffer module,allow dma high speed transmission,ranges is 0~7",
            "note6":"dac is digital to analog module,ranges is 0~1"
        },
        {
            "name":"anc_ff",
            "id":1,
            "bias": 0,
            "adc": 0,
            "chn":1,
            "asrc":255,
            "rx_fifo":255,
            "dac":1
        },
        {
            "name":"anc_fb",
            "id":2,
            "bias": 1,
            "adc": 2,
            "chn":2,
            "asrc":255,
            "rx_fifo":255,
            "dac":1
        },
        {
            "name":"voice_second",
            "id": 3,
            "bias": 0,
            "adc":0,
            "chn":3,
            "asrc":3,
            "rx_fifo":1,
            "dac":255
        },
        {
            "name":"voice_third",
            "id": 4,
            "bias": 1,
            "adc":2,
            "chn":4,
            "asrc":0,
            "rx_fifo":2,
            "dac":255
        },
        {
            "name":"vad",
            "id":5,
            "bias": 0,
            "adc":1,
            "chn":4,
            "asrc":255,
            "rx_fifo":255,
            "dac":255
        },
        {
            "name":"play",
            "id":6,
            "bias": 255,
            "adc":255,
            "chn":255,
            "asrc":1,
            "rx_fifo":255,
            "dac":1
        }
    ]
}

buidl_info.txt 

SDK版本信息

Commit ID: 75a1864c7
Version: 6.1.0.295-release
Data: 2022-01-04 20:16:49

dbglog_table.txt

log 索引信息,打印 log 必须使用该文件

 WQ7033开发指南(基础篇)之1.2 烧录固件详解

dsp_tws_app.bin 

DSP core固件

fw_updater_core0.bin

charger 单线升级固件

iomap_config.json

硬件 IO 映射配置相关

WQ7033开发指南(基础篇)之1.2 烧录固件详解

kv_left.json

左耳UI配置

WQ7033开发指南(基础篇)之1.2 烧录固件详解

kv_right.json

右耳UI配置

WQ7033开发指南(基础篇)之1.2 烧录固件详解

memory_config.json

flash 分区配置信息,烧录时 tool 根据此信息进行分区烧录

sbl_core0.bin

二级 boot 固件

 tone.bin

提示音文件

tws_core0.bin 

app 应用固件(core0),SDK 编译只编译这个核

 tws_core1.bin

BT 核固件(core1)

 修改UI和打包WPK

在E:\..\sdk_tws_6.1.0.295\sdk\core0\src\customer\demo\prebuild目录下,是UI配置工具生成的文件,然后编译WPK,就可以把修改好后的UI放在了新的WPK中。

也可以先编译WPK,然后修改UI配置文件,把下面的文件放在WPK目录下

WQ7033开发指南(基础篇)之1.2 烧录固件详解

 

上一篇:A + B Problem II(1002)


下一篇:1002 写出这个数 (20 分)