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

Add SeedStudio XiaoMG24 #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
32 changes: 32 additions & 0 deletions manifests/seeedstudio/seeedstudio-xiaomg24-bootloader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: SeeedStudio XiaoMG24 Zigbee NCP
device: EFR32MG24B220F1536IM48
base_project: src/bootloader
filename: "{manifest_name}_{gecko_bootloader_version}"
sdk: "simplicity_sdk:2024.12.0"
toolchain: "12.2.1.20221205"

gbl:
fw_type: gecko-bootloader
gecko_bootloader_version: dynamic
baudrate: 115200

remove_components:
- id: bootloader_gpio_activation

c_defines:
SL_SERIAL_UART_FLOW_CONTROL: 0

SL_SERIAL_UART_PERIPHERAL: USART0
SL_SERIAL_UART_PERIPHERAL_NO: 0

SL_SERIAL_UART_TX_PORT: SL_GPIO_PORT_A
SL_SERIAL_UART_TX_PIN: 8

SL_SERIAL_UART_RX_PORT: SL_GPIO_PORT_A
SL_SERIAL_UART_RX_PIN: 9

SL_SERIAL_UART_CTS_PORT: 0
SL_SERIAL_UART_CTS_PIN: 0

SL_SERIAL_UART_RTS_PORT: 0
SL_SERIAL_UART_RTS_PIN: 0
54 changes: 54 additions & 0 deletions manifests/seeedstudio/seeedstudio-xiaomg24-zigbee_ncp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: SeeedStudio XiaoMG24 Zigbee NCP
device: EFR32MG24B220F1536IM48
base_project: src/zigbee_ncp
filename: "{manifest_name}_{ezsp_version}_{baudrate}_{fw_variant}"
sdk: "simplicity_sdk:2024.12.0"
toolchain: "12.2.1.20221205"

gbl:
fw_type: zigbee_ncp
ezsp_version: dynamic
baudrate: 115200
fw_variant: sw_flow

slcp_defines:
SL_ZIGBEE_ADDRESS_TABLE_SIZE: 64
SL_ZIGBEE_MULTICAST_TABLE_SIZE: 26
SL_ZIGBEE_ROUTE_TABLE_SIZE: 16
SL_ZIGBEE_DISCOVERY_TABLE_SIZE: 16

c_defines:
SL_IOSTREAM_USART_VCOM_BAUDRATE: 115200
SL_IOSTREAM_USART_VCOM_FLOW_CONTROL_TYPE: uartFlowControlSoftware

SL_IOSTREAM_USART_VCOM_PERIPHERAL: USART0
SL_IOSTREAM_USART_VCOM_PERIPHERAL_NO: 0

SL_IOSTREAM_USART_VCOM_TX_PORT: SL_GPIO_PORT_A
SL_IOSTREAM_USART_VCOM_TX_PIN: 8

SL_IOSTREAM_USART_VCOM_RX_PORT: SL_GPIO_PORT_A
SL_IOSTREAM_USART_VCOM_RX_PIN: 9

SL_IOSTREAM_USART_VCOM_CTS_PORT: 0
SL_IOSTREAM_USART_VCOM_CTS_PIN: 0

SL_IOSTREAM_USART_VCOM_RTS_PORT: 0
SL_IOSTREAM_USART_VCOM_RTS_PIN: 0

SL_IOSTREAM_USART_VCOM_RX_BUFFER_SIZE: 128

SL_CLOCK_MANAGER_HFXO_EN: 1
SL_CLOCK_MANAGER_HFXO_CTUNE: 140
SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE: SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO

SL_ZIGBEE_APS_UNICAST_MESSAGE_COUNT: 128
SL_ZIGBEE_BROADCAST_TABLE_SIZE: 30
SL_ZIGBEE_NEIGHBOR_TABLE_SIZE: 26
SL_ZIGBEE_SOURCE_ROUTE_TABLE_SIZE: 254
SL_ZIGBEE_MAX_END_DEVICE_CHILDREN: 64
SL_ZIGBEE_BINDING_TABLE_SIZE: 32
SL_ZIGBEE_APS_DUPLICATE_REJECTION_MAX_ENTRIES: 64
SL_ZIGBEE_KEY_TABLE_SIZE: 1

