Page 1 of 1

【已解决】7231nsdk编译失败

Posted: 2023年 Feb 11日 14:33
by cheng_JS

APP_VERSION= 1.0.0
TARGET_PLATFORM= bk7231n
path error: apps/tuyaos_demo_examples/app.yaml
grep: make.yaml: 没有那个文件或目录

有没有那个大佬知道path error是啥情况


Re: 7231nsdk编译失败

Posted: 2023年 Feb 13日 09:22
by 愚者千虑必有一得

能把编译错误的log发一下吗?这个文件在编译的时候应该是用不到的。


Re: 7231nsdk编译失败

Posted: 2023年 Feb 13日 11:43
by cheng_JS

./build_app.sh apps/tuyaos_pixel_driver_demo_quickstart tuyaos_pixel_driver_demo_quickstart 1.0.1
APP_PATH=apps/tuyaos_pixel_driver_demo_quickstart
APP_NAME=tuyaos_pixel_driver_demo_quickstart
APP_VERSION=1.0.1
USER_CMD=
APP_NAME=tuyaos_pixel_driver_demo_quickstart
/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS
APP_VERSION= 1.0.1
TARGET_PLATFORM= bk7231n
path error: apps/tuyaos_pixel_driver_demo_quickstart/app.yaml
grep: make.yaml: 没有那个文件或目录
toolchain Name: bk7231n
toolchain Repo: https://airtake-public-data-1254153901. ... 7231n_.zip
toolchain Version:
++++++++++++++++++++ CI package fullname ++++++++++++++++++++
++++++++++++++++++++ the SDK ID tuyaos_pixel_driver_demo_quickstart_1.0.1_bk7231n ++++++++++++++++++++
generate build_param for [ tuyaos_pixel_driver_demo_quickstart ] AT [ bk7231n ]
+++++++++++++++++++++++++++++++++++

Project [ tuyaos_pixel_driver_demo_quickstart ] Param:

BUILD_DATE=2023_02_13
BUILD_TIME=11_35_56
GIT_USER=
IOT_SDK_VER=1.0.1
IPC_SDK_VER=1.0.1
SDK_FULL_VER=1.0.1
SDK_BETA_VER=
IOT_SDK_VER_MAJOR=1
IOT_SDK_VER_MINOR=0
IOT_SDK_VER_PATCH=1
KERNEL_VERSION=
PROJECT_NAME=tuyaos_pixel_driver_demo_quickstart
TARGET_PLATFORM=bk7231n
TARGET_PLATFORM_REPO=https://airtake-public-data-1254153901. ... 7231n_.zip
TARGET_PLATFORM_VERSION=
BUILD_STATIC=1
BUILD_SHARED=
SDK_ID=tuyaos_pixel_driver_demo_quickstart_1.0.1_bk7231n

