-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Turning on USB logging interferes with TX/RX pins on Xiao BLE #1887
Comments
Actually I didn't have any luck with enabling USB logging with those nodes deleted. The stock > west build -p -d build/hummingbird -b seeeduino_xiao_ble -- -DSHIELD=hummingbird -DCONFIG_ZMK_USB_LOGGING=y
[...]
/home/.../zmk/zephyr/include/zephyr/device.h:104:39: error: '__device_dts_ord_DT_CHOSEN_zephyr_console_ORD' undeclared here (not in a function)
[...] |
I believe the issue is that USB logging enables UART, which causes this UART https://github.com/zmkfirmware/zephyr/blob/v3.2.0%2Bzmk-fixes/boards/arm/seeeduino_xiao_ble/seeeduino_xiao_ble.dts#L64 to be enabled internally within Zephyr. My initial guess is |
Thanks, FWIW, removing |
Two small observations:
|
I have this issue where turning on USB logging via
CONFIG_ZMK_USB_LOGGING=y
prevents the matrix pin I have at RX (D7/P1.12) from working. I am guessing this is because they are assigned to UART pins at https://github.com/zmkfirmware/zephyr/blob/v3.2.0%2Bzmk-fixes/boards/arm/seeeduino_xiao_ble/seeeduino_xiao_ble-pinctrl.dtsi#L7 and logging turns it on via https://github.com/zmkfirmware/zephyr/blob/v3.2.0%2Bzmk-fixes/boards/arm/seeeduino_xiao_ble/seeeduino_xiao_ble.dts#L17.I see some shield configs deleting these properties, e.g. https://github.com/zmkfirmware/zmk/blob/main/app/boards/shields/hummingbird/hummingbird.overlay#L13. Should this be something that every shield does, or would it be better to solve it at the
seeeduino_xiao_ble.overlay
level?The text was updated successfully, but these errors were encountered: