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: add support for 8 groups #368

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion config/telink/app/bootloader.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@ CONFIG_BOOT_MAX_IMG_SECTORS=512
# - 2 WARNING, default to write LOG_LEVEL_WRN
# - 3 INFO, default to write LOG_LEVEL_INFO
# - 4 DEBUG, default to write LOG_LEVEL_DBG
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_DEFAULT_LEVEL=1

# Enable overwrite the primary slot with the upgrade image instead of swapping them.
# This prevents the fallback recovery.
CONFIG_BOOT_UPGRADE_ONLY=y
damien0x0023 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion config/telink/app/bootloader_compress_lzma.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CONFIG_BOOT_MAX_IMG_SECTORS=512
# - 2 WARNING, default to write LOG_LEVEL_WRN
# - 3 INFO, default to write LOG_LEVEL_INFO
# - 4 DEBUG, default to write LOG_LEVEL_DBG
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_DEFAULT_LEVEL=1

# LZMA used sys_heap based allocators
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=78000
Expand Down
8 changes: 8 additions & 0 deletions src/platform/telink/CHIPPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@
#define CHIP_CONFIG_MAX_FABRICS 5
#endif

#ifndef CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC
#define CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC 2
#endif // CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC

#ifndef CHIP_CONFIG_EXAMPLE_ACCESS_CONTROL_MAX_SUBJECTS_PER_ENTRY
#define CHIP_CONFIG_EXAMPLE_ACCESS_CONTROL_MAX_SUBJECTS_PER_ENTRY (4 * CHIP_CONFIG_MAX_GROUP_ENDPOINTS_PER_FABRIC)
fengtai-telink marked this conversation as resolved.
Show resolved Hide resolved
#endif // CHIP_CONFIG_EXAMPLE_ACCESS_CONTROL_MAX_SUBJECTS_PER_ENTRY

#ifdef CONFIG_CHIP_LOG_SIZE_OPTIMIZATION
// Disable some of the too detailed log modules to save flash
#define CHIP_CONFIG_LOG_MODULE_ExchangeManager_DETAIL 0
Expand Down
2 changes: 1 addition & 1 deletion src/platform/telink/FactoryDataParser.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool LoadDACCertAndKey(uint8_t * buffer, struct FactoryData * factoryData)
}
else
{
LOG_ERR("Private key decryption failed.");
LOG_ERR("Failed to retrieve chip ID.");
return false;
}

Expand Down
Loading