Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
d6e8a32
board: riscv: add new board tl322x
damien0x0023 Jun 23, 2025
dd249fa
board: riscv: add zephyr blinky sample and uart function for tl3228x
wuhaoTelink Jun 24, 2025
c4e5532
board: riscv: add gpio driver function
wuhaoTelink Jun 26, 2025
7bf98c2
board: riscv: add spi driver function(gspi)
wuhaoTelink Jul 9, 2025
3261c71
board: riscv: add adc driver function(ADC0)
wuhaoTelink Jul 10, 2025
4cac888
telink: tl3228x: adopt flash 4-wire SPI APIs
wuhaoTelink Jul 15, 2025
2f63ffa
board: riscv: add pwm driver function
wuhaoTelink Jul 16, 2025
ae94f2b
telink: tl3228x: adapt single-core ble function.
Jackie-Kilby Jul 21, 2025
2c1cfd5
telink: tl322x: dual core initialization.
Jackie-Kilby Jul 30, 2025
c623db6
telink: tl322x: fix crash by calling RAM 0x12 with workaround of fixe…
Jackie-Kilby Jul 30, 2025
b4e5191
refactor(tl322x): exclude controller APIs.
Jackie-Kilby Jul 31, 2025
f98d138
refactor(tl322x): clean code for TLK_ONLY_BLE_HOST.
Jackie-Kilby Jul 31, 2025
eb8058b
feat: update west yml.
Aug 1, 2025
946885c
feat: sync with src & sdk.
Aug 4, 2025
279cb1c
feat: update west.yml.
Aug 4, 2025
77cf43b
telink: tl32x: apply workarounds in i2c and uart drivers
damien0x0023 Aug 5, 2025
b4f2c60
feat: update west yml.
Aug 5, 2025
5b943d5
feat: update west yml.
Aug 5, 2025
21ccb5e
telink: tl322x: adopt entropy and ieee802154 driver
Aug 7, 2025
b6c6f67
telink: tl322x: usb: Add USB0 driver for Condor
Charlie-TLW Aug 12, 2025
741c147
telink: tl322x: usb: Update USB0 driver for Condor
Charlie-TLW Aug 14, 2025
1c8760e
telink: tl322x: usb: Add hid-keyboard sample
Charlie-TLW Aug 15, 2025
35631f1
feat: close tlx log.
Aug 16, 2025
93ba782
feat: update tl_ble_src&hal_telink.
Aug 16, 2025
9549e1b
feat(condor): add support for pm.
Aug 16, 2025
d70bc21
feat: update west.yml.
Aug 16, 2025
82374db
fix: close usb at default.
Aug 16, 2025
b859a37
feat: support for low power test.
Aug 18, 2025
84ddb66
feat: update west.yml.
Aug 18, 2025
9773b4d
fix(tl322x): single core abnormal problem.
Aug 20, 2025
10528e0
telink: tl322x: usb: Pass USB high-speed CV test for HID class devices
Charlie-TLW Aug 20, 2025
9ba961d
soc: riscv: telink_tlx: Add nested interrupts
wuhaoTelink Aug 22, 2025
801705d
feat: update west.yml.
Aug 22, 2025
4b1f982
feat: update west.yml
Aug 25, 2025
856bfd9
soc: riscv: telink_tlx: Optimize nested interrupts
wuhaoTelink Aug 25, 2025
2a77016
telink: tl322x: usb: Modify hid-keyboard sample to verify nested inte…
Charlie-TLW Aug 27, 2025
30824c9
telink: tl322x: pinctrl: set input enable
damien0x0023 Sep 3, 2025
51e8610
telink: tl322x: adc: adapt ADC0
wuhaoTelink Sep 8, 2025
14ed3aa
telink: tl322x: adc: adc_tlx_get_pin
wuhaoTelink Sep 8, 2025
197b48a
telink: tl322x: adc: fix adc issue
wuhaoTelink Sep 8, 2025
e0e396c
telink: tl322x: usb: enable usb sample build
damien0x0023 Sep 11, 2025
bc961d0
feat: update dual core comm mechanism.
Sep 23, 2025
e26d619
feat: add support for tl321x.
Oct 14, 2025
5c6f2e6
feat: add compile support for libs.
Oct 14, 2025
c549fb4
feat(tl321x): add support for suspend pm.
Oct 15, 2025
77138a9
board: riscv: add new board tl323x
wuhaoTelink Oct 15, 2025
0ccab2b
feat(tl322x): update to tl_ble latest version.
Oct 16, 2025
9d69481
feat: add `CONFIG_SOC_RISCV_TELINK_TL323X`.
Oct 16, 2025
9442bbc
feat(tl323x): add support for tl323x.
Oct 16, 2025
0218762
feat: support tl323x 48MHz.
Oct 17, 2025
f30e741
board: riscv: add gpio and uart function for tl3238x
wuhaoTelink Oct 18, 2025
f102dc6
board: riscv: update dts and pinctrl for tl3238x
wuhaoTelink Oct 20, 2025
5f4f56c
sample: net: openthread_cli: Add support for Baza
Oct 21, 2025
78db2f2
feat(tl322x): add support for suspend.
Oct 21, 2025
be07539
board: riscv: update dts for tl3238x
wuhaoTelink Oct 21, 2025
d95f2bd
feat(tl322x): add support for deepretn.
Oct 22, 2025
a2388f3
feat(tl323x): add tl_ble_sdk support.
Oct 22, 2025
465c79e
telink: tl3238x: adopt drivers change.
haiwentelink Oct 23, 2025
e07b217
telink: tl3238x: fix pwm pool.
haiwentelink Oct 24, 2025
4d9b862
feat: implement enumeration of multiple HID devices
Charlie-TLW Oct 24, 2025
58bc5aa
fix: reset log GPIO to PA0
Charlie-TLW Oct 24, 2025
da181b5
feat(tl322x): enumerate three hid devices
Charlie-TLW Oct 27, 2025
f786949
feat(tl322x): update west.yml
Charlie-TLW Oct 27, 2025
45c3967
fix(zephyr): disable `SCH_DEBUG_EN` in zephyr to avoid RAM corruption…
Oct 29, 2025
de7689e
fix(zephyr): disable `SCH_DEBUG_EN` in zephyr to avoid RAM corruption…
Oct 29, 2025
023a6d2
feat(tl322x&zephyr): add support for new multi-core communication mec…
Oct 31, 2025
92742eb
telink: tl3238x: workaround for uart.
wuhaoTelink Oct 31, 2025
5ef0c4c
fix: fix the issue that bdt reset makes the rf abnormal.
Oct 31, 2025
8429fb7
fix: suspend failed when sleeping time is less than 13ms.
Jackie-Kilby Nov 3, 2025
f6a38af
clean: clean compiler warning.
Nov 3, 2025
973ce6f
telink: tl3238x: fix 96M PWM.
wuhaoTelink Nov 3, 2025
8ded8f6
feat(tl321x): sync with src.
Nov 3, 2025
47eefc8
fix: solve the problem of no WFI when suspend failed on D25F.
Jackie-Kilby Nov 3, 2025
9494ff7
feat: update rf switch logic.
Nov 4, 2025
4786b86
feat(zephyr): add peripheral_kmd prj files
Nov 4, 2025
c07ddee
feat(zephyr): merge new dualcore comm
Charlie-TLW Nov 5, 2025
4a36c65
fix:(zephyr) 3228x gpio can not support GPIO_PA group
Nov 5, 2025
fde5b71
feat(zephyr): peripheral_kmd modify gpios and disable no use modules…
Nov 5, 2025
f793497
feat(zephyr): preapheral_kmd clean code
Nov 5, 2025
20c6ba2
feat(zephyr) : Add CONFIG_BT_ID_FOR_KMD macro in id.c only used for p…
Nov 5, 2025
4a3dfda
feat(zephyr): Add CONFIG_BT_ID_FOR_KMD in peripheral_kmd
Nov 5, 2025
ddfccae
feat: use mailbox to synchronize the mode from d25f to n22
Charlie-TLW Nov 5, 2025
d96a451
clean: clean warning.
Nov 6, 2025
3595ff7
refactor(tl323x): update tl323x lib and ram arrange.
Nov 4, 2025
783162c
feat(tl322x): advance dual-core communication code position
Charlie-TLW Nov 6, 2025
1ba3715
feat(tl322x): peripheral_kmd ble & 2p4g ok
Nov 6, 2025
9fa6e5f
fix(tl322x): fix the multi-core comm wrap around error.
Nov 6, 2025
584c1f1
feat(tx3228x): peripheral_kmd usb enumeration ok
Nov 6, 2025
0d81a81
feat(zephyr):soc.c clean code
Nov 6, 2025
b3bb564
feat(tl3228x) peripheral_kmd add fifo reset when mode change
Nov 7, 2025
1657bb3
refactor(tl323x): update tl323x lib and ram arrange(add zephyr compil…
Nov 6, 2025
eb2eb45
feat(tl323x): add support for protection codes.
Nov 7, 2025
3ad0d01
feat(tl323x&sdk): add a temporary solution for ram arrange.
Nov 7, 2025
1f6f549
feat(zephyr): peripheral_kmd add sys reboot whend mode change
Nov 7, 2025
6c4b140
fix(zephyr): peripheral_kmd usb enumeration fail when enable CONFIG_P…
Nov 7, 2025
c0356df
feat(zephyr): peripheral_kmd modify the storage partition in tl3228x.…
Nov 7, 2025
26f4cde
fix(zephyr): peripheral_kmd bt_id_reset return value user error
Nov 7, 2025
93ab589
feat(zephyr): peripheral_kmd clean code
Nov 7, 2025
f829964
feat(zephyr) peripheral_kmd 2.4g mode use NVS save pair info
Nov 8, 2025
c0c2aed
feat(2.4G): reconnect ok
Charlie-TLW Nov 8, 2025
9e7b1f3
feat(zephyr): peripheral_kmd disable BLE_APP_PM
Nov 8, 2025
8c32314
feat(zephyr): peripheral_kmd change N22 start addr for 1M flash case
Nov 8, 2025
39d78fb
feat: 2p4g/ble/usb ok
Charlie-TLW Nov 9, 2025
ea85c1b
feat(2.4G): realize report rate switching
Charlie-TLW Nov 9, 2025
aa127aa
feat(2.4G): codes clean up
Charlie-TLW Nov 9, 2025
af1cbbd
feat(2.4G): codes clean up 2
Charlie-TLW Nov 9, 2025
e713632
refactor(tl323x): sync with drivers.
Nov 11, 2025
9beb27f
feat(zephyr): peripehral_kmd change the flash size in overlay.dts
Nov 11, 2025
0f2dab8
fix(tl323x): fix the issue cannot recv packet.
Nov 12, 2025
530b9cc
drivers: ieee802154: telink: Fix frame counter
Nov 12, 2025
79edcf3
refactor(tl323x): put multicore comm into soc_init.
Nov 12, 2025
af33b57
fix(tl323x): fix the issue cannot build connection.
Nov 13, 2025
ced7bcd
fix(tl323x): fix the issue pke is not re-enable after deepretn.
Nov 13, 2025
afd5934
telink: tl3238x: update to 96m.
haiwentelink Nov 13, 2025
e962d5a
fix(tl323x): fix uart issue.
wuhaoTelink Nov 14, 2025
f3aa4ab
feat(tl323x): update tl_ble_sdk & use libs generated by makefile.
Nov 14, 2025
671587b
fix(tl322x): clean warning.
Nov 15, 2025
424d246
telink: tl3238x: adjust ld for retention mode.
haiwentelink Nov 15, 2025
d318dc0
fix(controller): close connection para request procedure feature.
Nov 17, 2025
587a7a1
feat(samples): add telink ota demostration sample.
Nov 17, 2025
9b1233a
refactor: sync with hal_telink.
Nov 18, 2025
be57bdc
refactor: sync with src.
Nov 18, 2025
1990713
telink: tl3238x: update west.yaml.
haiwentelink Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 157 additions & 0 deletions .github/workflows/telink-tl322x-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
name: Telink TL322x build examples

on: pull_request

jobs:
telink_build_examples:
runs-on: ubuntu-22.04
name: Telink build examples
env:
ZEPHYR_SDK_VERSION: 0.15.2
steps:

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends libdigest-sha-perl cmake python3 ninja-build

- name: Setup Zephyr toolchain
run: |
mkdir ~/zephyr_sdk
wget -q -P ~/zephyr_sdk https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v"${ZEPHYR_SDK_VERSION}"/zephyr-sdk-"${ZEPHYR_SDK_VERSION}"_linux-x86_64.tar.gz
(cd ~/zephyr_sdk && wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v"${ZEPHYR_SDK_VERSION}"/sha256.sum | shasum --check --ignore-missing)
tar xf ~/zephyr_sdk/zephyr-sdk-"${ZEPHYR_SDK_VERSION}"_linux-x86_64.tar.gz -C ~/zephyr_sdk
(cd ~/zephyr_sdk/zephyr-sdk-"${ZEPHYR_SDK_VERSION}" && ./setup.sh -t riscv64-zephyr-elf -c)

- name: Checkout Zephyr
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: West setup
run: |
pip install west
cd ..
west init -l zephyr
west update
west blobs fetch hal_telink
west zephyr-export
pip install -r zephyr/scripts/requirements.txt

- name: Build TL322x samples/basic/blinky
run: |
cd ..
west build -b tl3228x -d build_blinky_tl322x zephyr/samples/basic/blinky -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/hello_world
run: |
cd ..
west build -b tl3228x -d build_hello_tl322x zephyr/samples/hello_world -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/basic/button
run: |
cd ..
west build -b tl3228x -d build_button_tl322x zephyr/samples/basic/button -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/sensor/sht3xd
run: |
cd ..
west build -b tl3228x -d build_sht3xd_tl322x zephyr/samples/sensor/sht3xd -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/drivers/adc
run: |
cd ..
west build -b tl3228x -d build_adc_tl322x zephyr/samples/drivers/adc -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/drivers/watchdog
run: |
cd ..
west build -b tl3228x -d build_watchdog_tl322x zephyr/samples/drivers/watchdog -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x tests/drivers/flash/common
run: |
cd ..
west build -b tl3228x -d build_tests_flash_tl322x zephyr/tests/drivers/flash/common -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/drivers/spi_flash
run: |
cd ..
west build -b tl3228x -d build_spi_flash_tl322x zephyr/samples/drivers/spi_flash -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/basic/fade_led/
run: |
cd ..
west build -b tl3228x -d build_fade_tl322x zephyr/samples/basic/fade_led/ -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x bluetooth/peripheral_ht
run: |
cd ..
west build -b tl3228x -d build_peripheral_ht_tl322x zephyr/samples/bluetooth/peripheral_ht -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x net/openthread/cli
run: |
cd ..
west build -b tl3228x -d build_ot_cli_tl322x zephyr/samples/net/openthread/cli -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x net/openthread/coprocessor in RCP configuration with UART interface
run: |
cd ..
west build -b tl3228x -d build_ot_coprocessor_rcp_uart_tl322x zephyr/samples/net/openthread/coprocessor -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DOVERLAY_CONFIG=overlay-rcp.conf

- name: Build TL322x subsys/usb/console for USB driver
run: |
cd ..
west build -b tl3228x -d build_usb_console_tl322x zephyr/samples/subsys/usb/console -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x subsys/usb/cdc_acm for USB CDC
run: |
cd ..
west build -b tl3228x -d build_usb_cdc_acm_tl322x zephyr/samples/subsys/usb/cdc_acm -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322X net/openthread/coprocessor in RCP configuration with USB interface
run: |
cd ..
west build -b tl3228x -d build_ot_coprocessor_rcp_usb_tl322x zephyr/samples/net/openthread/coprocessor -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DDTC_OVERLAY_FILE="usb.overlay boards/tl3228x-dongle.overlay" -DOVERLAY_CONFIG=overlay-rcp-usb-telink.conf

- name: Build TL322X crypto/mbedtls
run: |
cd ..
west build -b tl3228x -d build_crypto_mbedtls_tl322x zephyr/tests/crypto/mbedtls -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_MBEDTLS_ECP_C=y -DCONFIG_MBEDTLS_ECP_ALL_ENABLED=y

- name: Build TL322X bootloader/mcuboot/boot for compressed LZMA image
run: |
cd ..
west build -b tl3228x -d build_mcuboot_tl322x_lzma bootloader/mcuboot/boot/zephyr -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_COMPRESS_LZMA=y -DCONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=78000 -DCONFIG_BOOT_UPGRADE_ONLY=y

- name: Build TL322X net/sockets/echo_client for OpenThread with PM deep-sleep
run: |
cd ..
west build -b tl3228x_retention -d build_ot_echo_client_pm_deep_tl3228x zephyr/samples/net/sockets/echo_client -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DOVERLAY_CONFIG=overlay-ot-sed.conf -DCONFIG_OPENTHREAD_NETWORKKEY=\"09:24:01:56:04:4a:45:0b:23:22:1e:0e:3b:0d:0e:61:2f:1b:2c:24\" -DCONFIG_PM=y -DCONFIG_SOC_SERIES_RISCV_TELINK_TLX_NON_RETENTION_RAM_CODE=y -DCONFIG_TELINK_TLX_2_WIRE_SPI_ENABLE=y

- name: Collect artifacts
run: |
mkdir telink_build_artifacts
cp ../build_blinky_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_blinky.bin
cp ../build_hello_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_hello_world.bin
cp ../build_button_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_button.bin
cp ../build_sht3xd_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_sht3xd.bin
cp ../build_adc_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_adc.bin
cp ../build_watchdog_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_watchdog.bin
cp ../build_tests_flash_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_tests_flash.bin
cp ../build_spi_flash_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_spi_flash.bin
cp ../build_fade_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_tests_pwm.bin
cp ../build_peripheral_ht_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_peripheral_ht.bin
cp ../build_ot_cli_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_cli.bin
cp ../build_ot_coprocessor_rcp_uart_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_coprocessor_rcp_uart.bin
cp ../build_usb_console_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_usb_console.bin
cp ../build_usb_cdc_acm_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_usb_cdc_acm.bin
cp ../build_ot_coprocessor_rcp_usb_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_coprocessor_rcp_usb.bin
cp ../build_crypto_mbedtls_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_mbedtls.bin
cp ../build_ot_echo_client_pm_deep_tl3228x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_echo_client_pm_retention.bin

- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
path: |
telink_build_artifacts/*
159 changes: 159 additions & 0 deletions .github/workflows/telink-tl322x-nds-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# Copyright (c) 2025 Telink Semiconductor
# SPDX-License-Identifier: Apache-2.0

name: Telink TL322X build examples using Andes GCC

on: pull_request

jobs:
telink_build_examples:
runs-on: ubuntu-22.04
name: Telink build examples
env:
ZEPHYR_TOOLCHAIN_VARIANT: "andes-gcc"
ANDES_GCC_PATH: "~/nds-gcc/nds32le-elf-newlib-v5f"
steps:

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends libdigest-sha-perl cmake python3 ninja-build

- name: Setup Andes toolchain
run: |
mkdir ~/nds-gcc
wget -q -P ~/nds-gcc https://doc.telink-semi.cn/Zephyr/binaries/public/tools/nds32le-elf-newlib-v5f.tar.gz
tar xf ~/nds-gcc/nds32le-elf-newlib-v5f.tar.gz -C ~/nds-gcc

- name: Checkout Zephyr
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: West setup
run: |
pip install west
cd ..
west init -l zephyr
west update
west blobs fetch hal_telink
west zephyr-export
pip install -r zephyr/scripts/requirements.txt

- name: Build TL322x samples/basic/blinky
run: |
cd ..
west build -b tl3228x -d build_blinky_tl322x zephyr/samples/basic/blinky -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/hello_world
run: |
cd ..
west build -b tl3228x -d build_hello_tl322x zephyr/samples/hello_world -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/basic/button
run: |
cd ..
west build -b tl3228x -d build_button_tl322x zephyr/samples/basic/button -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/sensor/sht3xd
run: |
cd ..
west build -b tl3228x -d build_sht3xd_tl322x zephyr/samples/sensor/sht3xd -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/drivers/adc
run: |
cd ..
west build -b tl3228x -d build_adc_tl322x zephyr/samples/drivers/adc -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/drivers/watchdog
run: |
cd ..
west build -b tl3228x -d build_watchdog_tl322x zephyr/samples/drivers/watchdog -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x tests/drivers/flash/common
run: |
cd ..
west build -b tl3228x -d build_tests_flash_tl322x zephyr/tests/drivers/flash/common -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/drivers/spi_flash
run: |
cd ..
west build -b tl3228x -d build_spi_flash_tl322x zephyr/samples/drivers/spi_flash -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x samples/basic/fade_led/
run: |
cd ..
west build -b tl3228x -d build_fade_tl322x zephyr/samples/basic/fade_led/ -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x bluetooth/peripheral_ht
run: |
cd ..
west build -b tl3228x -d build_peripheral_ht_tl322x zephyr/samples/bluetooth/peripheral_ht -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x net/openthread/cli
run: |
cd ..
west build -b tl3228x -d build_ot_cli_tl322x zephyr/samples/net/openthread/cli -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x net/openthread/coprocessor in RCP configuration with UART interface
run: |
cd ..
west build -b tl3228x -d build_ot_coprocessor_rcp_uart_tl322x zephyr/samples/net/openthread/coprocessor -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DOVERLAY_CONFIG=overlay-rcp.conf

- name: Build TL322x subsys/usb/console for USB driver
run: |
cd ..
west build -b tl3228x -d build_usb_console_tl322x zephyr/samples/subsys/usb/console -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322x subsys/usb/cdc_acm for USB CDC
run: |
cd ..
west build -b tl3228x -d build_usb_cdc_acm_tl322x zephyr/samples/subsys/usb/cdc_acm -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y

- name: Build TL322X net/openthread/coprocessor in RCP configuration with USB interface
run: |
cd ..
west build -b tl3228x -d build_ot_coprocessor_rcp_usb_tl322x zephyr/samples/net/openthread/coprocessor -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DDTC_OVERLAY_FILE="usb.overlay boards/tl3228x-dongle.overlay" -DOVERLAY_CONFIG=overlay-rcp-usb-telink.conf

- name: Build TL322X crypto/mbedtls
run: |
cd ..
west build -b tl3228x -d build_crypto_mbedtls_tl322x zephyr/tests/crypto/mbedtls -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_MBEDTLS_ECP_C=y -DCONFIG_MBEDTLS_ECP_ALL_ENABLED=y

- name: Build TL322X bootloader/mcuboot/boot for compressed LZMA image
run: |
cd ..
west build -b tl3228x -d build_mcuboot_tl322x_lzma bootloader/mcuboot/boot/zephyr -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DCONFIG_COMPRESS_LZMA=y -DCONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=78000 -DCONFIG_BOOT_UPGRADE_ONLY=y

- name: Build TL322X net/sockets/echo_client for OpenThread with PM deep-sleep
run: |
cd ..
west build -b tl3228x_retention -d build_ot_echo_client_pm_deep_tl3228x zephyr/samples/net/sockets/echo_client -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y -DOVERLAY_CONFIG=overlay-ot-sed.conf -DCONFIG_OPENTHREAD_NETWORKKEY=\"09:24:01:56:04:4a:45:0b:23:22:1e:0e:3b:0d:0e:61:2f:1b:2c:24\" -DCONFIG_PM=y -DCONFIG_SOC_SERIES_RISCV_TELINK_TLX_NON_RETENTION_RAM_CODE=y -DCONFIG_TELINK_TLX_2_WIRE_SPI_ENABLE=y

- name: Collect artifacts
run: |
mkdir telink_build_artifacts
cp ../build_blinky_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_blinky.bin
cp ../build_hello_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_hello_world.bin
cp ../build_button_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_button.bin
cp ../build_sht3xd_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_sht3xd.bin
cp ../build_adc_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_adc.bin
cp ../build_watchdog_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_watchdog.bin
cp ../build_tests_flash_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_tests_flash.bin
cp ../build_spi_flash_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_spi_flash.bin
cp ../build_fade_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_tests_pwm.bin
cp ../build_peripheral_ht_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_peripheral_ht.bin
cp ../build_ot_cli_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_cli.bin
cp ../build_ot_coprocessor_rcp_uart_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_coprocessor_rcp_uart.bin
cp ../build_usb_console_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_usb_console.bin
cp ../build_usb_cdc_acm_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_usb_cdc_acm.bin
cp ../build_ot_coprocessor_rcp_usb_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_coprocessor_rcp_usb.bin
cp ../build_crypto_mbedtls_tl322x/zephyr/zephyr.bin telink_build_artifacts/tl322x_mbedtls.bin
cp ../build_ot_echo_client_pm_deep_tl3228x/zephyr/zephyr.bin telink_build_artifacts/tl322x_ot_echo_client_pm_retention.bin

- name: Publish artifacts
uses: actions/upload-artifact@v4
with:
path: |
telink_build_artifacts/*
Loading
Loading