SL_RAIL_UTIL_RSSI_OFFSET: 0
77 changes: 77 additions & 0 deletions manifests/seeedstudio/seeedstudio-xiaomg24-zigbee_router.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: SeeedStudio XiaoMG24 Zigbee Router
device: EFR32MG24B220F1536IM48
base_project: src/zigbee_router
filename: "{manifest_name}_{ezsp_version}_{baudrate}_{fw_variant}"
sdk: "simplicity_sdk:2024.12.0"
toolchain: "12.2.1.20221205"

gbl:
fw_type: zigbee_router
ezsp_version: dynamic
baudrate: 115200
fw_variant: sw_flow

add_components:
# Status
- id: simple_led
instance:
- led0

slcp_defines:
SL_ZIGBEE_ADDRESS_TABLE_SIZE: 64
SL_ZIGBEE_MULTICAST_TABLE_SIZE: 26
SL_ZIGBEE_ROUTE_TABLE_SIZE: 16
SL_ZIGBEE_DISCOVERY_TABLE_SIZE: 16

c_defines:
SL_IOSTREAM_USART_VCOM_BAUDRATE: 115200
SL_IOSTREAM_USART_VCOM_FLOW_CONTROL_TYPE: uartFlowControlSoftware

SL_IOSTREAM_USART_VCOM_PERIPHERAL: USART0
SL_IOSTREAM_USART_VCOM_PERIPHERAL_NO: 0

SL_IOSTREAM_USART_VCOM_TX_PORT: SL_GPIO_PORT_A
SL_IOSTREAM_USART_VCOM_TX_PIN: 8

SL_IOSTREAM_USART_VCOM_RX_PORT: SL_GPIO_PORT_A
SL_IOSTREAM_USART_VCOM_RX_PIN: 9

SL_IOSTREAM_USART_VCOM_CTS_PORT: 0
SL_IOSTREAM_USART_VCOM_CTS_PIN: 0

SL_IOSTREAM_USART_VCOM_RTS_PORT: 0
SL_IOSTREAM_USART_VCOM_RTS_PIN: 0

SL_IOSTREAM_USART_VCOM_RX_BUFFER_SIZE: 128

SL_SIMPLE_LED_LED0_POLARITY: SL_SIMPLE_LED_POLARITY_ACTIVE_LOW
SL_SIMPLE_LED_LED0_PORT: SL_GPIO_PORT_A
SL_SIMPLE_LED_LED0_PIN: 7

SL_CLOCK_MANAGER_HFXO_EN: 1
SL_CLOCK_MANAGER_HFXO_CTUNE: 140
SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE: SL_CLOCK_MANAGER_DEFAULT_HF_CLOCK_SOURCE_HFXO

SL_ZIGBEE_APS_UNICAST_MESSAGE_COUNT: 128
SL_ZIGBEE_BROADCAST_TABLE_SIZE: 30
SL_ZIGBEE_NEIGHBOR_TABLE_SIZE: 26
SL_ZIGBEE_SOURCE_ROUTE_TABLE_SIZE: 254
SL_ZIGBEE_MAX_END_DEVICE_CHILDREN: 64
SL_ZIGBEE_BINDING_TABLE_SIZE: 32
SL_ZIGBEE_APS_DUPLICATE_REJECTION_MAX_ENTRIES: 64

SL_RAIL_UTIL_RSSI_OFFSET: 0

# all zigbee channels
SL_ZIGBEE_AF_PLUGIN_NETWORK_STEERING_CHANNEL_MASK: 0x07fff800
SL_ZIGBEE_AF_PLUGIN_NETWORK_STEERING_RADIO_TX_POWER: 19

SL_ZIGBEE_AF_PLUGIN_CONCENTRATOR_CONCENTRATOR_TYPE: HIGH_RAM_CONCENTRATOR
# <1-60>
SL_ZIGBEE_AF_PLUGIN_CONCENTRATOR_MIN_TIME_BETWEEN_BROADCASTS_SECONDS: 30
# <30-300>
SL_ZIGBEE_AF_PLUGIN_CONCENTRATOR_MAX_TIME_BETWEEN_BROADCASTS_SECONDS: 180
# <1-100>
SL_ZIGBEE_AF_PLUGIN_CONCENTRATOR_ROUTE_ERROR_THRESHOLD: 3
# <1-100>
SL_ZIGBEE_AF_PLUGIN_CONCENTRATOR_DELIVERY_FAILURE_THRESHOLD: 1
Loading