Skip to content
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
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
/boards/seeed/xiao_rp2040/ @rexut
/boards/seeed/xiao_rp2350/ @rexut
/boards/seeed/xiao_samd21/ @rexut
/boards/seeed/xiao_stm32c5/ @rexut
/boards/shields/ @rexut
/boards/shields/can_timing_adj/ @rexut
/boards/shields/grove/ @rexut
Expand Down
57 changes: 57 additions & 0 deletions boards/seeed/xiao_stm32c5/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Seeed Studio XIAO STM32C5 board extended configuration

# SPDX-FileCopyrightText: Copyright (c) 2026 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

# Workaround for not being able to have commas in macro arguments
DT_CHOSEN_Z_CONSOLE := zephyr,console
DT_COMPAT_Z_CDC_ACM_UART := zephyr,cdc-acm-uart
DT_COMPAT_STM32_USB := st,stm32-usb

# Macros to shorten Kconfig expressions
DT_CHOSEN_CONSOLE_NODE := $(dt_chosen_path,$(DT_CHOSEN_Z_CONSOLE))
DT_CHOSEN_CONSOLE_PARENT := $(dt_node_parent,$(DT_CHOSEN_CONSOLE_NODE))

if BOARD_XIAO_STM32C5 && \
$(dt_chosen_enabled,$(DT_CHOSEN_Z_CONSOLE)) && \
$(dt_compat_on_bus,$(DT_COMPAT_Z_CDC_ACM_UART),usb) && \
$(dt_node_has_compat,$(DT_CHOSEN_CONSOLE_PARENT),$(DT_COMPAT_STM32_USB))

config CDC_ACM_SERIAL_SELF_POWERED
default n
depends on USB_DEVICE_STACK_NEXT && USBD_CDC_ACM_CLASS

config CDC_ACM_SERIAL_MAX_POWER
default 250 if BOARD_XIAO_STM32C5 # 500mA
depends on USB_DEVICE_STACK_NEXT && USBD_CDC_ACM_CLASS

# Logger cannot use itself to log
choice USBD_CDC_ACM_LOG_LEVEL_CHOICE
default USBD_CDC_ACM_LOG_LEVEL_OFF
depends on LOG && USB_DEVICE_STACK_NEXT && USBD_CDC_ACM_CLASS
endchoice

# Set USB log level to error only
choice USBD_LOG_LEVEL_CHOICE
default USBD_LOG_LEVEL_OFF
depends on LOG && USB_DEVICE_STACK_NEXT && USBD_CDC_ACM_CLASS
endchoice

# Set UDC driver log level to error only
choice UDC_DRIVER_LOG_LEVEL_CHOICE
default UDC_DRIVER_LOG_LEVEL_ERR
depends on LOG && USB_DEVICE_STACK_NEXT && USBD_CDC_ACM_CLASS
endchoice

endif # zephyr,cdc-acm-uart

# Revert USB CDC-ACM console via common fragment in upstream board.
config BOARD_REQUIRES_SERIAL_BACKEND_CDC_ACM
default n if BOARD_XIAO_STM32C5_STM32C5A3XX_BBE && \
!$(dt_compat_enabled,$(DT_COMPAT_STM32_USB))

config BOARD_SERIAL_BACKEND_CDC_ACM
default n if BOARD_XIAO_STM32C5_STM32C5A3XX_BBE && \
!$(dt_compat_enabled,$(DT_COMPAT_STM32_USB))

# END of Revert USB CDC-ACM console (do not remove or change this line)
9 changes: 9 additions & 0 deletions boards/seeed/xiao_stm32c5/Kconfig.xiao_stm32c5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

config BOARD_XIAO_STM32C5_STM32C5A3XX
bool

config BOARD_XIAO_STM32C5_STM32C5A3XX_BBE
bool
select BOARD_XIAO_STM32C5_STM32C5A3XX
8 changes: 8 additions & 0 deletions boards/seeed/xiao_stm32c5/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-FileCopyrightText: Copyright (c) 2026 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

board:
extend: xiao_stm32c5
variants:
- name: bbe
qualifier: stm32c5a3xx
1,029 changes: 1,029 additions & 0 deletions boards/seeed/xiao_stm32c5/doc/bootloader/stm32c5_tinyuf2_bl.hex

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading