Platform SDK Getting Started
Overview
About this document
This document is intended to help you quickly set up the Platform SDK development environment, obtain the SDK, compile and flash the project, and successfully run your first example project.
Telink provides two Platform SDKs for different chip architectures:
- tc_platform_sdk: for Telink's self-developed TC32-core chip series
- tl_platform_sdk: for RISC-V architecture chip series
Both SDKs provide complete drivers, example code, and development tools.
Applicable scope
tl_platform_sdk is applicable to Telink's TL322x, TL323x, TL721x, TLSR921x, TLSR951x, TLSR922x, TLSR952x and other SoC series:
Notes
The chip information listed here may not be the latest. For complete and accurate chip series, corresponding EVBs, toolchains, and SDK versions, refer to the Release Notes of the corresponding version:
Preparation
Hardware checklist
| Hardware | Description |
|---|---|
| PC | Windows 10/11/ Linux / macOS (This document uses Windows as an example.) |
| EVB | Select the appropriate Evaluation Board (EVB) based on the Release Notes of the corresponding platform |
| Programmer | Programmer V3 is recommended |
| USB cable | Connect the PC and the programmer |
| Dupont wire | Connect the EVB and the programmer |
For physical hardware, refer to the section Connect the hardware.
Software checklist
| Software | Description |
|---|---|
| IDE | Telink VS Code Extension or Telink IoT Studio |
| Toolchain | For toolchain information, refer to the Release Notes of the corresponding platform |
| Programmer software | BDT (Burning and Debugging Tool) or JTAG |
| SDK | Available from the Gitee / GitHub repository of the corresponding platform |
- SDK: Gitee repository or GitHub repository
- SDK: Gitee repository or GitHub repository
Choose the IDE
The Platform SDK supports the following two development methods:
- Method 1: Telink VS Code Extension
- Method 2: Telink IoT Studio
Choose one based on your development habits. The two methods do not need to be installed simultaneously.
Telink VS Code Extension
Install VS Code
Before installing the extension, make sure your computer has the latest version of Visual Studio Code. The updates to the Telink VS Code Extension are based on the latest version of VS Code. If the VS Code version is too old, the extension may not work properly or may malfunction.
Install the Telink VS Code Extension
-
Launch VS Code.
-
Click the Extensions icon in the left sidebar, or press Ctrl+Shift+X.
-
Type "Telink" in the search box.
-
Find Telink Development Tool in the search results and click Install.

After installation, the Telink DEVELOPMENT icon appears in the left sidebar of VS Code.
Install the toolchain
In the Telink VS Code Extension, download the compiler toolchain and auxiliary tools on demand via the extension's built-in manager.
-
In the Telink DEVELOPMENT view on the left of VS Code, expand the DEVELOPMENT TOOLS tree menu.

-
Click the toolchain you need, then click Install Toolchain on the right.
-
After successful installation, a completion notification pops up in the bottom right corner of the VS Code window.

Note
If you want to use the toolchain in the command line environment, right-click and click Open Terminal in the pop-up menu.
Install auxiliary tools
- Select CMake in the tool list, right-click, and click Install in the pop-up menu.
- Select Jtag_burn in the tool list, right-click, and click Install in the pop-up menu.
- Select ICEman in the tool list, right-click, and click Install in the pop-up menu.
Validate the environment
After installation, follow the steps below to verify whether the Telink VS Code Extension has been successfully installed:
-
Launch VS Code and confirm that the software opens normally without any error messages during startup.
-
Confirm that the Telink icon appears in the left sidebar, click it to enter the Telink DEVELOPMENT view.
-
In the DEVELOPMENT TOOLS tree menu, confirm that the required toolchain has been installed.
-
At the same time, confirm that the auxiliary tools CMake, Jtag_burn, and ICEman also show as installed on the right.
If all the above checks pass, Telink VS Code Extension and its dependent tools have been successfully installed and configured, and you can start SDK development.
Telink IoT Studio
Download and install Telink IoT Studio
Download the installation package corresponding to your operating system. The demonstration below uses Windows as an example:
- Windows : TelinkIoTStudio_V2025.2.zip
- Linux : Telink_IoT_Studio_2025.2_Installer.run
Install Telink IoT Studio:
Windows:
-
Extract the downloaded
.zippackage, run TelinkIoTStudio_V2025.2.exe, and follow the wizard to complete the installation. -
After installation, you must run TelinkIoTStudio Updater.exe to get the latest component updates.
Linux:
-
Grant execution permission to the installation package for the runtime environment.
-
Run Telink_IoT_Studio_2025.2_Installer.run and follow the terminal prompts to complete the installation.
Toolchain description
Telink IoT Studio provides an all-in-one standalone installation package with all the components required for development built in, so no additional toolchain installation is needed. All required toolchains and auxiliary tools are installed synchronously with the IDE. Click Telink in the top menu bar to open the Cygwin Shell of the corresponding toolchain.

