找回密码
 立即注册

微信扫码登录

查看: 134|回复: 2

Telink Development 快速入门

[复制链接]

2

主题

16

回帖

128

积分

版主

积分
128
发表于 2026-8-6 19:17:47 | 显示全部楼层 |阅读模式 来自 上海
本帖最后由 TL_WXS 于 2026-8-6 19:21 编辑

Telink VSCode插件开发入门
参考网站: 开发工具下载网站   插件使用文档    插件使用视频

完成编译需要下载SDK, CMake, Toolchain工具(会提示安装对应版本, 用户不需要关心使用哪个版本).
1. 安装Telink VSCode插件
2. 使用VSCode打开对应的SDK工程
3. 检查SDK工程是否有CMake工程 (VSCode插件以CMake工程为基础)
    是否有CMakeLists.txt文件和对应的cmake_configs/**_cmake.json工程配置文件

      check_cmake_file.png
    或者插件栏是否显示工程
      project_outline_show_project.png
    如果没有cmake工程, 插件提供工程转换和生成功能, 选择工程, 成功生成工程后, 将会显示如上图的工程视图.
      cmake_project_gen.png
4. 安装cmake软件
    如果系统已安装cmake(需要在电脑环境中可以找到),会显示版本号, 可以跳过安装步骤; cmake版本 < 3.19或者没有cmake软件进入右键菜单选择Install.
      cmake_software_check.png
5. 点击编译
    点击编译后, 第一次使用, 编译过程会提示安装对应的Toolchain工具链. 等待安装完成后, 开始编译.
      build_prompt_install_toolchain.png
6. 烧录
    [BDT烧录使用文档](https://doc.telink-semi.cn/doc/z ... t_wins/bdt_wins_cn/), 如果使用Jtag调试工具, 忽略此步骤.
7. 调试
    [VSCode Jtag调试文档](https://doc.telink-semi.cn/doc/z ... scode_ext_ug_cn/#_8)
    Jtag调试支持固件烧录.
8. 新建工程
    [新建工程参考文档](https://doc.telink-semi.cn/doc/z ... scode_ext_ug_cn/#_4)
      new_project_doc.png




Telink IoT Studio快速使用
1. 下载和安装Telink IoT Studio
2. [导入工程](https://doc.telink-semi.cn/doc/z ... o_User_Guide_cn/#_5)
     点击左上方File ---> Import...

      studio_import.png
3. 编译
    studio_build.png



2

主题

2

回帖

22

积分

英勇黄铜

积分
22
发表于 2026-8-10 17:32:24 | 显示全部楼层 来自 浙江杭州

vendor/common/simple_sdp.c.obj -MF CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/simple_sdp.c.obj.d -o CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/simple_sdp.c.obj -c D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common/simple_sdp.c
C:/Users/BAO-0/.Telink_Tools/tc32_130_Windows/tc32/bin/tc32-elf-gcc.exe   -O2 -fpack-struct -fshort-enums -finline-small-functions -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/../../.. -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/common -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/drivers/TC321X -D__PROJECT_TC321X_2P4G_FEATURE__=1 -DCHIP_TYPE=CHIP_TYPE_TC321X -std=gnu99 -fshort-wchar -fms-extensions -MMD -MP -MT CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/sync_word_check.c.obj -MF CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/sync_word_check.c.obj.d -o CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/sync_word_check.c.obj -c D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common/sync_word_check.c
C:/Users/BAO-0/.Telink_Tools/tc32_130_Windows/tc32/bin/tc32-elf-gcc.exe   -O2 -fpack-struct -fshort-enums -finline-small-functions -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/../../.. -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/common -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/drivers/TC321X -D__PROJECT_TC321X_2P4G_FEATURE__=1 -DCHIP_TYPE=CHIP_TYPE_TC321X -std=gnu99 -fshort-wchar -fms-extensions -MMD -MP -MT CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/tlkapi_debug.c.obj -MF CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/tlkapi_debug.c.obj.d -o CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/tlkapi_debug.c.obj -c D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common/tlkapi_debug.c
[100%] Building C object CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/user_config.c.obj
C:/Users/BAO-0/.Telink_Tools/tc32_130_Windows/tc32/bin/tc32-elf-gcc.exe   -O2 -fpack-struct -fshort-enums -finline-small-functions -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/../../.. -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/common -ID:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/drivers/TC321X -D__PROJECT_TC321X_2P4G_FEATURE__=1 -DCHIP_TYPE=CHIP_TYPE_TC321X -std=gnu99 -fshort-wchar -fms-extensions -MMD -MP -MT CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/user_config.c.obj -MF CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/user_config.c.obj.d -o CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/user_config.c.obj -c D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/vendor/common/user_config.c
[100%] Linking C executable tc321x_2p4g_feature.elf
"C:\\Users\\BAO-0\\.Telink_Tools\\tc32_130_Windows\\tc32/bin/tc32-elf-ld.exe" --gc-sections -TD:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/boot.link @CMakeFiles/tc321x_2p4g_feature.dir/objects1.rsp -o tc321x_2p4g_feature.elf @CMakeFiles/tc321x_2p4g_feature.dir/linkLibs.rsp
"C:\\Users\\BAO-0\\.Telink_Tools\\tc32_130_Windows\\tc32/bin/tc32-elf-objcopy.exe" tc321x_2p4g_feature.elf tc321x_2p4g_feature.bin
"C:\\Users\\BAO-0\\.Telink_Tools\\tc32_130_Windows\\tc32/bin/tc32-elf-objdump.exe" -x -l -S -D tc321x_2p4g_feature.elf > tc321x_2p4g_feature.lst
"C:\\Users\\BAO-0\\.Telink_Tools\\tc32_130_Windows\\tc32/bin/tc32-elf-size.exe" -t tc321x_2p4g_feature.elf
   text    data     bss     dec     hex filename
  24216     420    5138   29774    744e tc321x_2p4g_feature.elf
  24216     420    5138   29774    744e (TOTALS)
C:/Users/BAO-0/.Telink_Tools/tc32_130_Windows/bin/bash.exe D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/../../../script/bin_append_crc/bin_append.sh tc321x_2p4g_feature tc_ble_single_sdk_tc321x
*****************************************************
C:\Users\BAO-0\.Telink_Tools\tc32_130_Windows\tc32\bin\tc32-elf-objcopy.exe: 'tc_ble_single_sdk_tc321x.elf': No such file

check_fw in Windows...
D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/../../../script/bin_append_crc/bin_append.sh: line 6: ../../../../script/tl_check_fw/tl_check_fw2.exe: No such file or directory

D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/project/tlsr_tc32/tc321x/../../../script/bin_append_crc/bin_append.sh: line 8: ../../../../script/bin_append_crc/bin_append.exe: No such file or directory

*****************************************************
make[3]: Leaving directory `/d/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/cmake_builds/tc_ble_single_sdk_tc321x/TC32-GCC_Toolchain'
[100%] Built target tc321x_2p4g_feature
make[2]: Leaving directory `/d/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/cmake_builds/tc_ble_single_sdk_tc321x/TC32-GCC_Toolchain'
C:/Users/BAO-0/.Telink_Tools/cmake-4.0.2-windows-x86_64/bin/cmake.exe -E cmake_progress_start D:/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/cmake_builds/tc_ble_single_sdk_tc321x/TC32-GCC_Toolchain/CMakeFiles 0
make[1]: Leaving directory `/d/BLE_Devlop/tc_ble_single_sdk-V3.4.3.0_Patch_0002/tc_ble_single_sdk/cmake_builds/tc_ble_single_sdk_tc321x/我使用的TC3215开发板,编译完毕后没有生成对应的bin文件。上面是编译的log。帮忙分析下,可能产生的原因!


Snipaste_2026-08-10_17-29-27.png
Snipaste_2026-08-10_17-31-56.png

14

主题

120

回帖

1031

积分

管理员

积分
1031
发表于 2026-8-10 17:43:27 | 显示全部楼层 来自 上海
we_5198523577 发表于 2026-8-10 17:32
vendor/common/simple_sdp.c.obj -MF CMakeFiles/tc321x_2p4g_feature.dir/vendor/common/simple_sdp.c.ob ...

麻烦在BLE板块中新建帖子说明问题,谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2026-8-19 07:38 , Processed in 0.090406 second(s), 26 queries .

Powered by Discuz! X3.5

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表