Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Telink] RAM/ROM optimization & Update Telink image to 12 #29373

Merged
merged 23 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5a80d12
[Telink] Disabled MBEDTLS_TEST and MBEDTLS_ERROR_C (saved 7Kb of flash)
s07641069 Sep 19, 2023
1bdb2f9
[Telink] Disabled debug logs (saved 11.5Kb of flash)
s07641069 Sep 19, 2023
b4173cc
[Telink] Disable all unused buttons
s07641069 Sep 19, 2023
80c533d
[Telink] Enable all buttons by default
s07641069 Sep 19, 2023
2ce64d8
[Telink] Disable Interaction model Event support in server
s07641069 Sep 19, 2023
1757d5f
[Telink] Reduce number of message buffers in the buffer pool
s07641069 Sep 19, 2023
f2e6d46
[Telink] Set packet buffer pool size into 0
s07641069 Sep 19, 2023
1fb2e8a
[Telink] Decrease stack and buffer size
s07641069 Sep 19, 2023
898d67f
[Telink] Update Stack sizes
s07641069 Sep 19, 2023
5e5154e
[Telink] Use B9X
s07641069 Sep 19, 2023
3efb545
[Telink] Use LAMBDA_EVENT_SIZE minimal value to build OTA
s07641069 Sep 19, 2023
24cc854
[Telink] Use Kconfigs and make PM dependency
s07641069 Sep 13, 2023
3448809
[Telink] Set BLE device name via config
s07641069 Sep 13, 2023
e7cea62
[Telink] Fix after tests
s07641069 Sep 13, 2023
fb92065
[Telink] decrease some values for FTD as well
s07641069 Sep 19, 2023
c4dc28e
[Telink]: Added public BLE MAC readout from vendor flash section
s07641069 Sep 20, 2023
aac87b7
[Telink] Increase BLE_CTRL_THREAD_STACK after B92 BLE stack update
s07641069 Sep 20, 2023
428b810
Merge branch 'master' into telink_b9x_optimization
s07641069 Sep 21, 2023
705635e
[Telink] Update Telink image to 12
s07641069 Sep 21, 2023
cfb2eda
[Telink] Enable NL_ASSERT_USE_FLAGS by default
s07641069 Sep 21, 2023
c5009c0
[Telink] Increase stack size after OTA tests
s07641069 Sep 21, 2023
fa5a691
[Telink] minor chnages
s07641069 Sep 21, 2023
c1abec0
Restyled by clang-format
restyled-commits Sep 21, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-telink:10
image: ghcr.io/project-chip/chip-build-telink:12
options: --user root

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build-telink:10
image: ghcr.io/project-chip/chip-build-telink:12
volumes:
- "/tmp/bloat_reports:/tmp/bloat_reports"

Expand Down
147 changes: 0 additions & 147 deletions config/telink/app/zephyr.conf

This file was deleted.

4 changes: 2 additions & 2 deletions config/telink/chip-gn/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ chip_device_platform = "telink"

chip_build_tests = false

chip_project_config_include = ""
chip_system_project_config_include = ""
chip_project_config_include = "<CHIPProjectConfig.h>"
chip_system_project_config_include = "<CHIPProjectConfig.h>"
chip_ble_project_config_include = ""

chip_crypto = "mbedtls"
Expand Down
4 changes: 4 additions & 0 deletions config/telink/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ if (CONFIG_POSIX_API)
matter_add_flags(-isystem${ZEPHYR_BASE}/include/zephyr/posix)
endif()

matter_add_flags(-DNL_ASSERT_USE_FLAGS_DEFAULT=1)

zephyr_include_directories(${CHIP_ROOT}/src/platform/telink/)

zephyr_get_compile_flags(ZEPHYR_CFLAGS_C C)
Expand All @@ -61,6 +63,8 @@ matter_add_cxxflags("${ZEPHYR_CFLAGS_CC}")
zephyr_get_gnu_cpp_standard(ZEPHYR_GNU_CPP_STD)
matter_add_cxxflags(${ZEPHYR_GNU_CPP_STD})

matter_add_flags(-DMBEDTLS_USER_CONFIG_FILE=<telink-mbedtls-config.h>)

# Set up custom OpenThread configuration

if (CONFIG_CHIP_OPENTHREAD_CONFIG)
Expand Down
24 changes: 14 additions & 10 deletions config/telink/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@

rsource "../../zephyr/Kconfig"

if CHIP

# See config/zephyr/Kconfig for full definition
config CHIP_DEVICE_VENDOR_NAME
default "Telink semiconductor"
default "Telink Semiconductor"

config CHIP_APP_LOG_LEVEL
int "Logging level in application"
Expand All @@ -33,27 +35,28 @@ config CHIP_APP_LOG_LEVEL
# See config/zephyr/Kconfig for full definition
config CHIP_OTA_REQUESTOR
bool
default y
imply BOOTLOADER_MCUBOOT
imply IMG_MANAGER
select BOOTLOADER_MCUBOOT
select IMG_MANAGER
select STREAM_FLASH
select STREAM_FLASH_ERASE

config CHIP_OTA_REQUESTOR_BUFFER_SIZE
int "OTA Requestor image buffer size"
default 256
depends on CHIP_OTA_REQUESTOR
help
Configures size of the buffer used by OTA Requestor when downloading and
writing a new firmware image to flash.
Configures the size of the buffer used by OTA Requestor when downloading
and writing a new firmware image to flash.

config CHIP_OTA_REQUESTOR_REBOOT_ON_APPLY
bool "Auto-reboot when firmware update is applied"
default y
depends on CHIP_OTA_REQUESTOR
imply REBOOT
help
When a user consents to apply a firmware update, and the update package is
downloaded, reboot the device automatically to swap the old and the new
firmware images.
Reboots the device automatically after downloading a new firmware update
to swap the old and the new firmware images. The reboot happens only when
a user consents to apply the firmware update.

# See config/zephyr/Kconfig for full definition
config CHIP_OTA_IMAGE_BUILD
Expand Down Expand Up @@ -149,9 +152,10 @@ config CHIP_FACTORY_RESET_ERASE_NVS
bool
default n

endif

config CHIP_LOG_SIZE_OPTIMIZATION
bool "Disable some detailed logs to decrease flash usage"
default y
help
Disables some log levels for specific Matter log modules that provide
information that is too detailed to be used in most cases. You can find
Expand Down
Loading
Loading