Validate the environment
After installation, follow the steps below to verify whether Telink IoT Studio has been successfully installed.
Validate the IDE installation:
-
Launch Telink IoT Studio and confirm that the program loads normally and displays the main interface, with no error messages such as missing dependency libraries during startup.
-
Click Telink in the top menu bar and confirm that toolchain entries such as Cygwin Shell in the dropdown menu open normally.
If the above conditions are met, Telink IoT Studio has been successfully installed and configured.
Get and import the SDK
This chapter explains how to obtain the official Telink SDK, the top-level directory structure of the SDK, and how to import SDK projects into the IDE.
Download the SDK
SDK directory overview
| Directory | Description |
|---|---|
3rd-party/ |
Third-party components |
chip/ |
Chip-related code |
common/ |
Common utility functions |
demo/ |
Example projects |
doc/ |
Official documentation |
project/ |
Project files |
tools/ |
Development tools |
CMakeLists.txt/ |
Main build entry |
For the full directory structure and the function of each directory, refer to the Telink Platform SDK Developer Manual.
| Directory | Description |
|---|---|
chip/ |
Chip-related code |
cmake_config/ |
CMake configuration files |
common/ |
Common utility functions |
demo/ |
Example projects |
doc/ |
Official documentation |
project/ |
Project files |
tools/ |
Development tools |
.gitlab-ci.yml/ |
CI/CD configuration files |
CMakeLists.txt/ |
Main build entry |
README.md/ |
English documentation |
README_CN.md/ |
Chinese documentation |
For the full directory structure and the function of each directory, refer to the Telink Platform SDK Developer Manual.
Import the project
Depending on your development environment, choose to import the project in VS Code or Telink IoT Studio.
Import the project in VS Code
tl_platform_sdk is a standard Telink VS Code Extension project. Click File -> Open Folder... in the VS Code menu bar, select the root directory of the project, and load it.
After the project is loaded, click the Telink icon in the left sidebar to enter the Telink Extension view. At this point, the PROJECT OUTLINE panel displays the directory structure of the current project, indicating that the project has been successfully imported.

After the project is loaded, if the PROJECT OUTLINE panel is empty, the current project is still an older-version Telink IoT Studio project and needs to be converted.

After successful conversion, the result is displayed in the bottom right corner:

tc_platform_sdk is a standard Telink VS Code Extension project. Click File -> Open Folder... in the VS Code menu bar, select the root directory of the project, and load it.
After the project is loaded, click the Telink icon in the left sidebar to enter the Telink Extension view. At this point, the PROJECT OUTLINE panel displays the directory structure of the current project, indicating that the project has been successfully imported.

After the project is loaded, if the PROJECT OUTLINE panel is empty, the current project is still an older-version Telink IoT Studio project and needs to be converted.

After successful conversion, the result is displayed in the bottom right corner:

Import the project in Telink IoT Studio
If you choose to use Telink IoT Studio as your primary development environment, follow the steps below to import the project:
-
Click File -> import in the top menu bar.
-
In the pop-up dialog box, expand the General directory, select Existing Projects into Workspace, and click Next.
-
Select the project directory to import.

-
Select Browse to choose the downloaded project, select the project of the corresponding chip platform, click Finish, and the project is successfully imported.

After successful project import, the figure below is shown:
-
Click File -> import in the top menu bar.
-
In the pop-up dialog box, expand the General directory, select Existing Projects into Workspace, and click Next.
-
Select the project directory to import.

-
Select Browse to choose the downloaded project, select the project of the corresponding chip platform, click Finish, and the project is successfully imported.

After successful project import, the figure below is shown:

Compile and run the first example
This chapter guides you through the complete development loop from selecting an example and compiling the code to finally flashing and running it.
Select the example
It is recommended to use the officially provided debug _demo as your first example project. The example features streamlined code logic with minimal dependencies and does not involve complex wireless protocol stacks. This example uses the TL322X: C1T371A20 EVK for demonstration.
For more examples, refer to ...\tl_platform_sdk\demo\vendor.
It is recommended to use the officially provided debug _demo as your first example project. The example features streamlined code logic with minimal dependencies and does not involve complex wireless protocol stacks. This example uses the TC1235X:C1T414AA20_V1.0 EVK for demonstration.
For more examples, refer to ...\tc_platform_sdk\demo\vendor.
Compile the project
Depending on your development environment, choose to compile the project in VS Code or Telink IoT Studio.
Compile the project in VS Code
-
In the left sidebar of VS Code, find PROJECT OUTLINE, and select the project to compile and its corresponding Target.

-
Click the build button on the right to compile.
After compilation, output files (.elf, .bin, .ls) are generated, where ELF format files are used for debugging and BIN format files are used for flashing.
The ELF and BIN files can be found under PROJECT OUTLINE after compilation. Taking the TL322x platform Debug_Demo as an example, the compiled .elf, .bin, and .ls files are stored in the ...\tl_platform_sdk\cmake_builds\TL_PLATFORM_SDK_322X\TL32_ELF_MCULIB_V5F_GCC12_2 directory.
If the compilation succeeds, you will see similar output:

-
In the left sidebar of VS Code, find PROJECT OUTLINE, and select the project to compile and its corresponding Target.

-
Click the build button on the right to compile.
After compilation, output files (.elf, .bin, .ls) are generated, where ELF format files are used for debugging and BIN format files are used for flashing.
The ELF and BIN files can be found under PROJECT OUTLINE after compilation. Taking the TC123x platform Debug_Demo as an example, the compiled .elf, .bin, and .ls files are stored in the ...\tc_platform_sdk\cmake_builds\TC_PLATFORM_SDK_123X\TC32_GCC_Toolchain directory.
If the compilation succeeds, you will see similar output:

Compile the project in Telink IoT Studio
-
In the Project Explorer on the left, select the project to compile.
-
Click the small dropdown arrow next to the Build button (hammer icon) on the top toolbar.
-
Select the configuration you want to compile from the dropdown menu, and the system starts compiling.

-
Observe the console output; if there are no error messages and Build Finished is displayed, the compilation is successful.

Taking the TL322x platform debug_demo as an example, the compiled bin file is stored in the ...\tl_platform_sdk\project\tlsr_riscv\tl322x\Debug_Demo directory.
-
In the Project Explorer on the left, select the project to compile.
-
Click the small dropdown arrow next to the Build button (hammer icon) on the top toolbar.
-
Select the configuration you want to compile from the dropdown menu, and the system starts compiling.

-
Observe the console output; if there are no error messages and Build Finished is displayed, the compilation is successful.

Taking the TC123x platform debug_demo as an example, the compiled bin file is stored in the ...\tc_platform_sdk\project\tc322x\Debug_Demo directory.
Flash the firmware
Telink supports firmware flashing via the BDT tool (a no-installation burning and debugging tool) or JTAG (with the ICEman simulation service). Choose based on your hardware environment.
Telink supports firmware flashing via the BDT tool (a no-installation burning and debugging tool). Choose based on your hardware environment.
Flash the firmware via BDT
Before using the BDT tool, connect the PC, the programmer, and the target board as follows:
- PC ↔ Programmer: Connect via USB cable. If the green indicator light on the programmer stays on, it indicates that the programmer has been successfully recognized by the PC.
- Programmer ↔ Target board: Connect using Dupont wires:
- Power cable: VCC ↔ VCC; GND ↔ GND
- Data cable (single-wire SWM bus): Connect the programmer's SWM pin to the target board's SWS (Swire) pin.


Step 2: Install the BDT
The Telink Burning and Debugging Tool (BDT) is used to flash the compiled firmware to the target chip or development board.
-
Download the BDT tool.
Visit Telink Developer Center - Development Tools and download the corresponding toolkit according to your operating system.

-
Extract the toolkit.
The BDT tool is a portable no-installation version that can be used after extraction.
Take Windows as an example:
a. Extract the downloaded toolkit to a custom path, e.g., C:\Telink\BDT.
b. Enter the extracted release directory, e.g., C:\Telink\BDT\release_v5.9.2.
c. Double-click and run Telink BDT.exe to launch the tool.

-
Select the programmer version and chip compatibility.
Telink provides four versions of programmers (Programmer). When launching the BDT interface, it is recommended to select the Programmer V1.0 ~ V3.0 programmer version.

Step 3: Flash the firmware
-
Connect the device.
Open the BDT software. Before firmware flashing, ensure that the tool has detected the programmer, as shown in the figure below.

- If the BDT does not find the device, click Refresh to view available devices.
- If the BDT finds multiple devices, all devices are listed. After clicking Refresh, the first device is activated by default, and you can also manually switch the target device in the list.
-
Configure and flash.
a. Select the chip series of the target board.
In the chip dropdown menu at the top, select the target chip for your development board, for example:
For example, TL322x:

For example, TC123x:

Note
- B91: Refers to the TLSR921x and TLSR951x series chips;
- B92: Refers to the TLSR922x and TLSR952x series chips.
b. Select the download mode as EVK.


c. Click the Setting button to open the configuration window and switch to the Flash tab. Set the initial offset address of the firmware in the Download Addr field, with the default value 0x000000.
Note: You can download the target firmware to the SRAM or OTP target area by configuring the SRAM or OTP option.


d. Click File -> Open/Reopen in the menu bar and select the
.binfirmware you compiled. After successful loading, the full file path is displayed at the bottom of the main interface.



