update
This commit is contained in:
parent
cad5254a5b
commit
ce6aeed745
|
@ -31,9 +31,9 @@ lite_component("app") {
|
|||
# "TW201_Module_oled:module_oled_example",
|
||||
# "TW202_Module_traffic_light:module_traffic_light_example",
|
||||
# "TW203_Module_tricolor_light:module_tricolor_light_example",
|
||||
"TW204_Module_enviroment:module_enviroment_example",
|
||||
# "TW204_Module_enviroment:module_enviroment_example",
|
||||
# "TW205_Module_motor:module_motor_example",
|
||||
# "TW207_Module_gyro:module_gyro_example",
|
||||
"TW207_Module_gyro:module_gyro_example",
|
||||
# "TW208_Module_JYRTC:module_JYRTC_example",
|
||||
# "TW210_Module_battery:module_battery_example",
|
||||
# "TW301_Network_wifista:network_wifista_example",
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "iot_errno.h"
|
||||
#include "iot_gpio.h"
|
||||
#include "iot_i2c.h"
|
||||
#include "hi_io.h"
|
||||
|
||||
#define I2C0_INDEX 0
|
||||
|
||||
|
@ -35,23 +34,23 @@ static void MPUIsrFunc(char* arg)
|
|||
static void GyroIOInit(void)
|
||||
{
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_7);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_7, HI_IO_FUNC_GPIO_7_GPIO);//设置GPIO_7的复用功能为普通GPIO
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_7, IOT_IO_FUNC_GPIO_7_GPIO);//设置GPIO_7的复用功能为普通GPIO
|
||||
IoTGpioSetDir(IOT_GPIO_IO_GPIO_7, IOT_GPIO_DIR_OUT);//设置GPIO_7为输出模式
|
||||
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_8);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_8, HI_IO_FUNC_GPIO_8_GPIO);//设置GPIO_8的复用功能为普通GPIO
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_8, IOT_IO_FUNC_GPIO_8_GPIO);//设置GPIO_8的复用功能为普通GPIO
|
||||
IoTGpioSetDir(IOT_GPIO_IO_GPIO_8, IOT_GPIO_DIR_OUT);//设置GPIO_8为输出模式
|
||||
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_12);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_12, HI_IO_FUNC_GPIO_12_GPIO);//设置GPIO_8的复用功能为普通GPIO
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_12, IOT_IO_FUNC_GPIO_12_GPIO);//设置GPIO_8的复用功能为普通GPIO
|
||||
IoTGpioSetDir(IOT_GPIO_IO_GPIO_12, IOT_GPIO_DIR_IN);//设置GPIO_8为输出模式
|
||||
IotIoSetPull(IOT_GPIO_IO_GPIO_12,IOT_IO_PULL_UP);
|
||||
IoTIoSetPull(IOT_GPIO_IO_GPIO_12,IOT_IO_PULL_UP);
|
||||
IoTGpioRegisterIsrFunc(IOT_GPIO_IO_GPIO_12, IOT_INT_TYPE_EDGE,IOT_GPIO_EDGE_RISE_LEVEL_HIGH, MPUIsrFunc, NULL);
|
||||
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_13);
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_14);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_13, HI_IO_FUNC_GPIO_13_I2C0_SDA);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_14, HI_IO_FUNC_GPIO_14_I2C0_SCL);
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_13, IOT_IO_FUNC_GPIO_13_I2C0_SDA);
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_14, IOT_IO_FUNC_GPIO_14_I2C0_SCL);
|
||||
|
||||
IoTI2cInit(I2C0_INDEX, 400000); /* baudrate: 400kbps */
|
||||
IoTI2cSetBaudrate(I2C0_INDEX, 400000);
|
||||
|
@ -90,7 +89,7 @@ static uint8_t I2CMPU6050ReadData(uint8_t Reg)
|
|||
uint8_t value = 0;
|
||||
uint32_t status = 0;
|
||||
uint8_t buffer[1] = {Reg};
|
||||
status = IotI2cWriteread(I2C0_INDEX, (MPU6050_SLAVE_ADDRESS<<1)|0x00, buffer, 1, &value, 1);
|
||||
status = IoTI2cWriteread(I2C0_INDEX, (MPU6050_SLAVE_ADDRESS<<1)|0x00, buffer, 1, &value, 1);
|
||||
if (status != 0)
|
||||
{
|
||||
printf("===== Error: I2C write status = 0x%x! =====\r\n", status);
|
||||
|
@ -104,7 +103,7 @@ uint8_t I2CMPU6050ReadBuffer(uint8_t Reg, uint8_t *pBuffer, uint16_t Length)
|
|||
|
||||
uint32_t status = 0;
|
||||
uint8_t buffer[1] = {Reg};
|
||||
status = IotI2cWriteread(I2C0_INDEX, (MPU6050_SLAVE_ADDRESS<<1)|0x00,buffer, 1, pBuffer, Length);
|
||||
status = IoTI2cWriteread(I2C0_INDEX, (MPU6050_SLAVE_ADDRESS<<1)|0x00,buffer, 1, pBuffer, Length);
|
||||
if (status != 0)
|
||||
{
|
||||
printf("===== Error: I2C write status = 0x%x! =====\r\n", status);
|
||||
|
|
|
@ -19,7 +19,7 @@ static_library("module_battery_example") {
|
|||
|
||||
include_dirs = [
|
||||
"//utils/native/lite/include",
|
||||
"//kernel/liteos_m/kal/cmsis",
|
||||
"//third_party/cmsis/CMSIS/RTOS2/Include",
|
||||
"//base/iot_hardware/peripheral/interfaces/kits",
|
||||
]
|
||||
}
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "iot_gpio.h"
|
||||
#include "iot_adc.h"
|
||||
#include "iot_errno.h"
|
||||
|
||||
#define TASK_STACK_SIZE 1024
|
||||
#define TASK_PRIO 25
|
||||
|
@ -56,13 +57,13 @@ static void BatteryTask(void)
|
|||
|
||||
//充电控制脚
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_6);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_6, HI_IO_FUNC_GPIO_6_GPIO);
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_6, IOT_IO_FUNC_GPIO_6_GPIO);
|
||||
IoTGpioSetDir(IOT_GPIO_IO_GPIO_6, IOT_GPIO_DIR_OUT);
|
||||
IoTGpioSetOutputVal(IOT_GPIO_IO_GPIO_6, IOT_GPIO_VALUE0);
|
||||
|
||||
//AD检测引脚初始化为浮夸模式
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_9);
|
||||
IotIoSetPull(IOT_GPIO_IO_GPIO_9, IOT_IO_PULL_NONE);
|
||||
IoTIoSetPull(IOT_GPIO_IO_GPIO_9, IOT_IO_PULL_NONE);
|
||||
|
||||
//OLED初始化
|
||||
OledIICInit();
|
||||
|
@ -76,8 +77,8 @@ static void BatteryTask(void)
|
|||
for (;;)
|
||||
{
|
||||
//获取电压采集值
|
||||
ret = IoTAdcRead(WIFI_IOT_ADC_CHANNEL_4, &adVal, WIFI_IOT_ADC_EQU_MODEL_8, WIFI_IOT_ADC_CUR_BAIS_DEFAULT, 256);
|
||||
if (ret != HI_ERR_SUCCESS)
|
||||
ret = IoTAdcRead(IOT_ADC_CHANNEL_4, &adVal, IOT_ADC_EQU_MODEL_8, IOT_ADC_CUR_BAIS_DEFAULT, 256);
|
||||
if (ret != IOT_SUCCESS)
|
||||
{
|
||||
printf("Failed to read adc! Err code = %d\r\n", ret);
|
||||
continue;
|
||||
|
|
|
@ -17,9 +17,7 @@
|
|||
#include "ohos_init.h"
|
||||
#include "cmsis_os2.h"
|
||||
|
||||
#include "hi_i2c.h"
|
||||
#include "hi_io.h"
|
||||
#include "hi_errno.h"
|
||||
#include "iot_errno.h"
|
||||
#include "iot_gpio.h"
|
||||
#include "iot_i2c.h"
|
||||
#include "iot_adc.h"
|
||||
|
@ -38,20 +36,20 @@ unsigned char g_send_data[2] = {0};
|
|||
* @param device_addr: Oled的设备地址,这里默认是0X78
|
||||
* @param send_len: 写入的数据长度
|
||||
*/
|
||||
unsigned int IICWrite(hi_i2c_idx id, unsigned short device_addr, unsigned int send_len)
|
||||
unsigned int IICWrite(unsigned int id, unsigned short device_addr, unsigned int send_len)
|
||||
{
|
||||
int status = 0;
|
||||
hi_i2c_data es8311_i2c_data = {0};
|
||||
IotI2cData es8311_i2c_data = {0};
|
||||
|
||||
es8311_i2c_data.send_buf = g_send_data;
|
||||
es8311_i2c_data.send_len = send_len;
|
||||
es8311_i2c_data.sendBuf = g_send_data;
|
||||
es8311_i2c_data.sendLen = send_len;
|
||||
status = hi_i2c_write(id, device_addr, &es8311_i2c_data);
|
||||
if (status != HI_ERR_SUCCESS)
|
||||
if (status != IOT_SUCCESS)
|
||||
{
|
||||
printf("===== Error: I2C write status = %d! =====\r\n", status);
|
||||
return status;
|
||||
}
|
||||
return HI_ERR_SUCCESS;
|
||||
return IOT_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,7 +61,7 @@ void IICWriteCommand(unsigned char IIC_Command)
|
|||
g_send_data[0] = 0x00;
|
||||
g_send_data[1] = IIC_Command;
|
||||
|
||||
IICWrite(HI_I2C_IDX_0, 0x78, 2);
|
||||
IICWrite(IOT_I2C_IDX_0, 0x78, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -75,7 +73,7 @@ void IICWriteData(unsigned char IIC_Data)
|
|||
g_send_data[0] = 0x40;
|
||||
g_send_data[1] = IIC_Data;
|
||||
|
||||
IICWrite(HI_I2C_IDX_0, 0x78, 2);
|
||||
IICWrite(IOT_I2C_IDX_0, 0x78, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -313,13 +311,13 @@ void OledIICInit(void)
|
|||
IoTGpioInit(IOT_GPIO_IO_GPIO_13);
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_14);
|
||||
|
||||
IotIoSetPull(IOT_GPIO_IO_GPIO_13, IOT_IO_PULL_UP);
|
||||
IotIoSetPull(IOT_GPIO_IO_GPIO_14, IOT_IO_PULL_UP);
|
||||
IoTIoSetPull(IOT_GPIO_IO_GPIO_13, IOT_IO_PULL_UP);
|
||||
IoTIoSetPull(IOT_GPIO_IO_GPIO_14, IOT_IO_PULL_UP);
|
||||
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_13, HI_IO_FUNC_GPIO_13_I2C0_SDA);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_14, HI_IO_FUNC_GPIO_14_I2C0_SCL);
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_13, IOT_IO_FUNC_GPIO_13_I2C0_SDA);
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_14, IOT_IO_FUNC_GPIO_14_I2C0_SCL);
|
||||
|
||||
hi_i2c_init(HI_I2C_IDX_0, 400 * 1000);
|
||||
IoTI2cInit(IOT_I2C_IDX_0, 400 * 1000);
|
||||
|
||||
OledInit();
|
||||
}
|
||||
|
|
|
@ -104,8 +104,8 @@ static void HalI2cInit()
|
|||
{
|
||||
IoTGpioInit(WIFI_IOT_IO_NAME_GPIO_13);
|
||||
IoTGpioInit(WIFI_IOT_IO_NAME_GPIO_14);
|
||||
IotIoSetFunc(WIFI_IOT_IO_NAME_GPIO_13, HI_IO_FUNC_GPIO_13_I2C0_SDA);
|
||||
IotIoSetFunc(WIFI_IOT_IO_NAME_GPIO_14, HI_IO_FUNC_GPIO_14_I2C0_SCL);
|
||||
IoTIoSetFunc(WIFI_IOT_IO_NAME_GPIO_13, IOT_IO_FUNC_GPIO_13_I2C0_SDA);
|
||||
IoTIoSetFunc(WIFI_IOT_IO_NAME_GPIO_14, IOT_IO_FUNC_GPIO_14_I2C0_SCL);
|
||||
IoTI2cInit(WIFI_IOT_I2C_IDX_0, OLED_I2C_BAUDRATE);
|
||||
}
|
||||
|
||||
|
@ -231,8 +231,8 @@ static void InitOledKeyGpioIsr(void)
|
|||
g_gpioIsrSemId = osSemaphoreNew(32, 0, NULL);
|
||||
|
||||
IoTGpioInit(IOT_GPIO_IO_GPIO_5);
|
||||
IotIoSetFunc(IOT_GPIO_IO_GPIO_5, HI_IO_FUNC_GPIO_5_GPIO);
|
||||
IotIoSetPull(IOT_GPIO_IO_GPIO_5, IOT_IO_PULL_UP);
|
||||
IoTIoSetFunc(IOT_GPIO_IO_GPIO_5, IOT_IO_FUNC_GPIO_5_GPIO);
|
||||
IoTIoSetPull(IOT_GPIO_IO_GPIO_5, IOT_IO_PULL_UP);
|
||||
|
||||
uint32_t ret = 0;
|
||||
ret = IoTGpioSetDir(IOT_GPIO_IO_GPIO_5, IOT_GPIO_DIR_IN);
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,200 +0,0 @@
|
|||
execute ota_builder with python...
|
||||
riscv32-unknown-elf-gcc -Iplatform/os/Huawei_LiteOS/kernel/include -Iconfig -DCONFIG_TEE_HUKS_SUPPORT -DCONFIG_CHIP_PKT_32K -DHI_BOARD_ASIC -DHI_ON_FLASH -E build/link/system_config.ld.S -o build/build_tmp/scripts/system_config.ld -P
|
||||
nvimg_builder(["build/build_tmp/scripts/system_config.ld"], ["build/link/system_config.ld.S"])
|
||||
product_name_list: ['sta']
|
||||
xml h file: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv
|
||||
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta
|
||||
app_subver_list: ['demo']
|
||||
current subver_name:demo
|
||||
root_dir: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool
|
||||
mdm_xml: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/xml_file/mss_nvi_db.xml
|
||||
HNV NAME:mss_nvi_db.xml
|
||||
nv_tool: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/tools/nv/cdbm
|
||||
app_subver_temp_dir:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo
|
||||
make app_subver_temp_dir
|
||||
mdmxml:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/xml_file/mss_nvi_db.xml
|
||||
src_xml_list: ['/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/xml_file/mss_nvi_db.xml']
|
||||
combin_xml:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/mss_nvi_db.xml
|
||||
root_list [<Element 'HISTUDIO' at 0x7f56df593c70>]
|
||||
hi_nv_modify_by_cfg
|
||||
cfg_file: nv
|
||||
|
||||
cmd_line= ('/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/tools/nv/cdbm', '/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv.xml', '/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv', '/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv')
|
||||
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv.xml
|
||||
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv
|
||||
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv
|
||||
===========Init HDB Start===========
|
||||
*********strDataTypeDefPath:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv/../nv/nv_modem_struct_def.txt
|
||||
*********strDataTypeDefPath:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv/../nv/nv_modem_struct_def.txt
|
||||
*********strDataTypeDefPath:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv/../nv/nv_factory_struct_def.txt
|
||||
===========Init HDB finish===========
|
||||
===========Write NV Buffer To File===========
|
||||
===========Write NV Buffer Finish===========
|
||||
RETURN VALUE:0
|
||||
dst_hnv= /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/hnv/Hi3861_wifiiot_app.hnv
|
||||
Factory NV total num:10
|
||||
NV_FILE_STRU :28
|
||||
Factory NV total size:824
|
||||
Normal NV total num:13
|
||||
NV_FILE_STRU :28
|
||||
Normal NV total size:766
|
||||
build hnv OK:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/hnv/Hi3861_wifiiot_app.hnv
|
||||
ENDING
|
||||
riscv32-unknown-elf-gcc -Iplatform/os/Huawei_LiteOS/kernel/include -Iconfig -DCONFIG_TEE_HUKS_SUPPORT -DCONFIG_CHIP_PKT_32K -DHI_BOARD_ASIC -DHI_ON_FLASH -DFLASH_FIRM_START=4248512 -E build/link/link.ld.S -o build/build_tmp/scripts/link.lds -P
|
||||
riscv32-unknown-elf-ld -nostartfiles -nostdlib -static --gc-sections -L/home/openharmony/device/talkweb/niobe/sdk_liteos/build/scripts/../../../../../huawei/hms/hilink/ohos/l0/hi3861/lib/wifi -L/home/tools/gcc_riscv32/bin/../lib/gcc/riscv32-unknown-elf/7.3.0 -Lbuild/build_tmp/libs/app/wifiiot_app -Lbuild/build_tmp/libs/components/at -Lbuild/build_tmp/libs/platform/drivers -Lbuild/build_tmp/libs/platform/system -Lbuild/build_tmp/scripts -Lbuild/libs -Lbuild/libs/hi3861/release/no_mesh -Lbuild/scripts -Lohos/libs -Tbuild/build_tmp/scripts/link.lds -Map=output/bin/Hi3861_wifiiot_app.map -o output/bin/Hi3861_wifiiot_app.out --start-group --no-whole-archive --whole-archive -ladc -lat -lauthmanager -lblackbox -lbootstrap -lbroadcast -lc_flash -lcfg -lcjson_static -lcmsis -lcpup -ldeviceauth -ldeviceauth_hal_liteos -ldiag -ldiscovery -ldrv -ldump_static -lflash -lgcc -lgpio -lhal_file_static -lhal_iothardware -lhal_sysparam -lhal_token_static -lhal_update_static -lhal_wifiaware -lhichainsdk -lhidumper_mini -lhievent_lite -lhilog_lite -lhiview_lite -lhota -lhuks_3.0_sdk -li2c -lio -liperf -llitekernel_flash -lltoswpa -llwip -lm_flash -lmbedtls -lmodule_enviroment_example -lnative_file -lparttab -lposix -lpwm -lres_cfg -lsamgr -lsamgr_adapter -lsamgr_source -lsdio -lsec_flash -lspiffs -lsysparam -lsystem -ltoken_static -ltrans_service -ltsensor -luart -lupg -lutils_kv_store -lwifi -lwifi_flash -lwifiaware -lwifiiot_app -lwifiservice -lwpa --end-group
|
||||
riscv32-unknown-elf-objcopy -O binary output/bin/Hi3861_wifiiot_app.out build/build_tmp/cache/Hi3861_wifiiot_app.bin
|
||||
baseimg_builder(["build/build_tmp/cache/Hi3861_wifiiot_app_base.bin", "build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app.bin"])
|
||||
cleanup(["build/build_tmp/cache/Hi3861_wifiiot_app_base.bin", "build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app.bin"])
|
||||
ota_builder(["build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app_base.bin", "build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin"])
|
||||
********************package kernel&nv upgrade file********************
|
||||
upg kernel file in: build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin
|
||||
upg normal nv file in: build/build_tmp/nv/Hi3861_wifiiot_app_normal.hnv
|
||||
upg file out: build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
|
||||
[common_head_offset=0][common_head_size=96]
|
||||
[common_key_offset=96][common_key_size=288]
|
||||
[common_head_sign_offset=384][common_head_sign_size=256]
|
||||
[section_head_offset=640][section_head_size=64]
|
||||
[upg_file_sign_offset=704][upg_file_sign_size=256]
|
||||
[padding_offset=638088][padding_size=8]
|
||||
[upg fill user info]chip:b'Hi3861'
|
||||
-------------build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin image info print start-------------
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[section_offset=0x280][section_len=0x9ba10]
|
||||
[file_type=0xf0][file_version=0x0][encrypt_flag=0x42]
|
||||
[file_len=0x9bc90][key_len=0x120]
|
||||
[file_attr=0x44]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[aes_key[0-1-14-15]=[0x0][0x0][0x0][0x0]]
|
||||
[aes_iv [0-1-14-15]=[0x0][0x0][0x0][0x0]]
|
||||
[common key][00]=[0x0]
|
||||
[common key][01]=[0x0]
|
||||
[common key][30]=[0x0]
|
||||
[common key][31]=[0x0]
|
||||
[common sign][00]=[0x62]
|
||||
[common sign][01]=[0x81]
|
||||
[common sign][30]=[0x1e]
|
||||
[common sign][31]=[0x70]
|
||||
[section sign][00]=[0xea]
|
||||
[section sign][01]=[0xa6]
|
||||
[section sign][30]=[0xd4]
|
||||
[section sign][31]=[0xb2]
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[section_count=0x2]
|
||||
[section0_compress=0x0][section0_offset=0x3c0][section0_len=0x9a8c8]
|
||||
[section1_compress=0x0][section1_offset=0x9ac88][section1_len=0x1000]
|
||||
-------------build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin image info print end--------------
|
||||
riscv32-unknown-elf-objdump -d output/bin/Hi3861_wifiiot_app.out > output/bin/Hi3861_wifiiot_app.asm
|
||||
burn_bin_builder(["output/bin/Hi3861_wifiiot_app_burn.bin", "output/bin/Hi3861_wifiiot_app_allinone.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin", "output/bin/Hi3861_loader_signed.bin"])
|
||||
********************package hiburn file********************
|
||||
hbin flash boot file in : output/bin/Hi3861_boot_signed.bin
|
||||
hbin factory nv file in : build/build_tmp/nv/Hi3861_wifiiot_app_factory.hnv
|
||||
hbin normal nv file in : build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
|
||||
hbin upg file in : build/build_tmp/nv/Hi3861_wifiiot_app_factory.hnv
|
||||
hbin file out : output/bin/Hi3861_wifiiot_app_burn.bin
|
||||
-------------output/bin/Hi3861_wifiiot_app_burn.bin image info print start-------------
|
||||
[bin_size]=[0xa8c90]
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[section_offset=0x280][section_len=0x9ba10]
|
||||
[file_type=0xf0][file_version=0x0][encrypt_flag=0x42]
|
||||
[file_len=0x9bc90][key_len=0x120]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[aes_key[0,1,14,15]=[0x0][0x0][0x0][0x0]]
|
||||
[aes_iv[0,1,14,15]=[0x0][0x0][0x0][0x0]]
|
||||
-------------output/bin/Hi3861_wifiiot_app_burn.bin image info print end--------------
|
||||
['output/bin/Hi3861_loader_signed.bin', 'output/bin/Hi3861_wifiiot_app_burn.bin']
|
||||
[0, 0]
|
||||
[0, 2097152]
|
||||
[15360, 691344]
|
||||
[0, 1]
|
||||
4022250975
|
||||
boot_ota_builder(["output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin"], ["output/bin/Hi3861_boot_signed.bin"])
|
||||
********************package boot upgrade file********************
|
||||
boot upg file in: output/bin/Hi3861_boot_signed.bin
|
||||
boot upg file out: output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin
|
||||
[common_head_offset=0][common_head_size=96]
|
||||
[common_key_offset=96][common_key_size=288]
|
||||
[common_head_sign_offset=384][common_head_sign_size=256]
|
||||
[section_head_offset=640][section_head_size=64]
|
||||
[upg_file_sign_offset=704][upg_file_sign_size=256]
|
||||
[padding_offset=0][padding_size=0]
|
||||
[upg fill user info]chip:b'Hi3861'
|
||||
-------------output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin image info print start-------------
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[section_offset=0x280][section_len=0x60a0]
|
||||
[file_type=0xe1][file_version=0x0][encrypt_flag=0x42]
|
||||
[file_len=0x6320][key_len=0x120]
|
||||
[file_attr=0x44]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[aes_key[0-1-14-15]=[0x0][0x0][0x0][0x0]]
|
||||
[aes_iv [0-1-14-15]=[0x0][0x0][0x0][0x0]]
|
||||
[common key][00]=[0x0]
|
||||
[common key][01]=[0x0]
|
||||
[common key][30]=[0x0]
|
||||
[common key][31]=[0x0]
|
||||
[common sign][00]=[0xc9]
|
||||
[common sign][01]=[0x21]
|
||||
[common sign][30]=[0x2f]
|
||||
[common sign][31]=[0x82]
|
||||
[section sign][00]=[0x34]
|
||||
[section sign][01]=[0x40]
|
||||
[section sign][30]=[0x90]
|
||||
[section sign][31]=[0x2]
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[section_count=0x1]
|
||||
[section0_compress=0x0][section0_offset=0x3c0][section0_len=0x5f60]
|
||||
[section1_compress=0x0][section1_offset=0x0][section1_len=0x0]
|
||||
-------------output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin image info print end--------------
|
||||
compress_ota_builder(["output/bin/Hi3861_wifiiot_app_ota.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin"])
|
||||
********************package compress upgrade file********************
|
||||
compress upg file in: build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
|
||||
compress upg file out: output/bin/Hi3861_wifiiot_app_ota.bin
|
||||
lzma compress tool : /home/openharmony/device/talkweb/niobe/sdk_liteos/build/scripts/../../tools/lzma_tool/lzma_tool
|
||||
lzma src file : build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
|
||||
lzma out file : build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.lzma
|
||||
|
||||
LZMA 19.00 (x64) : Igor Pavlov : Public domain : 2019-02-21
|
||||
|
||||
Input size: 638096 (0 MiB)
|
||||
Output size: 398360 (0 MiB)
|
||||
[upgbin-compressbin]0x9bc90-0x13a000
|
||||
[common_head_offset=0][common_head_size=96]
|
||||
[common_key_offset=96][common_key_size=288]
|
||||
[common_head_sign_offset=384][common_head_sign_size=256]
|
||||
[section_head_offset=640][section_head_size=64]
|
||||
[upg_file_sign_offset=704][upg_file_sign_size=256]
|
||||
[padding_offset=399320][padding_size=8]
|
||||
[upg fill user info]chip:b'Hi3861'
|
||||
-------------output/bin/Hi3861_wifiiot_app_ota.bin image info print start-------------
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[section_offset=0x280][section_len=0x61560]
|
||||
[file_type=0xf0][file_version=0x0][encrypt_flag=0x42]
|
||||
[file_len=0x617e0][key_len=0x120]
|
||||
[file_attr=0x44]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[aes_key[0-1-14-15]=[0x0][0x0][0x0][0x0]]
|
||||
[aes_iv [0-1-14-15]=[0x0][0x0][0x0][0x0]]
|
||||
[common key][00]=[0x0]
|
||||
[common key][01]=[0x0]
|
||||
[common key][30]=[0x0]
|
||||
[common key][31]=[0x0]
|
||||
[common sign][00]=[0x4f]
|
||||
[common sign][01]=[0x8d]
|
||||
[common sign][30]=[0x57]
|
||||
[common sign][31]=[0x67]
|
||||
[section sign][00]=[0x48]
|
||||
[section sign][01]=[0xac]
|
||||
[section sign][30]=[0x3e]
|
||||
[section sign][31]=[0xaa]
|
||||
[image_id=0x3c78961e][struct_version=0x0]]
|
||||
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
|
||||
[section_count=0x1]
|
||||
[section0_compress=0x1][section0_offset=0x3c0][section0_len=0x61418]
|
||||
[section1_compress=0x0][section1_offset=0x0][section1_len=0x0]
|
||||
-------------output/bin/Hi3861_wifiiot_app_ota.bin image info print end--------------
|
||||
[95m
|
||||
< ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >
|
||||
BUILD SUCCESS
|
||||
< ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >
|
||||
[0m
|
|
@ -1,14 +0,0 @@
|
|||
Building at 2021/10/22 10:54:43
|
||||
----------------------------top-----------------
|
||||
lib_name: uart
|
||||
lib_name: adc
|
||||
lib_name: tsensor
|
||||
lib_name: i2c
|
||||
lib_name: pwm
|
||||
lib_name: cfg
|
||||
lib_name: parttab
|
||||
lib_name: upg
|
||||
lib_name: at
|
||||
lib_name: wifiiot_app
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~libpath: ['-L/home/openharmony/device/talkweb/niobe/sdk_liteos/build/scripts/../../../../../huawei/hms/hilink/ohos/l0/hi3861/lib/wifi', '-L/home/tools/gcc_riscv32/bin/../lib/gcc/riscv32-unknown-elf/7.3.0', '-Lbuild/build_tmp/libs/app/wifiiot_app', '-Lbuild/build_tmp/libs/components/at', '-Lbuild/build_tmp/libs/platform/drivers', '-Lbuild/build_tmp/libs/platform/system', '-Lbuild/build_tmp/scripts', '-Lbuild/libs', '-Lbuild/libs/hi3861/release/no_mesh', '-Lbuild/scripts', '-Lohos/libs']
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~libs: ['--no-whole-archive', '--whole-archive', '-ladc', '-lat', '-lauthmanager', '-lblackbox', '-lbootstrap', '-lbroadcast', '-lc_flash', '-lcfg', '-lcjson_static', '-lcmsis', '-lcpup', '-ldeviceauth', '-ldeviceauth_hal_liteos', '-ldiag', '-ldiscovery', '-ldrv', '-ldump_static', '-lflash', '-lgcc', '-lgpio', '-lhal_file_static', '-lhal_iothardware', '-lhal_sysparam', '-lhal_token_static', '-lhal_update_static', '-lhal_wifiaware', '-lhichainsdk', '-lhidumper_mini', '-lhievent_lite', '-lhilog_lite', '-lhiview_lite', '-lhota', '-lhuks_3.0_sdk', '-li2c', '-lio', '-liperf', '-llitekernel_flash', '-lltoswpa', '-llwip', '-lm_flash', '-lmbedtls', '-lmodule_enviroment_example', '-lnative_file', '-lparttab', '-lposix', '-lpwm', '-lres_cfg', '-lsamgr', '-lsamgr_adapter', '-lsamgr_source', '-lsdio', '-lsec_flash', '-lspiffs', '-lsysparam', '-lsystem', '-ltoken_static', '-ltrans_service', '-ltsensor', '-luart', '-lupg', '-lutils_kv_store', '-lwifi', '-lwifi_flash', '-lwifiaware', '-lwifiiot_app', '-lwifiservice', '-lwpa']
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue