Skip to content

zephyr: Use UART for console as default, not CONSOLE_SUBSYS. #17610

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

Merged
merged 3 commits into from
Jul 7, 2025

Conversation

dpgeorge
Copy link
Member

@dpgeorge dpgeorge commented Jul 3, 2025

Summary

Most zephyr boards enable the UART console because it's needed for USB (where USB CDC creates a virtual UART), and for ctrl-C to work. This PR makes that option the default (prior to this PR, CONSOLE_SUBSYS was the default).

The prj_minimal.conf settings still use CONSOLE_SUBSYS, and show how it can be configured.

Fixes issue #17608.

(I also updated the qemu board configurations so they work with prj.conf, which was needed for testing.)

Testing

Tested a REPL on:

  • qemu_x86, both prj and prj_minimal settings
  • qemu_cortex_m3, both prj and prj_minimal settings
  • nucleo_wb55rg

@bikeNomad
Copy link
Contributor

Works on XIAO BLE NRF52840 SENSE board.

@dpgeorge
Copy link
Member Author

dpgeorge commented Jul 4, 2025

Works on XIAO BLE NRF52840 SENSE board.

That's good, thanks for testing.

dpgeorge added 3 commits July 8, 2025 09:29
This gets qemu_x86 and qemu_cortex_m3 building with `prj.conf` settings.

Signed-off-by: Damien George <damien@micropython.org>
Signed-off-by: Damien George <damien@micropython.org>
Most boards enable the UART console because it's needed for USB (where USB
CDC creates a virtual UART), and for ctrl-C to work.

The `prj_minimal.conf` settings still use CONSOLE_SUBSYS.

Fixes issue micropython#17608.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the zephyr-disable-console-subsys branch from 019656b to 5eb94df Compare July 7, 2025 23:30
@dpgeorge dpgeorge merged commit 5eb94df into micropython:master Jul 7, 2025
7 checks passed
@dpgeorge dpgeorge deleted the zephyr-disable-console-subsys branch July 7, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy