Page 1 of 2

TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 15:55
by 13558157082

PS C:\Users\86135\Documents\tuya\Projects\TLSR8258_TuyaOS-3.12.0> cd 'c:\Users\86135\Documents\tuya\Projects\TLSR8258_TuyaOS-3.12.0\software\TuyaOS\'
PS C:\Users\86135\Documents\tuya\Projects\TLSR8258_TuyaOS-3.12.0\software\TuyaOS> & python.exe .\build_app.py apps\tuyaos_demo_zg_light2 tuyaos_demo_zg_light2 1.0.0
**************** end of post build ******************
firmware information parse start...
Device_role: router
firmware information parse success
router
firmware information parse start...

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Image type
Exit : 0
Brief : Image type not specified
Optional : customized
Default : 0xD3A3
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Manufacturer id
Exit : 0
Brief : manu id not specified
Optional : customized
Default : 0x1141
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Module name
Exit : 0
Brief : model name is none
Optional : ZT3L,ZTLC5,ZTU,ZT5,ZT2S,ZTC etc
Default : not defined
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Chip id
Exit : 0
Brief : chip id is none
Optional : TLSR8258F1KET
Default : not defined,you must specify an correct chip!!!
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

--- Descriptions: this is a demo project
--- Device_role: router
--- Image_type: 0xd3a3
--- Manufacture id: 0x1141
--- Model id: TS0502B
--- Manufacture name: TZ32901000000_bhzkbugw
--- Capacity:
TZ32901000000_
--- Product type:TS0502B
--- Module name:ZT3L
--- Chip id:TLSR8258F1KET
firmware information parse success
file generate start...
./app_config.h
config file write success
file generate start...
src\app_config.cconfig file write success
uncompressing tc32_win.tar.gz ...
C:\Users\86135\Documents\tuya\Projects\TLSR8258_TuyaOS-3.12.0\software\TuyaOS\apps\tuyaos_demo_zg_light2\_build
process_begin: CreateProcess(NULL, echo "Building file: ../../../vendor/telink_zigbee/tuyaos/driver/tkl_spi.c", ...) failed.
make (e=2): 系统找不到指定的文件。

make: [vendor.mk:216: vendor/telink_zigbee/tuyaos/driver/tkl_spi.o] Error 2 (ignored)
process_begin: CreateProcess(NULL, echo "Invoking: TC32 Compiler", ...) failed.
make (e=2): 系统找不到指定的文件。

make: *** [vendor.mk:217: vendor/telink_zigbee/tuyaos/driver/tkl_spi.o] Error 2
tc32-elf-objcopy: 'C:/Users/86135/Documents/tuya/Projects/TLSR8258_TuyaOS-3.12.0/software/TuyaOS/apps/tuyaos_demo_zg_light2/build/tuyaos_demo_zg_light2.elf': No such file
Can not open file: C:/Users/86135/Documents/tuya/Projects/TLSR8258_TuyaOS-3.12.0/software/TuyaOS/apps/tuyaos_demo_zg_light2/
build/tuyaos_demo_zg_light2.bin.binTraceback (most recent call last):
File ".\build_app.py", line 85, in <module>
OTA_build(APP_PATH,APP_NAME,'tc32',APP_VERSION,secure_ota_enable)
File "C:\Users\86135\Documents\tuya\Projects\TLSR8258_TuyaOS-3.12.0\software\TuyaOS\tools\OTA\tl_check_fw.py", line 113, in OTA_build
shutil.copyfile(APP_NAME+'.bin','../../../tools/OTA/'+APP_NAME+'.bin')
File "D:\python3\install\lib\shutil.py", line 259, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'tuyaos_demo_zg_light2.bin'
PS C:\Users\86135\Documents\tuya\Projects\TLSR8258_TuyaOS-3.12.0\software\TuyaOS>


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 15:57
by 13558157082

重新安装环境也是不行


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:17
by huanghuan

1.你好,我们实测在多个电脑环境下,编译运行正常。请确认 tkl_spi.c 文件是否存在
2.怀疑是路径过长或用户文件权限导致异常,请将开发包搬移到比如 D:\TLSR8258_TuyaOS-3.12.0 下再次尝试


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:31
by 13558157082

路径的问题试过了,之前就是在D盘的,还有tkl_spi.c是存在的,


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:33
by 13558157082