ROOT_DIR=/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/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/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos/../toolchain/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-
TUYAOS_BUILD_PATH = /home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/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 application static ...
CC /home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/apps/tuyaos_pixel_driver_demo_quickstart/src/tdd_leds_pixel/tdd_pixel_ws2812_opt.c
/bin/sh: 1: /home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos/../toolchain/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc: not found
compile command:
/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos/../toolchain/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc -pipe -D_REENTRANT -Wall -Wno-unused-result -I/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos//..//../../adapter/system/include -I/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos//..//../../adapter/system/include/driver -I/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos//..//../../adapter/system/include/system -I/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/vendor/bk7231n/tuyaos//..//../../adapter/utilities/include -g -mthumb -mcpu=arm968e-s -march=armv5te -mthumb-interwork -mlittle-endian -Os -std=c99 -ffunction-sections -Wall -fsigned-char -fdata-sections -Wunknown-pragmas -nostdlib -Wno-unused-function -Wno-unused-but-set-variable -Iapps/tuyaos_pixel_driver_demo_quickstart/include -Iapps/tuyaos_pixel_driver_demo_quickstart/include/tdd_leds_pixel -Iapps/tuyaos_pixel_driver_demo_quickstart/include/tdl_leds_pixel_manage -Iinclude -Iinclude/base -Iinclude/base/include -Iinclude/adapter -Iinclude/adapter/register -Iinclude/adapter/register/include -Iinclude/adapter/flash -Iinclude/adapter/flash/include -Iinclude/adapter/pinmux -Iinclude/adapter/pinmux/include -Iinclude/adapter/network -Iinclude/adapter/network/include -Iinclude/adapter/pwm -Iinclude/adapter/pwm/include -Iinclude/adapter/spi -Iinclude/adapter/spi/include -Iinclude/adapter/init -Iinclude/adapter/init/include -Iinclude/adapter/pm -Iinclude/adapter/pm/include -Iinclude/adapter/i2c -Iinclude/adapter/i2c/include -Iinclude/adapter/wired -Iinclude/adapter/wired/include -Iinclude/adapter/dac -Iinclude/adapter/dac/include -Iinclude/adapter/system -Iinclude/adapter/system/include -Iinclude/adapter/bluetooth -Iinclude/adapter/bluetooth/include -Iinclude/adapter/adc -Iinclude/adapter/adc/include -Iinclude/adapter/watchdog -Iinclude/adapter/watchdog/include -Iinclude/adapter/wifi -Iinclude/adapter/wifi/include -Iinclude/adapter/i2s -Iinclude/adapter/i2s/include -Iinclude/adapter/gpio -Iinclude/adapter/gpio/include -Iinclude/adapter/rtc -Iinclude/adapter/rtc/include -Iinclude/adapter/hci -Iinclude/adapter/hci/include -Iinclude/adapter/security -Iinclude/adapter/security/include -Iinclude/adapter/timer -Iinclude/adapter/timer/include -Iinclude/adapter/utilities -Iinclude/adapter/utilities/include -Iinclude/adapter/uart -Iinclude/adapter/uart/include -Iinclude/components -Iinclude/components/tal_network -Iinclude/components/tal_network/include -Iinclude/components/tal_system_service -Iinclude/components/tal_system_service/include -Iinclude/components/tal_system_service/include/utilities -Iinclude/components/svc_tuya_cloud -Iinclude/components/svc_tuya_cloud/include -Iinclude/components/svc_tuya_cloud/include/mqtt -Iinclude/components/svc_tuya_cloud/include/iot_dns -Iinclude/components/svc_tuya_cloud/include/timer_task -Iinclude/components/svc_tuya_cloud/include/tls -Iinclude/components/svc_tuya_cloud/include/log_seq -Iinclude/components/svc_tuya_cloud/include/http -Iinclude/components/svc_tuya_cloud/include/netcfg_qrcode -Iinclude/components/svc_tuya_cloud/include/online_log -Iinclude/components/svc_tuya_cloud/include/protocol -Iinclude/components/lib_http -Iinclude/components/lib_http/include -Iinclude/components/svc_netmgr -Iinclude/components/svc_netmgr/include -Iinclude/components/base_uf -Iinclude/components/base_uf/include -Iinclude/components/lib_mqtt -Iinclude/components/lib_mqtt/include -Iinclude/components/svc_rpc -Iinclude/components/svc_rpc/include -Iinclude/components/lib_websocket -Iinclude/components/lib_websocket/include -Iinclude/components/tal_bluetooth -Iinclude/components/tal_bluetooth/include -Iinclude/components/svc_wifi_ffc -Iinclude/components/svc_wifi_ffc/include -Iinclude/components/lib_cJSON -Iinclude/components/lib_cJSON/include -Iinclude/components/svc_wifi -Iinclude/components/svc_wifi/include -Iinclude/components/lib_transport -Iinclude/components/lib_transport/include -Iinclude/components/svc_devos -Iinclude/components/svc_devos/include -Iinclude/components/base_security -Iinclude/components/base_security/include -Iinclude/components/svc_lan -Iinclude/components/svc_lan/include -Iinclude/components/tal_wired -Iinclude/components/tal_wired/include -Iinclude/components/lib_tls -Iinclude/components/lib_tls/include -Iinclude/components/lib_tls/include/mbedtls -Iinclude/components/svc_api_wifi -Iinclude/components/svc_api_wifi/include -Iinclude/components/svc_wired -Iinclude/components/svc_wired/include -Iinclude/components/tal_system -Iinclude/components/tal_system/include -Iinclude/components/base_db -Iinclude/components/base_db/include -Iinclude/components/tal_lwip -Iinclude/components/tal_lwip/include -Iinclude/components/tal_lwip/include/lwip -Iinclude/components/tal_lwip/include/lwip/priv -Iinclude/components/tal_lwip/include/lwip/prot -Iinclude/components/tal_lwip/include/lwip/arch -Iinclude/components/tal_lwip/include/lwip/apps -Iinclude/components/tal_lwip/include/compat -Iinclude/components/tal_lwip/include/compat/posix -Iinclude/components/tal_lwip/include/compat/posix/arpa -Iinclude/components/tal_lwip/include/compat/posix/net -Iinclude/components/tal_lwip/include/compat/posix/sys -Iinclude/components/tal_lwip/include/compat/stdc -Iinclude/components/tal_lwip/include/netif -Iinclude/components/tal_lwip/include/netif/ppp -Iinclude/components/tal_lwip/include/netif/ppp/polarssl -Iinclude/components/tal_wifi -Iinclude/components/tal_wifi/include -Iinclude/components/base_event -Iinclude/components/base_event/include -Iinclude/components/svc_upgrade -Iinclude/components/svc_upgrade/include -Iinclude/components/tal_compatible -Iinclude/components/tal_compatible/include -Iinclude/components/svc_dp -Iinclude/components/svc_dp/include -Iinclude/components/svc_api_wired -Iinclude/components/svc_api_wired/include -Iinclude/components/tal_driver -Iinclude/components/tal_driver/include -Iinclude/components/svc_bt -Iinclude/components/svc_bt/include -Iinclude/components/svc_api_iot -Iinclude/components/svc_api_iot/include -Iinclude/components/svc_mf_test -Iinclude/components/svc_mf_test/include -Iinclude -Iinclude/base -Iinclude/base/include -Iinclude/adapter -Iinclude/adapter/register -Iinclude/adapter/register/include -Iinclude/adapter/flash -Iinclude/adapter/flash/include -Iinclude/adapter/pinmux -Iinclude/adapter/pinmux/include -Iinclude/adapter/network -Iinclude/adapter/network/include -Iinclude/adapter/pwm -Iinclude/adapter/pwm/include -Iinclude/adapter/spi -Iinclude/adapter/spi/include -Iinclude/adapter/init -Iinclude/adapter/init/include -Iinclude/adapter/pm -Iinclude/adapter/pm/include -Iinclude/adapter/i2c -Iinclude/adapter/i2c/include -Iinclude/adapter/wired -Iinclude/adapter/wired/include -Iinclude/adapter/dac -Iinclude/adapter/dac/include -Iinclude/adapter/system -Iinclude/adapter/system/include -Iinclude/adapter/bluetooth -Iinclude/adapter/bluetooth/include -Iinclude/adapter/adc -Iinclude/adapter/adc/include -Iinclude/adapter/watchdog -Iinclude/adapter/watchdog/include -Iinclude/adapter/wifi -Iinclude/adapter/wifi/include -Iinclude/adapter/i2s -Iinclude/adapter/i2s/include -Iinclude/adapter/gpio -Iinclude/adapter/gpio/include -Iinclude/adapter/rtc -Iinclude/adapter/rtc/include -Iinclude/adapter/hci -Iinclude/adapter/hci/include -Iinclude/adapter/security -Iinclude/adapter/security/include -Iinclude/adapter/timer -Iinclude/adapter/timer/include -Iinclude/adapter/utilities -Iinclude/adapter/utilities/include -Iinclude/adapter/uart -Iinclude/adapter/uart/include -Iinclude/components -Iinclude/components/tal_network -Iinclude/components/tal_network/include -Iinclude/components/tal_system_service -Iinclude/components/tal_system_service/include -Iinclude/components/tal_system_service/include/utilities -Iinclude/components/svc_tuya_cloud -Iinclude/components/svc_tuya_cloud/include -Iinclude/components/svc_tuya_cloud/include/mqtt -Iinclude/components/svc_tuya_cloud/include/iot_dns -Iinclude/components/svc_tuya_cloud/include/timer_task -Iinclude/components/svc_tuya_cloud/include/tls -Iinclude/components/svc_tuya_cloud/include/log_seq -Iinclude/components/svc_tuya_cloud/include/http -Iinclude/components/svc_tuya_cloud/include/netcfg_qrcode -Iinclude/components/svc_tuya_cloud/include/online_log -Iinclude/components/svc_tuya_cloud/include/protocol -Iinclude/components/lib_http -Iinclude/components/lib_http/include -Iinclude/components/svc_netmgr -Iinclude/components/svc_netmgr/include -Iinclude/components/base_uf -Iinclude/components/base_uf/include -Iinclude/components/lib_mqtt -Iinclude/components/lib_mqtt/include -Iinclude/components/svc_rpc -Iinclude/components/svc_rpc/include -Iinclude/components/lib_websocket -Iinclude/components/lib_websocket/include -Iinclude/components/tal_bluetooth -Iinclude/components/tal_bluetooth/include -Iinclude/components/svc_wifi_ffc -Iinclude/components/svc_wifi_ffc/include -Iinclude/components/lib_cJSON -Iinclude/components/lib_cJSON/include -Iinclude/components/svc_wifi -Iinclude/components/svc_wifi/include -Iinclude/components/lib_transport -Iinclude/components/lib_transport/include -Iinclude/components/svc_devos -Iinclude/components/svc_devos/include -Iinclude/components/base_security -Iinclude/components/base_security/include -Iinclude/components/svc_lan -Iinclude/components/svc_lan/include -Iinclude/components/tal_wired -Iinclude/components/tal_wired/include -Iinclude/components/lib_tls -Iinclude/components/lib_tls/include -Iinclude/components/lib_tls/include/mbedtls -Iinclude/components/svc_api_wifi -Iinclude/components/svc_api_wifi/include -Iinclude/components/svc_wired -Iinclude/components/svc_wired/include -Iinclude/components/tal_system -Iinclude/components/tal_system/include -Iinclude/components/base_db -Iinclude/components/base_db/include -Iinclude/components/tal_lwip -Iinclude/components/tal_lwip/include -Iinclude/components/tal_lwip/include/lwip -Iinclude/components/tal_lwip/include/lwip/priv -Iinclude/components/tal_lwip/include/lwip/prot -Iinclude/components/tal_lwip/include/lwip/arch -Iinclude/components/tal_lwip/include/lwip/apps -Iinclude/components/tal_lwip/include/compat -Iinclude/components/tal_lwip/include/compat/posix -Iinclude/components/tal_lwip/include/compat/posix/arpa -Iinclude/components/tal_lwip/include/compat/posix/net -Iinclude/components/tal_lwip/include/compat/posix/sys -Iinclude/components/tal_lwip/include/compat/stdc -Iinclude/components/tal_lwip/include/netif -Iinclude/components/tal_lwip/include/netif/ppp -Iinclude/components/tal_lwip/include/netif/ppp/polarssl -Iinclude/components/tal_wifi -Iinclude/components/tal_wifi/include -Iinclude/components/base_event -Iinclude/components/base_event/include -Iinclude/components/svc_upgrade -Iinclude/components/svc_upgrade/include -Iinclude/components/tal_compatible -Iinclude/components/tal_compatible/include -Iinclude/components/svc_dp -Iinclude/components/svc_dp/include -Iinclude/components/svc_api_wired -Iinclude/components/svc_api_wired/include -Iinclude/components/tal_driver -Iinclude/components/tal_driver/include -Iinclude/components/svc_bt -Iinclude/components/svc_bt/include -Iinclude/components/svc_api_iot -Iinclude/components/svc_api_iot/include -Iinclude/components/svc_mf_test -Iinclude/components/svc_mf_test/include -o /home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/output/bk7231n_tuyaos_pixel_driver_demo_quickstart/.objs/static/apps/tuyaos_pixel_driver_demo_quickstart/src/tdd_leds_pixel/tdd_pixel_ws2812_opt.c.o -c /home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/apps/tuyaos_pixel_driver_demo_quickstart/src/tdd_leds_pixel/tdd_pixel_ws2812_opt.c
make: *** [scripts/mk/xmake.mk:220:/home/chenjinsheng/MY_File/bk7231n_new/BK7231N_3.3.3/software/TuyaOS/output/bk7231n_tuyaos_pixel_driver_demo_quickstart/.objs/static/apps/tuyaos_pixel_driver_demo_quickstart/src/tdd_leds_pixel/tdd_pixel_ws2812_opt.c.o] 错误 1


Re: 7231nsdk编译失败

Posted: 2023年 Feb 13日 11:44
by cheng_JS

大佬救命


Re: 7231nsdk编译失败

Posted: 2023年 Feb 13日 14:18
by 愚者千虑必有一得

稍等,已经安排同事在看了。


Re: 7231nsdk编译失败

Posted: 2023年 Feb 13日 15:01
by yingtao_33
cheng_JS 2023年 Feb 13日 11:44

大佬救命

企业微信截图_16762705106558.png

从日志中看是找不到工具链,建议手动将vendor文件下的东西删除,然后再尝试一下重新编译


Re: 7231nsdk编译失败

Posted: 2023年 Feb 14日 16:40
by cheng_JS

非常感谢,有没有基于BK7231N_3.3.3的SDK关于进入低功耗的例程,我们想做一个温湿度传感器以及太阳能灯的产品,这两者都需要低功耗的场景


Re: 7231nsdk编译失败

Posted: 2023年 Feb 15日 11:05
by 愚者千虑必有一得

你好,你的低功耗指标需求是什么?7231n本身功耗素质一般。如果有较高的需求,7231n可能无法满足。