boards: arm: xiao_ble: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-02 11:38:13 +00:00
committed by Carles Cufi
parent 6dd2723314
commit c1565b3d14
19 changed files with 23 additions and 53 deletions

View File

@@ -1,33 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_XIAO_BLE=y
# Enable MPU
CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# enable GPIO
CONFIG_GPIO=y
# enable uart driver
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
# Logger cannot use itself to log
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
# enable USB
CONFIG_USB_DEVICE_STACK=y
# Build UF2 by default, supported by the Adafruit nRF52 Bootloader
CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_USE_DT_CODE_PARTITION=y
# required to enable LSM6DS3TR-C power
CONFIG_REGULATOR=y

View File

@@ -1,3 +1,5 @@
board:
name: qemu_cortex_m0
vendor: Nordic Semiconductor
socs:
- name: nrf51822

View File

@@ -5,14 +5,9 @@
if BOARD_XIAO_BLE
config BOARD
default "xiao_ble"
config BT_CTLR
default BT
endif # BOARD_XIAO_BLE
if USB_DEVICE_STACK
config UART_CONSOLE
@@ -22,3 +17,5 @@ config USB_DEVICE_INITIALIZE_AT_BOOT
default y
endif # USB_DEVICE_STACK
endif # BOARD_XIAO_BLE

View File

@@ -4,5 +4,4 @@
# SPDX-License-Identifier: Apache-2.0
config BOARD_XIAO_BLE
bool "XIAO BLE"
depends on SOC_NRF52840_QIAA
select SOC_NRF52840_QIAA

View File

@@ -0,0 +1,5 @@
board:
name: xiao_ble
vendor: Seeed Studio
variants:
- name: 'sense'

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -146,7 +146,7 @@ initialized before any text is printed, as below:
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: xiao_ble_sense
:board: xiao_ble/nrf52840/sense
:goals: build flash
:gen-args: -DCONFIG_BOOT_DELAY=5000
@@ -177,12 +177,12 @@ properly with Zephyr:
.. zephyr-app-commands::
:zephyr-app: samples/basic/blinky
:board: xiao_ble_sense
:board: xiao_ble/nrf52840/sense
:goals: build flash
You can build and flash the examples to make sure Zephyr is running correctly on
your board. The LED definitions can be found in
:zephyr_file:`boards/arm/xiao_ble/xiao_ble_common.dtsi`.
:zephyr_file:`boards/xiao_ble/xiao_ble_common.dtsi`.
Testing shell over USB in the XIAO BLE (Sense)
**********************************************
@@ -203,7 +203,7 @@ with Zephyr:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/shell/shell_module
:board: xiao_ble_sense
:board: xiao_ble/nrf52840/sense
:goals: build flash
References

View File

@@ -1,28 +1,24 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF52X=y
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_XIAO_BLE=y
# Enable MPU
CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# enable GPIO
# Enable GPIO
CONFIG_GPIO=y
# enable uart driver
# Enable UART driver
CONFIG_SERIAL=y
# enable console
# Enable console
CONFIG_CONSOLE=y
# Logger cannot use itself to log
CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y
# enable USB
# Enable USB
CONFIG_USB_DEVICE_STACK=y
# Build UF2 by default, supported by the Adafruit nRF52 Bootloader

View File

@@ -1,4 +1,4 @@
identifier: xiao_ble_sense
identifier: xiao_ble/nrf52840/sense
name: XIAO BLE Sense
type: mcu
arch: arm

View File

@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
# Required to enable LSM6DS3TR-C power
CONFIG_REGULATOR=y