PS E:\zigbee\TLSR8258_TuyaOS-3.12.0> cd 'e:\zigbee\TLSR8258_TuyaOS-3.12.0\software\TuyaOS\'
PS E:\zigbee\TLSR8258_TuyaOS-3.12.0\software\TuyaOS> & python.exe .\build_app.py apps\tuyaos_demo_zg_light2 tuyaos_demo_zg_light2 1.0.0
**************** end of post build ******************
firmware information parse start...
Device_role: router
firmware information parse success
router
firmware information parse start...

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Image type
Exit : 0
Brief : Image type not specified
Optional : customized
Default : 0xD3A3
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Manufacturer id
Exit : 0
Brief : manu id not specified
Optional : customized
Default : 0x1141
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Module name
Exit : 0
Brief : model name is none
Optional : ZT3L,ZTLC5,ZTU,ZT5,ZT2S,ZTC etc
Default : not defined
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

###-----------------------------------------------------------------------------###

TuyaOS SDK build notice

###-----------------------------------------------------------------------------###

Exceptions : Chip id
Exit : 0
Brief : chip id is none
Optional : TLSR8258F1KET
Default : not defined,you must specify an correct chip!!!
Yours : None

-----------------------------------------------------------------------------###
Refer to the TuyaOS development forum for more details about <app_config.yml>.
https://www.tuyaos.com/viewtopic.php?t=2633
###-----------------------------------------------------------------------------###

--- Descriptions: this is a demo project
--- Device_role: router
--- Image_type: 0xd3a3
--- Manufacture id: 0x1141
--- Model id: TS0502B
--- Manufacture name: TZ32901000000_bhzkbugw
--- Capacity:
TZ32901000000_
--- Product type:TS0502B
--- Module name:ZT3L
--- Chip id:TLSR8258F1KET
firmware information parse success
file generate start...
./app_config.h
config file write success
file generate start...
src\app_config.cconfig file write success
uncompressing tc32_win.tar.gz ...
E:\zigbee\TLSR8258_TuyaOS-3.12.0\software\TuyaOS\apps\tuyaos_demo_zg_light2\_build
process_begin: CreateProcess(NULL, echo "Building file: ../../../vendor/telink_zigbee/tuyaos/driver/tkl_spi.c", ...) failed.
make (e=2): 系统找不到指定的文件。

make: [vendor.mk:216: vendor/telink_zigbee/tuyaos/driver/tkl_spi.o] Error 2 (ignored)
process_begin: CreateProcess(NULL, echo "Invoking: TC32 Compiler", ...) failed.
make (e=2): 系统找不到指定的文件。

make: *** [vendor.mk:217: vendor/telink_zigbee/tuyaos/driver/tkl_spi.o] Error 2
tc32-elf-objcopy: 'E:/zigbee/TLSR8258_TuyaOS-3.12.0/software/TuyaOS/apps/tuyaos_demo_zg_light2/build/tuyaos_demo_zg_light2.elf': No such file
Can not open file: E:/zigbee/TLSR8258_TuyaOS-3.12.0/software/TuyaOS/apps/tuyaos_demo_zg_light2/
build/tuyaos_demo_zg_light2.bin.binTraceback (most recent call last):
File ".\build_app.py", line 85, in <module>
OTA_build(APP_PATH,APP_NAME,'tc32',APP_VERSION,secure_ota_enable)
File "E:\zigbee\TLSR8258_TuyaOS-3.12.0\software\TuyaOS\tools\OTA\tl_check_fw.py", line 113, in OTA_build
shutil.copyfile(APP_NAME+'.bin','../../../tools/OTA/'+APP_NAME+'.bin')
File "D:\python3\install\lib\shutil.py", line 259, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'tuyaos_demo_zg_light2.bin'
PS E:\zigbee\TLSR8258_TuyaOS-3.12.0\software\TuyaOS>

这是又重新放到了E盘的测试结果,重新下载的SDK


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:34
by 13558157082

确实是这个电脑的问题,用别人的电脑验证可以的


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:37
by huanghuan

请把你的 TLSR8258_TuyaOS-3.12.0 文件夹上传下,我们确认下


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:39
by 13558157082

好的


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:42
by 13558157082

但是文件太大了,上传不了,SDK是直接在IDE上下载的,应该没啥变化


Re: TLS8258, zigbee设备开发包3.12.0,所有demo编译报错问题

Posted: 2025年 Oct 23日 16:43
by huanghuan

嗯,我们这边SDK是直接在IDE上下载后没有类似报错,看下文件权限情况,或者重启下电脑试下