您好,我己下载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.c17: 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.c22: 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.c29: 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.c60: 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.c51: 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.c35: 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.c24: 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.c13: 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.c21: 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.c5: 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.c21: 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.c25: 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.c9: 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.c77: 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.c71: 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.c61: 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.c63: 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.c65: 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.c12: 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.c9: 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.c15: 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