Skip to content

Commit

Permalink
[Telink] adjust configs to avoid oveflow
Browse files Browse the repository at this point in the history
- reduce COMMON_LIBC_MALLOC_ARENA_SIZE to 13.5KB.
- reduce PACKETBUFFER_CAPACITY_MAX to 1024.

Signed-off-by: Damien Ji <[email protected]>
  • Loading branch information
damien0x0023 committed Dec 31, 2024
1 parent 06cc432 commit 4c72bc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
platform: telink
- name: Update Zephyr to specific revision (for developers purpose)
shell: bash
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py origin/develop_tlx802154_optimization"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py origin/develop_customer"
- name: CI Examples Telink
shell: bash
run: |
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 @@ -58,7 +58,7 @@ jobs:
gh-context: ${{ toJson(github) }}

- name: Update Zephyr to specific revision (for developers purpose)
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py origin/develop_tlx802154_optimization"
run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py origin/develop_customer"

- name: Build example Telink (B92 retention) Air Quality Sensor App
# Run test for master and s07641069 PRs
Expand Down
7 changes: 4 additions & 3 deletions config/telink/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ config HEAP_MEM_POOL_SIZE

# need to enlarge to 21000 , to pass TC_RR_1.1
config COMMON_LIBC_MALLOC_ARENA_SIZE
default 14336 if SOC_SERIES_RISCV_TELINK_TLX_RETENTION || SOC_SERIES_RISCV_TELINK_B9X_RETENTION
default 14336 if SOC_SERIES_RISCV_TELINK_B9X_RETENTION
default 13824 if SOC_RISCV_TELINK_TL321X && SOC_SERIES_RISCV_TELINK_TLX_RETENTION
default 12288

config NET_IPV6_MLD
Expand Down Expand Up @@ -330,11 +331,11 @@ config OPENTHREAD_CSMABACKOFF_OPTIMIZATION
default n

config ZEPHYR_NETBUFFER_OPTIMIZATION
bool "Move the net buffer from iram to dram"
bool "Place net buffer in DLM instead of ILM"
default y if SOC_SERIES_RISCV_TELINK_TLX_RETENTION || SOC_SERIES_RISCV_TELINK_B9X_RETENTION
default n
help
This option enables the net buffer from iram to dram.
This option enables storing the net buffer in DLM rather than ILM.

config IEEE802154_TLX_OPTIMIZATION
bool "optimize the rf performance for tlx"
Expand Down
2 changes: 1 addition & 1 deletion src/platform/telink/SystemPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct ChipDeviceEvent;
#endif

#if defined CONFIG_SOC_RISCV_TELINK_TL321X
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX 1100
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX 1024
#elif defined CONFIG_SOC_SERIES_RISCV_TELINK_B9X_RETENTION
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX 1280
#endif
Expand Down

0 comments on commit 4c72bc3

Please sign in to comment.