【已解决】求一个axyu的进入低功耗的示例代码

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
a93749
Posts: 10

: :? axyu的低功耗该咋做,我把axyu3.5.0的示例代码翻来覆去的搜了几遍,没搜到低功耗该怎么进入,我看到有几个函数应该是低功耗相关的,稍微写了一下,希望大佬指点一二。

Code: Select all

STATIC VOID_T gd_senior_thread(VOID_T *arg)
{

TUYA_WAKEUP_SOURCE_BASE_CFG_T cfg;
#if 1
    cfg.source = TUYA_WAKEUP_SOURCE_TIMER;
    cfg.wakeup_para.timer_param.mode = TUYA_TIMER_MODE_ONCE;
    cfg.wakeup_para.timer_param.timer_num = 0;
    cfg.wakeup_para.timer_param.ms = 1000;
#else
    cfg.source = TUYA_WAKEUP_SOURCE_GPIO;
    cfg.wakeup_para.gpio_param.gpio_num = Senior_Pin;
    cfg.wakeup_para.gpio_param.level = TUYA_GPIO_LEVEL_HIGH;

#endif
    unsigned int value, sleep_time;
    TUYA_GPIO_BASE_CFG_T gpio_cfg;
    int gpio_num, direct, mode, level;

   
if (TUYA_WAKEUP_SOURCE_GPIO == cfg.source) { memset(&gpio_cfg, 0, sizeof(gpio_cfg)); gpio_cfg.direct = TUYA_GPIO_INPUT; if (TUYA_GPIO_LEVEL_HIGH == cfg.wakeup_para.gpio_param.level) { gpio_cfg.mode = TUYA_GPIO_PULLDOWN; gpio_cfg.level = TUYA_GPIO_LEVEL_LOW; } else if (TUYA_GPIO_LEVEL_LOW == cfg.wakeup_para.gpio_param.level) { gpio_cfg.mode = TUYA_GPIO_PULLUP; gpio_cfg.level = TUYA_GPIO_LEVEL_HIGH; } else { return OPRT_NOT_SUPPORTED; } gpio_num = cfg.wakeup_para.gpio_param.gpio_num; direct = (TUYA_GPIO_INPUT == gpio_cfg.direct) ? TUYA_GPIO_INPUT : TUYA_GPIO_OUTPUT; mode = (TUYA_GPIO_PULLUP == gpio_cfg.mode) ? TUYA_GPIO_PULLUP : TUYA_GPIO_PULLDOWN; level = (TUYA_GPIO_LEVEL_HIGH == gpio_cfg.level) ? TUYA_GPIO_LEVEL_HIGH : TUYA_GPIO_LEVEL_LOW; // os_printf(0,4,"%s: gpio_num %d direct %d mode %d level %d\r\n", // __func__, gpio_num, direct, mode, level); pin_func_set_gpio(gpio_num); psm_gpio_wakeup_config(gpio_num, 1); hal_gpio_dir_set(gpio_num, direct); //hal_gpio_set_pull_mode(gpio_num, mode); //hal_gpio_write(gpio_num, level); //psm_set_aon_gpio(gpio_num, mode); psm_deep_sleep(0); } else if (TUYA_WAKEUP_SOURCE_TIMER == cfg.source) { // os_printf(0,4,"%s: timer_num %d mode %d ms %d\r\n", // __func__, param->wakeup_para.timer_param.timer_num, // param->wakeup_para.timer_param.mode, param->wakeup_para.timer_param.ms); psm_enable_lower_deep_mode(true); if (cfg.wakeup_para.timer_param.ms < 1000) { sleep_time = 1; } else { sleep_time = (cfg.wakeup_para.timer_param.ms + 1000 - 1) / 1000; } psm_enable_lower_deep_mode(true); psm_deep_sleep(sleep_time); } else { return OPRT_NOT_SUPPORTED; } return OPRT_OK; }
Last edited by a93749 on 2023年 Jul 10日 10:59, edited 1 time in total.

Tags:
JSHANG
Posts: 35

Re: 求一个axyu的进入低功耗的示例代码

  1. GPIO唤醒
    cfg.source = TUYA_WAKEUP_SOURCE_GPIO;
    cfg.wakeup_para.gpio_param.gpio_num = 1; /* GPIO 0, 1, 2, 17 支持唤醒 /
    cfg.wakeup_para.gpio_param.level = TUYA_GPIO_LEVEL_HIGH; /
    TUYA_GPIO_LEVEL_HIGH/TUYA_GPIO_LEVEL_LOW 高/低电平触发 /
    tkl_wakeup_source_set(&cfg); /
    设置唤醒源 */

tkl_cpu_sleep_mode_set(1, TUYA_CPU_DEEP_SLEEP); /* 调用该函数进入deep sleep */

  1. 中断唤醒
    cfg.source = TUYA_WAKEUP_SOURCE_TIMER;
    cfg.wakeup_para.timer_param.mode = TUYA_TIMER_MODE_ONCE;
    cfg.wakeup_para.timer_param.timer_num = 0; /* 硬件定时器timer ID /
    cfg.wakeup_para.timer_param.ms = 30
    1000; /* 30s 后中断唤醒 /
    tkl_wakeup_source_set(&cfg); /
    设置唤醒源, 并进入deep sleep */
a93749
Posts: 10

Re: 求一个axyu的进入低功耗的示例代码

JSHANG 2023年 Jul 9日 18:07
  1. GPIO唤醒
    cfg.source = TUYA_WAKEUP_SOURCE_GPIO;
    cfg.wakeup_para.gpio_param.gpio_num = 1; /* GPIO 0, 1, 2, 17 支持唤醒 /
    cfg.wakeup_para.gpio_param.level = TUYA_GPIO_LEVEL_HIGH; /
    TUYA_GPIO_LEVEL_HIGH/TUYA_GPIO_LEVEL_LOW 高/低电平触发 /
    tkl_wakeup_source_set(&cfg); /
    设置唤醒源 */

tkl_cpu_sleep_mode_set(1, TUYA_CPU_DEEP_SLEEP); /* 调用该函数进入deep sleep */

  1. 中断唤醒
    cfg.source = TUYA_WAKEUP_SOURCE_TIMER;
    cfg.wakeup_para.timer_param.mode = TUYA_TIMER_MODE_ONCE;
    cfg.wakeup_para.timer_param.timer_num = 0; /* 硬件定时器timer ID /
    cfg.wakeup_para.timer_param.ms = 30
    1000; /* 30s 后中断唤醒 /
    tkl_wakeup_source_set(&cfg); /
    设置唤醒源, 并进入deep sleep */

好的,谢谢

小螃海
Posts: 45

Re: 【已解决】求一个axyu的进入低功耗的示例代码

您好,我己下载3.5.0版本SDK,然后编译提示这些函数没有定义,相关的头文件我己添加,这是什么原因?
APP_PATH=apps/19KWT_AXYU
APP_NAME=19KWT_AXYU
APP_VERSION=1.0.0
USER_CMD=
APP_NAME=19KWT_AXYU
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS
APP_VERSION= 1.0.0
TARGET_PLATFORM= eswin_ecr6600
grep: make.yaml: 没有那个文件或目录
toolchain Name: eswin_ecr6600
toolchain Repo: https://airtake-public-data-1254153901. ... r6600_.zip
toolchain Version:
++++++++++++++++++++ CI package fullname ++++++++++++++++++++
++++++++++++++++++++ the SDK ID 19KWT_AXYU_1.0.0_eswin_ecr6600 ++++++++++++++++++++
generate build_param for [ 19KWT_AXYU ] AT [ eswin_ecr6600 ]
+++++++++++++++++++++++++++++++++++

Project [ 19KWT_AXYU ] Param:

BUILD_DATE=2024_03_28
BUILD_TIME=21_06_22
GIT_USER=
IOT_SDK_VER=1.0.0
IPC_SDK_VER=1.0.0
SDK_FULL_VER=1.0.0
SDK_BETA_VER=
IOT_SDK_VER_MAJOR=1
IOT_SDK_VER_MINOR=0
IOT_SDK_VER_PATCH=0
KERNEL_VERSION=
PROJECT_NAME=19KWT_AXYU
TARGET_PLATFORM=eswin_ecr6600
TARGET_PLATFORM_REPO=https://airtake-public-data-1254153901. ... r6600_.zip
TARGET_PLATFORM_VERSION=
BUILD_STATIC=1
BUILD_SHARED=
SDK_ID=19KWT_AXYU_1.0.0_eswin_ecr6600

ROOT_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS
OUTPUT_DIR=$(ROOT_DIR)/output/$(TARGET_PLATFORM)_$(PROJECT_NAME)
OUTPUT_DIR_INC=$(OUTPUT_DIR)/include
OUTPUT_DIR_STATIC_LIB=$(OUTPUT_DIR)/static/lib
OUTPUT_DIR_SHARED_LIB=$(OUTPUT_DIR)/shared/lib
OUTPUT_DIR_STATIC_OBJS=$(OUTPUT_DIR)/static/objs
OUTPUT_DIR_SHARED_OBJS=$(OUTPUT_DIR)/shared/objs

COMPILE_PREX = /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos/../toolchain/nds32le-elf-mculib-v3s/bin/nds32le-elf-
TUYAOS_BUILD_PATH = /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos
AR = $(COMPILE_PREX)ar
CC = $(COMPILE_PREX)gcc
NM = $(COMPILE_PREX)nm
CPP = $(COMPILE_PREX)g++
STRIP = $(COMPILE_PREX)strip
OBJCOPY = $(COMPILE_PREX)objcopy
OBJDUMP = $(COMPILE_PREX)objdump
RANLIB = $(COMPILE_PREX)ranlib
CXX = $(COMPILE_PREX)g++

CFLAGS =
CFLAGS += -pipe -D_REENTRANT -Wall -Wno-unused-result
ifeq ($(CONFIG_OPERATING_SYSTEM), 100)
CFLAGS += -fPIC
endif

ifeq ($(CONFIG_TUYA_IOT_DEBUG), 1)
CFLAGS += -g
endif

ifdef PRJ_DEFINES
CFLAGS += $(PRJ_DEFINES)
endif

ifdef COMPILE_INCLUDE
CFLAGS += -I $(COMPILE_INCLUDE)
endif

ifdef COMPILE_LIB
export LD_LIBRARY_PATH=$(COMPILE_LIB)
endif

LINKFLAGS =
ifeq ($(CONFIG_OPERATING_SYSTEM), 100)
LINKFLAGS += -lpthread -lm
endif

ifdef PRJ_LINKS
LINKFLAGS += $(PRJ_LINKS)
endif


CC /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c
In file included from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
apps/19KWT_AXYU/include/my_apps.h:81: warning: "time_arm_disarm_adr" redefined
#define time_arm_disarm_adr (alarm_swtich_adr+1) //定时布撤防

apps/19KWT_AXYU/include/my_apps.h:49: note: this is the location of the previous definition
#define time_arm_disarm_adr 6 //定时布防或撤防标志

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'sned_dp_cmd':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:49:8: warning: implicit declaration of function 'tal_queue_post'; did you mean 'tal_time_get'? [-Wimplicit-function-declaration]
rt=tal_queue_post(send_dps_queue,in_buff,100);
~~~~~~~~~~
tal_time_get
In file included from include/adapter/utilities/include/tuya_cloud_types.h:20,
from include/adapter/pwm/include/tkl_pwm.h:19,
from apps/19KWT_AXYU/include/my_apps.h:4,
from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'create_dp_send_message':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:65:28: warning: implicit declaration of function 'tal_queue_create_init'; did you mean 'tal_mutex_create_init'? [-Wimplicit-function-declaration]
TUYA_CALL_ERR_GOTO(tal_queue_create_init(&send_dps_queue, 3SIZEOF(CHAR_T), 10), __EXIT);
~~~~~~~~~~~~~~~~~
include/base/include/tuya_error_code.h:845:11: note: in definition of macro 'TUYA_CALL_ERR_GOTO'
rt = (func);\
~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'get_dps_queue':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:78:8: warning: implicit declaration of function 'tal_queue_fetch'; did you mean 'tal_time_get'? [-Wimplicit-function-declaration]
rt=tal_queue_fetch(send_dps_queue,get_dps_queue,200);
^~~~~~~~~~~~~~
tal_time_get
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'timer_sensor_cb':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:223:8: warning: implicit declaration of function 'tkl_gpio_read' [-Wimplicit-function-declaration]
rt=tkl_gpio_read(door_sensor_pin,&read_level);
~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:274:13: warning: 'return' with a value, in function returning void
return read_sensor_state;
~~~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:215:9: note: declared here
void timer_sensor_cb(void)
~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:217:17: warning: variable 'rt' set but not used [-Wunused-but-set-variable]
OPERATE_RET rt=OPRT_OK;
^~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'send_data_to_wifi_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:702:45: warning: implicit declaration of function 'set_dp_doorcontact_state_update'; did you mean 'dpid_doorcontact_state'? [-Wimplicit-function-declaration]
set_dp_doorcontact_state_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
dpid_doorcontact_state
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:707:45: warning: implicit declaration of function 'set_dp_battery_percentage_update'; did you mean 'dpid_battery_percentage'? [-Wimplicit-function-declaration]
set_dp_battery_percentage_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dpid_battery_percentage
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:712:45: warning: implicit declaration of function 'set_dp_arm_disarm_update'; did you mean 'time_arm_disarm_adr'? [-Wimplicit-function-declaration]
set_dp_arm_disarm_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~
time_arm_disarm_adr
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:717:45: warning: implicit declaration of function 'set_dp_delay_alarm_update'; did you mean 'delay_alarm_adr'? [-Wimplicit-function-declaration]
set_dp_delay_alarm_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~~
delay_alarm_adr
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:720:45: warning: implicit declaration of function 'set_dp_alarm_time_update'; did you mean 'dpid_alarm_time'? [-Wimplicit-function-declaration]
set_dp_alarm_time_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~
dpid_alarm_time
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:725:45: warning: implicit declaration of function 'set_dp_volume_update' [-Wimplicit-function-declaration]
set_dp_volume_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:730:45: warning: implicit declaration of function 'set_dp_mode_selection_update'; did you mean 'dpid_mode_selection'? [-Wimplicit-function-declaration]
set_dp_mode_selection_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~~~~~
dpid_mode_selection
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:735:45: warning: implicit declaration of function 'set_dp_master_state_update'; did you mean 'dpid_master_state'? [-Wimplicit-function-declaration]
set_dp_master_state_update(1,get_dps_buff[2]);
~~~~~~~~~~~~~~~~~~~~~~
dpid_master_state
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:654:56: warning: variable 'get_dp_en' set but not used [-Wunused-but-set-variable]
dp_data=0,i,f_dps=0,dps_data=0,get_dps_buff[5],get_dp_en=1;
~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:654:29: warning: unused variable 'dps_data' [-Wunused-variable]
dp_data=0,i,f_dps=0,dps_data=0,get_dps_buff[5],get_dp_en=1;
~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:654:21: warning: unused variable 'f_dps' [-Wunused-variable]
dp_data=0,i,f_dps=0,dps_data=0,get_dps_buff[5],get_dp_en=1;
~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:654:19: warning: unused variable 'i' [-Wunused-variable]
dp_data=0,i,f_dps=0,dps_data=0,get_dps_buff[5],get_dp_en=1;
^
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:654:9: warning: unused variable 'dp_data' [-Wunused-variable]
dp_data=0,i,f_dps=0,dps_data=0,get_dps_buff[5],get_dp_en=1;
^~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:653:62: warning: unused variable 'get_dps_cnt' [-Wunused-variable]
u8 f_pull_lock=0,upload_pull_choose=0,ret,num=0,dp_id=0,get_dps_cnt=0,
~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:653:54: warning: unused variable 'dp_id' [-Wunused-variable]
u8 f_pull_lock=0,upload_pull_choose=0,ret,num=0,dp_id=0,get_dps_cnt=0,
~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:653:48: warning: unused variable 'num' [-Wunused-variable]
u8 f_pull_lock=0,upload_pull_choose=0,ret,num=0,dp_id=0,get_dps_cnt=0,
~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:653:44: warning: unused variable 'ret' [-Wunused-variable]
u8 f_pull_lock=0,upload_pull_choose=0,ret,num=0,dp_id=0,get_dps_cnt=0,

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:653:23: warning: unused variable 'upload_pull_choose' [-Wunused-variable]
u8 f_pull_lock=0,upload_pull_choose=0,ret,num=0,dp_id=0,get_dps_cnt=0,
^~~~~~~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:653:9: warning: unused variable 'f_pull_lock' [-Wunused-variable]
u8 f_pull_lock=0,upload_pull_choose=0,ret,num=0,dp_id=0,get_dps_cnt=0,
~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'led_display_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:816:21: warning: implicit declaration of function 'tkl_gpio_write'; did you mean 'tkl_pwm_init'? [-Wimplicit-function-declaration]
tkl_gpio_write(LED_PIN,TUYA_GPIO_LEVEL_LOW);
~~~~~~~~~~
tkl_pwm_init
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:798:37: warning: unused variable 'F_GET_LED_STATE' [-Wunused-variable]
u8 LED_STATE=0,GET_LED_STATE=0,F_GET_LED_STATE=0,DISP_OFF_LINE_CNT=0,
~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'task_3':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:931:21: warning: unused variable 'key_time' [-Wunused-variable]
static u16 ret,key_time=0;
~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:931:17: warning: unused variable 'ret' [-Wunused-variable]
static u16 ret,key_time=0;

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:930:17: warning: variable 'pwm_frq' set but not used [-Wunused-but-set-variable]
static u16 pwm_frq=0,pwm_resolution=0;
^~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'sleep_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1300:17: warning: implicit declaration of function 'enter_sleep' [-Wimplicit-function-declaration]
enter_sleep();
~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1223:22: warning: unused variable 'get_dp_data_cnt' [-Wunused-variable]
u8 f_cfg_flag=0,get_dp_data_cnt=0;
~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'sensor_det_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1416:29: warning: implicit declaration of function 'read_battery_voltage'; did you mean 'dpid_battery_percentage'? [-Wimplicit-function-declaration]
read_battery_voltage();
~~~~~~~~~~~~~~~~
dpid_battery_percentage
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1338:60: warning: unused variable 'len' [-Wunused-variable]
update_sensor_data_lock=0,led_disp_lock=0,spk_on=0,len=0,sensor_buff[3];

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1338:51: warning: unused variable 'spk_on' [-Wunused-variable]
update_sensor_data_lock=0,led_disp_lock=0,spk_on=0,len=0,sensor_buff[3];
^~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1338:35: warning: unused variable 'led_disp_lock' [-Wunused-variable]
update_sensor_data_lock=0,led_disp_lock=0,spk_on=0,len=0,sensor_buff[3];
~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1337:24: warning: unused variable 'sensor_read_num' [-Wunused-variable]
u8 ret,send_count,sensor_read_num,get_sensor_state,
~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1337:13: warning: unused variable 'send_count' [-Wunused-variable]
u8 ret,send_count,sensor_read_num,get_sensor_state,
~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1336:21: warning: unused variable 'QUEUE_STATE' [-Wunused-variable]
THREAD_STATE_E QUEUE_STATE=0;
~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'key_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1497:5: warning: implicit declaration of function 'tkl_gpio_init'; did you mean 'tkl_pwm_init'? [-Wimplicit-function-declaration]
tkl_gpio_init(KEY_DET, &in_pin_cfg);
~~~~~~~~~
tkl_pwm_init
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1545:21: warning: implicit declaration of function 'tuya_iot_wf_gw_unactive' [-Wimplicit-function-declaration]
tuya_iot_wf_gw_unactive();
~~~~~~~~~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1490:25: warning: variable 'key_short_count' set but not used [-Wunused-but-set-variable]
u8 i=0,key_value=0,key_short_count=0,key_lock=0;
~~~~~~~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1490:9: warning: unused variable 'i' [-Wunused-variable]
u8 i=0,key_value=0,key_short_count=0,key_lock=0;
^
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'create_my_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1646:77: warning: passing argument 4 of 'tal_thread_create_and_start' from incompatible pointer type [-Wincompatible-pointer-types]
tal_thread_create_and_start(&send_data_to_wifi_task_handle, NULL, NULL, send_data_to_wifi_task, NULL, &thrd_param);
~~~~~~~~~~~~~~~~~~
In file included from apps/19KWT_AXYU/include/my_apps.h:9,
from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
include/components/tal_system/include/tal_thread.h:93:65: note: expected 'THREAD_FUNC_CB' {aka 'void (
const)(void )'} but argument is of type 'void ()(void)'
CONST THREAD_FUNC_CB func,
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1651:71: warning: passing argument 4 of 'tal_thread_create_and_start' from incompatible pointer type [-Wincompatible-pointer-types]
tal_thread_create_and_start(&led_display_task_handle, NULL, NULL, led_display_task, NULL, &thrd_param);
~~~~~~~~~~~~
In file included from apps/19KWT_AXYU/include/my_apps.h:9,
from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
include/components/tal_system/include/tal_thread.h:93:65: note: expected 'THREAD_FUNC_CB' {aka 'void (* const)(void )'} but argument is of type 'void ()(void)'
CONST THREAD_FUNC_CB func,
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1656:61: warning: passing argument 4 of 'tal_thread_create_and_start' from incompatible pointer type [-Wincompatible-pointer-types]
tal_thread_create_and_start(&task_3_handle, NULL, NULL, task_3, NULL, &thrd_param);
~~
In file included from apps/19KWT_AXYU/include/my_apps.h:9,
from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
include/components/tal_system/include/tal_thread.h:93:65: note: expected 'THREAD_FUNC_CB' {aka 'void (* const)(void )'} but argument is of type 'void ()(void)'
CONST THREAD_FUNC_CB func,
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1666:63: warning: passing argument 4 of 'tal_thread_create_and_start' from incompatible pointer type [-Wincompatible-pointer-types]
tal_thread_create_and_start(&key_task_handle, NULL, NULL, key_task, NULL, &thrd_param);
~~~~
In file included from apps/19KWT_AXYU/include/my_apps.h:9,
from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
include/components/tal_system/include/tal_thread.h:93:65: note: expected 'THREAD_FUNC_CB' {aka 'void (* const)(void )'} but argument is of type 'void ()(void)'
CONST THREAD_FUNC_CB func,
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1671:65: warning: passing argument 4 of 'tal_thread_create_and_start' from incompatible pointer type [-Wincompatible-pointer-types]
tal_thread_create_and_start(&sleep_task_handle, NULL, NULL, sleep_task, NULL, &thrd_param);
~~~~~~
In file included from apps/19KWT_AXYU/include/my_apps.h:9,
from /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1:
include/components/tal_system/include/tal_thread.h:93:65: note: expected 'THREAD_FUNC_CB' {aka 'void (* const)(void )'} but argument is of type 'void ()(void)'
CONST THREAD_FUNC_CB func,
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1636:12: warning: unused variable 'test_buff' [-Wunused-variable]
CHAR_T test_buff[10];
~~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1635:9: warning: unused variable 'test' [-Wunused-variable]
int test;
~
At top level:
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:931:17: warning: 'ret' defined but not used [-Wunused-variable]
static u16 ret,key_time=0;
~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:931:21: warning: 'key_time' defined but not used [-Wunused-variable]
static u16 ret,key_time=0;
~~~~
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c: In function 'sensor_det_task':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/my_apps.c:1348:15: warning: 'ret' is used uninitialized in this function [-Wuninitialized]
if(ret!=OPRT_OK)
^
AR -rcs /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/lib/lib19KWT_AXYU.a /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/tal_uart.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/example_driver_pwm.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/tuya_device.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/my_apps.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/sleep.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/app_key.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/data_process.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/app_led.c.o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/apps/19KWT_AXYU/src/dp_process.c.o

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/lib/lib19KWT_AXYU.a build done.

AR -rcs /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/lib/libtuyaapp_components.a

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/lib/libtuyaapp_components.a build done.

AR -rcs /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/lib/libtuyaapp_drivers.a

/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/lib/libtuyaapp_drivers.a build done.

====== build app(19KWT_AXYU) begin =======

开始编译app

apps/19KWT_AXYU
19KWT_AXYU 1.0.0 eswin_ecr6600 apps/19KWT_AXYU
APP_BIN_NAME=19KWT_AXYU
APP_VERSION=1.0.0
TARGET_PLATFORM=eswin_ecr6600
APP_PATH=apps/19KWT_AXYU
USER_CMD=
USER_SW_VER=1.0.0
Start Compile
make[1]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya”
info text
echo w -- APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=
w -- APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=
make -C /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os BOARD_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya APP_NAME=19KWT_AXYU -w -- APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD= pass1dep
make[2]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
######################################generate config.h######################################
pass1dep:Boards/ecr6600/tuya/generated/config.h
make[2]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
make[1]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya”
Start Compile /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya


make[1]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya”
info text
echo w -- APP_BIN_NAME=19KWT_AXYU EXTRA_SDK_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS SDK_V=V2.0.0B06 APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=
w -- APP_BIN_NAME=19KWT_AXYU EXTRA_SDK_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS SDK_V=V2.0.0B06 APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=
make -C /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os BOARD_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya APP_NAME=19KWT_AXYU -w -- APP_BIN_NAME=19KWT_AXYU EXTRA_SDK_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS SDK_V=V2.0.0B06 APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD= all
make[2]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
######################################generate config.h######################################
pass1dep:Boards/ecr6600/tuya/generated/config.h
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/apps”
make[3]: 对“all”无需做任何事。
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/apps”
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/drivers”
make[3]: 对“all”无需做任何事。
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/drivers”
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/components”
make[3]: 对“all”无需做任何事。
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/components”
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards”
CC:ecr6600/tuya/generated/ld.script
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards”
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/arch”
make[3]: 对“all”无需做任何事。
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/arch”
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/os”
make[3]: 对“all”无需做任何事。
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/os”
make[3]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/toolchain/nds32le-elf-mculib-v3s/bin/nds32le-elf-gcc -nostartfiles -nostdlib -Lbuild/19KWT_AXYU/libs -L./libs -L/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/libs -o build/19KWT_AXYU/19KWT_AXYU.elf -Wl,--whole-archive -l19KWT_AXYU -ltuyaapp_components -ltuyaapp_drivers -ltuyaos -ltuyaos_adapter -lapps -lboard -los -larch -ldrivers -lcomponents -lversion -lpsm -lps_ble -lps_wifi -Wl,--no-whole-archive -TBoards/ecr6600/tuya/generated/ld.script -nostartfiles -nostdlib -Wl,--gc-sections -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -mcmodel=large -Os -landes -Wl,-Map=build/19KWT_AXYU/19KWT_AXYU.map
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/libs/lib19KWT_AXYU.a(sleep.c.o): In function tuya_deepsleep_enter':
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/sleep.c:13: undefined reference to
tkl_wakeup_source_set'
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/apps/19KWT_AXYU/src/sleep.c:19: undefined reference to tkl_wakeup_source_set'
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/libs/lib19KWT_AXYU.a(sleep.c.o): In function
tuya_deepsleep_enter':
sleep.c:(.text.tuya_deepsleep_enter+0x24): undefined reference to tkl_wakeup_source_set'
sleep.c:(.text.tuya_deepsleep_enter+0x28): undefined reference to
tkl_wakeup_source_set'
sleep.c:(.text.tuya_deepsleep_enter+0x44): undefined reference to tkl_wakeup_source_set'
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/libs/lib19KWT_AXYU.a(sleep.c.o):sleep.c:(.text.tuya_deepsleep_enter+0x48): more undefined references to
tkl_wakeup_source_set' follow
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:206:build/19KWT_AXYU/19KWT_AXYU.elf] 错误 1
make[3]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
make[2]: *** [Makefile:114:all] 错误 2
make[2]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
make[1]: *** [makefile:11:all] 错误 2
make[1]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya”
make: *** [/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/scripts/mk/app.mk:176:app_by_name] 错误 2

小螃海
Posts: 45

Re: 【已解决】求一个axyu的进入低功耗的示例代码

我把输入clean命令清除工程再次编译又提示这些

wp@wp-virtual-machine:~/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS$ ./build_app.sh apps/19KWT_AXYU 19KWT_AXYU 1.0.0 clean
APP_PATH=apps/19KWT_AXYU
APP_NAME=19KWT_AXYU
APP_VERSION=1.0.0
USER_CMD=clean
APP_NAME=19KWT_AXYU
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS
APP_VERSION= 1.0.0
TARGET_PLATFORM= eswin_ecr6600
grep: make.yaml: 没有那个文件或目录
toolchain Name: eswin_ecr6600
toolchain Repo: https://airtake-public-data-1254153901. ... r6600_.zip
toolchain Version:
++++++++++++++++++++ CI package fullname ++++++++++++++++++++
++++++++++++++++++++ the SDK ID 19KWT_AXYU_1.0.0_eswin_ecr6600 ++++++++++++++++++++
generate build_param for [ 19KWT_AXYU ] AT [ eswin_ecr6600 ]
+++++++++++++++++++++++++++++++++++

Project [ 19KWT_AXYU ] Param:

BUILD_DATE=2024_03_28
BUILD_TIME=21_14_31
GIT_USER=
IOT_SDK_VER=1.0.0
IPC_SDK_VER=1.0.0
SDK_FULL_VER=1.0.0
SDK_BETA_VER=
IOT_SDK_VER_MAJOR=1
IOT_SDK_VER_MINOR=0
IOT_SDK_VER_PATCH=0
KERNEL_VERSION=
PROJECT_NAME=19KWT_AXYU
TARGET_PLATFORM=eswin_ecr6600
TARGET_PLATFORM_REPO=https://airtake-public-data-1254153901. ... r6600_.zip
TARGET_PLATFORM_VERSION=
BUILD_STATIC=1
BUILD_SHARED=
SDK_ID=19KWT_AXYU_1.0.0_eswin_ecr6600

ROOT_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS
OUTPUT_DIR=$(ROOT_DIR)/output/$(TARGET_PLATFORM)_$(PROJECT_NAME)
OUTPUT_DIR_INC=$(OUTPUT_DIR)/include
OUTPUT_DIR_STATIC_LIB=$(OUTPUT_DIR)/static/lib
OUTPUT_DIR_SHARED_LIB=$(OUTPUT_DIR)/shared/lib
OUTPUT_DIR_STATIC_OBJS=$(OUTPUT_DIR)/static/objs
OUTPUT_DIR_SHARED_OBJS=$(OUTPUT_DIR)/shared/objs

COMPILE_PREX = /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos/../toolchain/nds32le-elf-mculib-v3s/bin/nds32le-elf-
TUYAOS_BUILD_PATH = /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos
AR = $(COMPILE_PREX)ar
CC = $(COMPILE_PREX)gcc
NM = $(COMPILE_PREX)nm
CPP = $(COMPILE_PREX)g++
STRIP = $(COMPILE_PREX)strip
OBJCOPY = $(COMPILE_PREX)objcopy
OBJDUMP = $(COMPILE_PREX)objdump
RANLIB = $(COMPILE_PREX)ranlib
CXX = $(COMPILE_PREX)g++

CFLAGS =
CFLAGS += -pipe -D_REENTRANT -Wall -Wno-unused-result
ifeq ($(CONFIG_OPERATING_SYSTEM), 100)
CFLAGS += -fPIC
endif

ifeq ($(CONFIG_TUYA_IOT_DEBUG), 1)
CFLAGS += -g
endif

ifdef PRJ_DEFINES
CFLAGS += $(PRJ_DEFINES)
endif

ifdef COMPILE_INCLUDE
CFLAGS += -I $(COMPILE_INCLUDE)
endif

ifdef COMPILE_LIB
export LD_LIBRARY_PATH=$(COMPILE_LIB)
endif

LINKFLAGS =
ifeq ($(CONFIG_OPERATING_SYSTEM), 100)
LINKFLAGS += -lpthread -lm
endif

ifdef PRJ_LINKS
LINKFLAGS += $(PRJ_LINKS)
endif


====== clean app(19KWT_AXYU) begin =======

开始清理app

apps/19KWT_AXYU
19KWT_AXYU 1.0.0 eswin_ecr6600 apps/19KWT_AXYU clean
APP_BIN_NAME=19KWT_AXYU
APP_VERSION=1.0.0
TARGET_PLATFORM=eswin_ecr6600
APP_PATH=apps/19KWT_AXYU
USER_CMD=clean
USER_SW_VER=1.0.0
Start Compile
Start Compile /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya


make[1]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya”
info text
echo w -- APP_BIN_NAME=19KWT_AXYU EXTRA_SDK_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS SDK_V=V2.0.0B06 APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=clean
w -- APP_BIN_NAME=19KWT_AXYU EXTRA_SDK_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS SDK_V=V2.0.0B06 APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=clean
make -C /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os BOARD_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya APP_NAME=19KWT_AXYU -w -- APP_BIN_NAME=19KWT_AXYU EXTRA_SDK_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS SDK_V=V2.0.0B06 APP_NAME=19KWT_AXYU APP_VER=1.0.0 USER_CMD=clean clean
make[2]: 进入目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
make[2]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os”
make[1]: 离开目录“/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/eswin_ecr6600_os/Boards/ecr6600/tuya”
------ clean app(19KWT_AXYU) end ---------
wp@wp-virtual-machine:~/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS$ ./build_app.sh apps/19KWT_AXYU 19KWT_AXYU 1.0.0
APP_PATH=apps/19KWT_AXYU
APP_NAME=19KWT_AXYU
APP_VERSION=1.0.0
USER_CMD=
APP_NAME=19KWT_AXYU
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS
APP_VERSION= 1.0.0
TARGET_PLATFORM= eswin_ecr6600
grep: make.yaml: 没有那个文件或目录
toolchain Name: eswin_ecr6600
toolchain Repo: https://airtake-public-data-1254153901. ... r6600_.zip
toolchain Version:
++++++++++++++++++++ CI package fullname ++++++++++++++++++++
++++++++++++++++++++ the SDK ID 19KWT_AXYU_1.0.0_eswin_ecr6600 ++++++++++++++++++++
generate build_param for [ 19KWT_AXYU ] AT [ eswin_ecr6600 ]
+++++++++++++++++++++++++++++++++++

Project [ 19KWT_AXYU ] Param:

BUILD_DATE=2024_03_28
BUILD_TIME=21_14_33
GIT_USER=
IOT_SDK_VER=1.0.0
IPC_SDK_VER=1.0.0
SDK_FULL_VER=1.0.0
SDK_BETA_VER=
IOT_SDK_VER_MAJOR=1
IOT_SDK_VER_MINOR=0
IOT_SDK_VER_PATCH=0
KERNEL_VERSION=
PROJECT_NAME=19KWT_AXYU
TARGET_PLATFORM=eswin_ecr6600
TARGET_PLATFORM_REPO=https://airtake-public-data-1254153901. ... r6600_.zip
TARGET_PLATFORM_VERSION=
BUILD_STATIC=1
BUILD_SHARED=
SDK_ID=19KWT_AXYU_1.0.0_eswin_ecr6600

ROOT_DIR=/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS
OUTPUT_DIR=$(ROOT_DIR)/output/$(TARGET_PLATFORM)_$(PROJECT_NAME)
OUTPUT_DIR_INC=$(OUTPUT_DIR)/include
OUTPUT_DIR_STATIC_LIB=$(OUTPUT_DIR)/static/lib
OUTPUT_DIR_SHARED_LIB=$(OUTPUT_DIR)/shared/lib
OUTPUT_DIR_STATIC_OBJS=$(OUTPUT_DIR)/static/objs
OUTPUT_DIR_SHARED_OBJS=$(OUTPUT_DIR)/shared/objs

COMPILE_PREX = /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos/../toolchain/nds32le-elf-mculib-v3s/bin/nds32le-elf-
TUYAOS_BUILD_PATH = /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos
AR = $(COMPILE_PREX)ar
CC = $(COMPILE_PREX)gcc
NM = $(COMPILE_PREX)nm
CPP = $(COMPILE_PREX)g++
STRIP = $(COMPILE_PREX)strip
OBJCOPY = $(COMPILE_PREX)objcopy
OBJDUMP = $(COMPILE_PREX)objdump
RANLIB = $(COMPILE_PREX)ranlib
CXX = $(COMPILE_PREX)g++

CFLAGS =
CFLAGS += -pipe -D_REENTRANT -Wall -Wno-unused-result
ifeq ($(CONFIG_OPERATING_SYSTEM), 100)
CFLAGS += -fPIC
endif

ifeq ($(CONFIG_TUYA_IOT_DEBUG), 1)
CFLAGS += -g
endif

ifdef PRJ_DEFINES
CFLAGS += $(PRJ_DEFINES)
endif

ifdef COMPILE_INCLUDE
CFLAGS += -I $(COMPILE_INCLUDE)
endif

ifdef COMPILE_LIB
export LD_LIBRARY_PATH=$(COMPILE_LIB)
endif

LINKFLAGS =
ifeq ($(CONFIG_OPERATING_SYSTEM), 100)
LINKFLAGS += -lpthread -lm
endif

ifdef PRJ_LINKS
LINKFLAGS += $(PRJ_LINKS)
endif


CC /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/src/system/tkl_thread.c
cc1: fatal error: vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/Boards/ecr6600/tuya/generated/config.h: No such file or directory
compilation terminated.
compile command:
/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos/../toolchain/nds32le-elf-mculib-v3s/bin/nds32le-elf-gcc -pipe -D_REENTRANT -Wall -Wno-unused-result -I/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos//..//tuyaos/tuyaos_adapter/include -I/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos//..//tuyaos/tuyaos_adapter/include/hostapd -include nds32_intrinsic.h -fmessage-length=0 -mcmodel=large -std=gnu99 -Os -mno-ifc -ffunction-sections -fdata-sections -g -Iinclude -Iinclude/adapter -Iinclude/adapter/pinmux -Iinclude/adapter/pinmux/include -Iinclude/adapter/wired -Iinclude/adapter/wired/include -Iinclude/adapter/wakeup -Iinclude/adapter/wakeup/include -Iinclude/adapter/i2s -Iinclude/adapter/i2s/include -Iinclude/adapter/pwm -Iinclude/adapter/pwm/include -Iinclude/adapter/register -Iinclude/adapter/register/include -Iinclude/adapter/network -Iinclude/adapter/network/include -Iinclude/adapter/uart -Iinclude/adapter/uart/include -Iinclude/adapter/pm -Iinclude/adapter/pm/include -Iinclude/adapter/hci -Iinclude/adapter/hci/include -Iinclude/adapter/watchdog -Iinclude/adapter/watchdog/include -Iinclude/adapter/init -Iinclude/adapter/init/include -Iinclude/adapter/system -Iinclude/adapter/system/include -Iinclude/adapter/rtc -Iinclude/adapter/rtc/include -Iinclude/adapter/i2c -Iinclude/adapter/i2c/include -Iinclude/adapter/wifi -Iinclude/adapter/wifi/include -Iinclude/adapter/adc -Iinclude/adapter/adc/include -Iinclude/adapter/spi -Iinclude/adapter/spi/include -Iinclude/adapter/security -Iinclude/adapter/security/include -Iinclude/adapter/gpio -Iinclude/adapter/gpio/include -Iinclude/adapter/flash -Iinclude/adapter/flash/include -Iinclude/adapter/bluetooth -Iinclude/adapter/bluetooth/include -Iinclude/adapter/timer -Iinclude/adapter/timer/include -Iinclude/adapter/utilities -Iinclude/adapter/utilities/include -Iinclude/adapter/dac -Iinclude/adapter/dac/include -Iinclude/components -Iinclude/components/tal_system_service -Iinclude/components/tal_system_service/include -Iinclude/components/tal_system_service/include/utilities -Iinclude/components/lib_transport -Iinclude/components/lib_transport/include -Iinclude/components/svc_api_iot -Iinclude/components/svc_api_iot/include -Iinclude/components/svc_bt -Iinclude/components/svc_bt/include -Iinclude/components/svc_dp -Iinclude/components/svc_dp/include -Iinclude/components/svc_wifi -Iinclude/components/svc_wifi/include -Iinclude/components/tal_security -Iinclude/components/tal_security/include -Iinclude/components/tal_network -Iinclude/components/tal_network/include -Iinclude/components/lib_cJSON -Iinclude/components/lib_cJSON/include -Iinclude/components/svc_lan -Iinclude/components/svc_lan/include -Iinclude/components/svc_tuya_cloud -Iinclude/components/svc_tuya_cloud/include -Iinclude/components/svc_tuya_cloud/include/netcfg_qrcode -Iinclude/components/svc_tuya_cloud/include/online_log -Iinclude/components/svc_tuya_cloud/include/http -Iinclude/components/svc_tuya_cloud/include/protocol -Iinclude/components/svc_tuya_cloud/include/timer_task -Iinclude/components/svc_tuya_cloud/include/mqtt -Iinclude/components/svc_tuya_cloud/include/tls -Iinclude/components/svc_tuya_cloud/include/log_seq -Iinclude/components/svc_tuya_cloud/include/iot_dns -Iinclude/components/svc_devos -Iinclude/components/svc_devos/include -Iinclude/components/tal_driver -Iinclude/components/tal_driver/include -Iinclude/components/svc_wifi_ffc -Iinclude/components/svc_wifi_ffc/include -Iinclude/components/svc_netmgr -Iinclude/components/svc_netmgr/include -Iinclude/components/lib_websocket -Iinclude/components/lib_websocket/include -Iinclude/components/svc_upgrade -Iinclude/components/svc_upgrade/include -Iinclude/components/base_uf -Iinclude/components/base_uf/include -Iinclude/components/base_db -Iinclude/components/base_db/include -Iinclude/components/tal_wifi -Iinclude/components/tal_wifi/include -Iinclude/components/lib_tls -Iinclude/components/lib_tls/include -Iinclude/components/lib_tls/include/psa -Iinclude/components/lib_tls/include/mbedtls -Iinclude/components/tal_hostapd -Iinclude/components/tal_hostapd/include -Iinclude/components/tal_lwip -Iinclude/components/tal_lwip/include -Iinclude/components/tal_lwip/include/compat -Iinclude/components/tal_lwip/include/compat/stdc -Iinclude/components/tal_lwip/include/compat/posix -Iinclude/components/tal_lwip/include/compat/posix/net -Iinclude/components/tal_lwip/include/compat/posix/arpa -Iinclude/components/tal_lwip/include/compat/posix/sys -Iinclude/components/tal_lwip/include/lwip -Iinclude/components/tal_lwip/include/lwip/apps -Iinclude/components/tal_lwip/include/lwip/arch -Iinclude/components/tal_lwip/include/lwip/prot -Iinclude/components/tal_lwip/include/lwip/priv -Iinclude/components/tal_lwip/include/netif -Iinclude/components/tal_lwip/include/netif/ppp -Iinclude/components/tal_lwip/include/netif/ppp/polarssl -Iinclude/components/svc_api_wifi -Iinclude/components/svc_api_wifi/include -Iinclude/components/tal_system -Iinclude/components/tal_system/include -Iinclude/components/lib_mqtt -Iinclude/components/lib_mqtt/include -Iinclude/components/base_event -Iinclude/components/base_event/include -Iinclude/components/tal_bluetooth -Iinclude/components/tal_bluetooth/include -Iinclude/components/svc_mf_test -Iinclude/components/svc_mf_test/include -Iinclude/components/lib_http -Iinclude/components/lib_http/include -Iinclude/components/svc_rpc -Iinclude/components/svc_rpc/include -Iinclude/base -Iinclude/base/include -Iinclude -Iinclude/adapter -Iinclude/adapter/pinmux -Iinclude/adapter/pinmux/include -Iinclude/adapter/wired -Iinclude/adapter/wired/include -Iinclude/adapter/wakeup -Iinclude/adapter/wakeup/include -Iinclude/adapter/i2s -Iinclude/adapter/i2s/include -Iinclude/adapter/pwm -Iinclude/adapter/pwm/include -Iinclude/adapter/register -Iinclude/adapter/register/include -Iinclude/adapter/network -Iinclude/adapter/network/include -Iinclude/adapter/uart -Iinclude/adapter/uart/include -Iinclude/adapter/pm -Iinclude/adapter/pm/include -Iinclude/adapter/hci -Iinclude/adapter/hci/include -Iinclude/adapter/watchdog -Iinclude/adapter/watchdog/include -Iinclude/adapter/init -Iinclude/adapter/init/include -Iinclude/adapter/system -Iinclude/adapter/system/include -Iinclude/adapter/rtc -Iinclude/adapter/rtc/include -Iinclude/adapter/i2c -Iinclude/adapter/i2c/include -Iinclude/adapter/wifi -Iinclude/adapter/wifi/include -Iinclude/adapter/adc -Iinclude/adapter/adc/include -Iinclude/adapter/spi -Iinclude/adapter/spi/include -Iinclude/adapter/security -Iinclude/adapter/security/include -Iinclude/adapter/gpio -Iinclude/adapter/gpio/include -Iinclude/adapter/flash -Iinclude/adapter/flash/include -Iinclude/adapter/bluetooth -Iinclude/adapter/bluetooth/include -Iinclude/adapter/timer -Iinclude/adapter/timer/include -Iinclude/adapter/utilities -Iinclude/adapter/utilities/include -Iinclude/adapter/dac -Iinclude/adapter/dac/include -Iinclude/components -Iinclude/components/tal_system_service -Iinclude/components/tal_system_service/include -Iinclude/components/tal_system_service/include/utilities -Iinclude/components/lib_transport -Iinclude/components/lib_transport/include -Iinclude/components/svc_api_iot -Iinclude/components/svc_api_iot/include -Iinclude/components/svc_bt -Iinclude/components/svc_bt/include -Iinclude/components/svc_dp -Iinclude/components/svc_dp/include -Iinclude/components/svc_wifi -Iinclude/components/svc_wifi/include -Iinclude/components/tal_security -Iinclude/components/tal_security/include -Iinclude/components/tal_network -Iinclude/components/tal_network/include -Iinclude/components/lib_cJSON -Iinclude/components/lib_cJSON/include -Iinclude/components/svc_lan -Iinclude/components/svc_lan/include -Iinclude/components/svc_tuya_cloud -Iinclude/components/svc_tuya_cloud/include -Iinclude/components/svc_tuya_cloud/include/netcfg_qrcode -Iinclude/components/svc_tuya_cloud/include/online_log -Iinclude/components/svc_tuya_cloud/include/http -Iinclude/components/svc_tuya_cloud/include/protocol -Iinclude/components/svc_tuya_cloud/include/timer_task -Iinclude/components/svc_tuya_cloud/include/mqtt -Iinclude/components/svc_tuya_cloud/include/tls -Iinclude/components/svc_tuya_cloud/include/log_seq -Iinclude/components/svc_tuya_cloud/include/iot_dns -Iinclude/components/svc_devos -Iinclude/components/svc_devos/include -Iinclude/components/tal_driver -Iinclude/components/tal_driver/include -Iinclude/components/svc_wifi_ffc -Iinclude/components/svc_wifi_ffc/include -Iinclude/components/svc_netmgr -Iinclude/components/svc_netmgr/include -Iinclude/components/lib_websocket -Iinclude/components/lib_websocket/include -Iinclude/components/svc_upgrade -Iinclude/components/svc_upgrade/include -Iinclude/components/base_uf -Iinclude/components/base_uf/include -Iinclude/components/base_db -Iinclude/components/base_db/include -Iinclude/components/tal_wifi -Iinclude/components/tal_wifi/include -Iinclude/components/lib_tls -Iinclude/components/lib_tls/include -Iinclude/components/lib_tls/include/psa -Iinclude/components/lib_tls/include/mbedtls -Iinclude/components/tal_hostapd -Iinclude/components/tal_hostapd/include -Iinclude/components/tal_lwip -Iinclude/components/tal_lwip/include -Iinclude/components/tal_lwip/include/compat -Iinclude/components/tal_lwip/include/compat/stdc -Iinclude/components/tal_lwip/include/compat/posix -Iinclude/components/tal_lwip/include/compat/posix/net -Iinclude/components/tal_lwip/include/compat/posix/arpa -Iinclude/components/tal_lwip/include/compat/posix/sys -Iinclude/components/tal_lwip/include/lwip -Iinclude/components/tal_lwip/include/lwip/apps -Iinclude/components/tal_lwip/include/lwip/arch -Iinclude/components/tal_lwip/include/lwip/prot -Iinclude/components/tal_lwip/include/lwip/priv -Iinclude/components/tal_lwip/include/netif -Iinclude/components/tal_lwip/include/netif/ppp -Iinclude/components/tal_lwip/include/netif/ppp/polarssl -Iinclude/components/svc_api_wifi -Iinclude/components/svc_api_wifi/include -Iinclude/components/tal_system -Iinclude/components/tal_system/include -Iinclude/components/lib_mqtt -Iinclude/components/lib_mqtt/include -Iinclude/components/base_event -Iinclude/components/base_event/include -Iinclude/components/tal_bluetooth -Iinclude/components/tal_bluetooth/include -Iinclude/components/svc_mf_test -Iinclude/components/svc_mf_test/include -Iinclude/components/lib_http -Iinclude/components/lib_http/include -Iinclude/components/svc_rpc -Iinclude/components/svc_rpc/include -Iinclude/base -Iinclude/base/include -I/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos//..//tuyaos/tuyaos_adapter/include -I/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos//..//tuyaos/tuyaos_adapter/include/hostapd -include nds32_intrinsic.h -fmessage-length=0 -mcmodel=large -std=gnu99 -Os -mno-ifc -ffunction-sections -fdata-sections -g -I include/ -I include -I include/adapter -I include/adapter/pinmux -I include/adapter/pinmux/include -I include/adapter/wired -I include/adapter/wired/include -I include/adapter/wakeup -I include/adapter/wakeup/include -I include/adapter/i2s -I include/adapter/i2s/include -I include/adapter/pwm -I include/adapter/pwm/include -I include/adapter/register -I include/adapter/register/include -I include/adapter/network -I include/adapter/network/include -I include/adapter/uart -I include/adapter/uart/include -I include/adapter/pm -I include/adapter/pm/include -I include/adapter/hci -I include/adapter/hci/include -I include/adapter/watchdog -I include/adapter/watchdog/include -I include/adapter/init -I include/adapter/init/include -I include/adapter/system -I include/adapter/system/include -I include/adapter/rtc -I include/adapter/rtc/include -I include/adapter/i2c -I include/adapter/i2c/include -I include/adapter/wifi -I include/adapter/wifi/include -I include/adapter/adc -I include/adapter/adc/include -I include/adapter/spi -I include/adapter/spi/include -I include/adapter/security -I include/adapter/security/include -I include/adapter/gpio -I include/adapter/gpio/include -I include/adapter/flash -I include/adapter/flash/include -I include/adapter/bluetooth -I include/adapter/bluetooth/include -I include/adapter/timer -I include/adapter/timer/include -I include/adapter/utilities -I include/adapter/utilities/include -I include/adapter/dac -I include/adapter/dac/include -I include/components -I include/components/tal_system_service -I include/components/tal_system_service/include -I include/components/tal_system_service/include/utilities -I include/components/lib_transport -I include/components/lib_transport/include -I include/components/svc_api_iot -I include/components/svc_api_iot/include -I include/components/svc_bt -I include/components/svc_bt/include -I include/components/svc_dp -I include/components/svc_dp/include -I include/components/svc_wifi -I include/components/svc_wifi/include -I include/components/tal_security -I include/components/tal_security/include -I include/components/tal_network -I include/components/tal_network/include -I include/components/lib_cJSON -I include/components/lib_cJSON/include -I include/components/svc_lan -I include/components/svc_lan/include -I include/components/svc_tuya_cloud -I include/components/svc_tuya_cloud/include -I include/components/svc_tuya_cloud/include/netcfg_qrcode -I include/components/svc_tuya_cloud/include/online_log -I include/components/svc_tuya_cloud/include/http -I include/components/svc_tuya_cloud/include/protocol -I include/components/svc_tuya_cloud/include/timer_task -I include/components/svc_tuya_cloud/include/mqtt -I include/components/svc_tuya_cloud/include/tls -I include/components/svc_tuya_cloud/include/log_seq -I include/components/svc_tuya_cloud/include/iot_dns -I include/components/svc_devos -I include/components/svc_devos/include -I include/components/tal_driver -I include/components/tal_driver/include -I include/components/svc_wifi_ffc -I include/components/svc_wifi_ffc/include -I include/components/svc_netmgr -I include/components/svc_netmgr/include -I include/components/lib_websocket -I include/components/lib_websocket/include -I include/components/svc_upgrade -I include/components/svc_upgrade/include -I include/components/base_uf -I include/components/base_uf/include -I include/components/base_db -I include/components/base_db/include -I include/components/tal_wifi -I include/components/tal_wifi/include -I include/components/lib_tls -I include/components/lib_tls/include -I include/components/lib_tls/include/psa -I include/components/lib_tls/include/mbedtls -I include/components/tal_hostapd -I include/components/tal_hostapd/include -I include/components/tal_lwip -I include/components/tal_lwip/include -I include/components/tal_lwip/include/compat -I include/components/tal_lwip/include/compat/stdc -I include/components/tal_lwip/include/compat/posix -I include/components/tal_lwip/include/compat/posix/net -I include/components/tal_lwip/include/compat/posix/arpa -I include/components/tal_lwip/include/compat/posix/sys -I include/components/tal_lwip/include/lwip -I include/components/tal_lwip/include/lwip/apps -I include/components/tal_lwip/include/lwip/arch -I include/components/tal_lwip/include/lwip/prot -I include/components/tal_lwip/include/lwip/priv -I include/components/tal_lwip/include/netif -I include/components/tal_lwip/include/netif/ppp -I include/components/tal_lwip/include/netif/ppp/polarssl -I include/components/svc_api_wifi -I include/components/svc_api_wifi/include -I include/components/tal_system -I include/components/tal_system/include -I include/components/lib_mqtt -I include/components/lib_mqtt/include -I include/components/base_event -I include/components/base_event/include -I include/components/tal_bluetooth -I include/components/tal_bluetooth/include -I include/components/svc_mf_test -I include/components/svc_mf_test/include -I include/components/lib_http -I include/components/lib_http/include -I include/components/svc_rpc -I include/components/svc_rpc/include -I include/base -I include/base/include -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/Boards/ecr6600/common/include -include vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/Boards/ecr6600/tuya/generated/config.h -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/dma -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/wdt -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/aon_core -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/ecc -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/hal -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/i2s -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/pwm -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/ir -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/encrypt_lock -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/sdcard -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/sdio_slave -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/uart -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/efuse -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/rtc -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/i2c -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/adc -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/aes -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/pd_core -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/pit -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/trng -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/hash -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/sdhci -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/spi -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/pmu -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/gpio -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/flash -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/drivers/timer -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/PS -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/PS/ble -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/PS/ble/module -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/PS/ble/module/nvds -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/ble -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/ble/hci -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/ble/thread -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/sntp -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/health_monitor -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/url_parser -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/fs -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/fs/fatfs -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/http_server -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/at -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/nv -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/mqtt -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/cli -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/wifi_crtl -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/telnet -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/components/platform_api -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/tx -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/wifi -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/wifi/net_al -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/wifi/rtos -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/ota -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/os -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/os/freertos -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/include/psm -I vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/../..//eswin_ecr6600_os/Boards/ecr6600/common/include -o /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/src/system/tkl_thread.c.o -c /home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/src/system/tkl_thread.c
make: *** [scripts/mk/xmake.mk:220:/home/wp/桌面/AXYU/ECR6600-TS2D_TuyaOS-3.5.0/software/TuyaOS/output/eswin_ecr6600_19KWT_AXYU/.objs/static/vendor/eswin_ecr6600/tuyaos/tuyaos_adapter/src/system/tkl_thread.c.o] 错误 1

Post Reply