e. Check the connection status between the target board and the PC.
- If the connection status is normal, the bottom left corner of the main interface displays evk device: ok.
- If the bottom left corner of the main interface displays usb device: not found, it means the target board is not properly connected to the PC.


f. First click Activate, then click the Unlock button or check the auto unlock option to remove the write protection of the flash.
If the flash is in a write-protected state, Download will fail. Therefore, before downloading firmware to the flash, make sure the flash is in a programmable state.


g. Click the Download button and wait for the log window to indicate that the flashing is successful.


h. You can set the reset mode to auto mode before flashing, or switch to manual mode after flashing and click the Reset button to manually reset the MCU to run the program.


Flash the firmware via JTAG
JTAG flashing requires the backend service process ICEman.
Flash the firmware via JTAG in VS Code
- After the project is successfully compiled, find the generated
.binfirmware file in the project directory tree. Click the JTAG burn icon on the right side of the file to bring up theTelink JTAG Burn With ICEmanpage.

-
In the
Telink JTAG Burn With ICEmanpage, configure the paths and parameters: -
Enter the local executable file paths for
ICEmanandJtag_Burn. - Configure the correct target chip series and flash start address.
- Configure the communication interface type and the corresponding port number for ICEman.


-
Click the Start ICEman button. The system prompts you to select a connection startup mode:
-
Default mode: JTAG uses the default four-wire connection method (recommended).
- SDP 2-wire mode: ICEman is launched with
-I aice_sdp.cfg, and JTAG uses a two-wire connection method. Ensure that the hardware supports it. - H mode: ICEman is launched with the
-Hoption. After a successful connection, a reset-and-hold operation is immediately performed on the target chip.

- Observe the log. When ICEman is ready to use appears, the connection is successful. After configuring the parameters for
Jtag_Burnexecution, click the Burn button to start the flash, and confirm the flashing result through the subsequent scrolling log.



Flash the firmware via JTAG in Telink IoT Studio
- Click Telink -> Jtag Burn (SPI Burn) in the top menu bar to bring up the JTAG configuration page.

-
In the pop-up page, verify that the
.binfirmware to be flashed is correct. -
Configure the runtime parameters for Jtag_Burn as annotated in the figure below, then click Start ICEman.
-
When you see ICEman is ready to use in the console output, it indicates that the hardware backend connection is successful. Click the Burn button on the right to start the firmware flashing.

tc_platform_sdk does not support flashing firmware via JTAG. Use the BDT tool to flash.
Verify the running results
After flashing the firmware, follow the steps below to verify whether the example program is running properly on the development board.
Operation steps
-
After flashing is complete, the development board resets automatically; if it does not reset automatically, press the Reset button on the development board to reset.
-
Observe the status of the LED indicators on the development board.
Expected results
If the program runs normally, it means the firmware has been successfully downloaded and started.
Taking the TL322x development board as an example, the phenomenon when running successfully is as follows:
- The blue, red, green, and white LEDs blink simultaneously.

If the above phenomenon is observed, it means that the development environment configuration, program compilation, firmware download, and operation have all been successfully verified. You have completed running your first example program.
After flashing the firmware, follow the steps below to verify whether the example program is running properly on the development board.
Operation steps
-
After flashing is complete, the development board resets automatically; if it does not reset automatically, press the Reset button on the development board to reset.
-
Observe the status of the LED indicators on the development board.
-
Open the serial port assistant to receive the print information from the development board.
Expected results
If the program runs normally, it means the firmware has been successfully downloaded and started.
Taking the TC123x development board as an example, the phenomenon when running successfully is as follows:
- The yellow LED blinks.

- PA0 prints relevant information via the serial port.

If the above phenomenon is observed, it means that the development environment configuration, program compilation, firmware download, and operation have all been successfully verified. You have completed running your first example program.
References
| Documents | Description |
|---|---|
| Telink Platform SDK Developer Manual | Detailed Introduction to the Telink Platform SDK |
Appendix 1: Frequently Asked Questions
IDE installation failed
- When installing ICEman and other development tools from the DEVELOPMENT TOOLS of the VS Code Telink Development extension, the installation process fails.
- Solution: Use the offline installation method instead. Download and follow the document Offline Installation Package to complete the installation.
Compilation failed
- When compiling a demo project using VS Code, the compilation fails.
- Solution: Check whether the project path contains Chinese characters (such as Chinese folder names, Chinese usernames, etc.).
Flashing failed
- When flashing via JTAG, the error message "Burning failed due to target errors" is displayed.
- Solution: Check whether the JTAG wiring is correct. Pay special attention to the VTREF pin, which must be connected to the JTAG I/O power supply (i.e., reference voltage) of the target board.
- When flashing via BDT, the error message "DUT command execute error" is displayed.
- Solution: Before Download, click Activate to activate the chip. After "Activate MCU ok" appears, proceed with the Download operation to flash.