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

feat!(boards): Migrate from seeeduino_xiao_ble to xiao_ble definition #2749

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
file_format: "1"
id: seeeduino_xiao_ble
name: Seeeduino XIAO BLE
id: xiao_ble
name: Seeed XIAO BLE
type: board
arch: arm
outputs:
Expand Down
15 changes: 15 additions & 0 deletions app/boards/xiao_ble.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CONFIG_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n
CONFIG_UART_INTERRUPT_DRIVEN=n
CONFIG_ZMK_USB=y
CONFIG_ZMK_BLE=y

CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y

CONFIG_HW_STACK_PROTECTION=n
39 changes: 39 additions & 0 deletions app/boards/xiao_ble.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2025 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

/ {
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
zephyr,bt-mon-uart = &uart0;
zephyr,bt-c2h-uart = &uart0;

zmk,battery = &vbatt;
};

vbatt: vbatt {
compatible = "zmk,battery-voltage-divider";
io-channels = <&adc 7>;
power-gpios = <&gpio0 14 (GPIO_OPEN_DRAIN | GPIO_ACTIVE_LOW)>;
output-ohms = <510000>;
full-ohms = <(1000000 + 510000)>;
};
};

&xiao_serial { status = "disabled"; };

&xiao_i2c { status = "disabled"; };

&xiao_spi { status = "disabled"; };

&pwm0 { status = "disabled"; };

&{/pwmleds} { status = "disabled"; };

&ieee802154 { status = "disabled"; };

/delete-node/ &usb_cdc_acm_uart;
2 changes: 1 addition & 1 deletion app/core-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ shield:
include:
- board: bdn9_rev2
- board: nice60
- board: seeeduino_xiao_ble
- board: xiao_ble
shield: hummingbird
- board: nrf52840_m2
shield: m60
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/troubleshooting/hardware-issues.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ include:
# -------------------
# Your keyboards here
# -------------------
- board: seeeduino_xiao_ble # Replace with the Xiao-compatible board you're using
- board: xiao_ble # Replace with the Xiao-compatible board you're using
shield: tester_xiao
```

Save the file, commit the changes and push them to GitHub. Download the new firmware zip file build by the latest GitHub Actions job. In it you will find an additional `tester_xiao` UF2 image file. Flash this file to your board.

The pinout of the seeeduino xiao interconnect is shown below:
The pinout of the Seeed Xiao interconnect is shown below:

![Seeeduino Xiao Interconnect pinout](../assets/interconnects/seeed_xiao/pinout.png)
![Seeed Xiao Interconnect pinout](../assets/interconnects/seeed_xiao/pinout.png)

</TabItem>
</TesterTabs>
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/user-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ When prompted, enter the number for the corresponding MCU board you would like t
MCU Board Selection:
1) BlueMicro840 v1 5) nRF52840 M.2 Module 9) QMK Proton-C
2) Mikoto 5.20 6) nRFMicro 1.1 (flipped) 10) Seeeduino XIAO
3) nice!nano v1 7) nRFMicro 1.1/1.2 11) Seeeduino XIAO BLE
3) nice!nano v1 7) nRFMicro 1.1/1.2 11) Seeed XIAO BLE
4) nice!nano v2 8) nRFMicro 1.3/1.4 12) Quit
Pick an MCU board:
```
Expand Down
Loading