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

samples: bluetooth: hci_usb: Add support for bl654_usb #39905

Closed
wants to merge 1 commit into from

Conversation

nordicjm
Copy link
Collaborator

Fixes an issue with the USB CDC port being enabled which prevented
running the sample application

Signed-off-by: Jamie McCrae [email protected]

Fixes #39904

Fixes an issue with the USB CDC port being enabled which prevented
running the sample application

Signed-off-by: Jamie McCrae <[email protected]>
@@ -0,0 +1,2 @@
CONFIG_USB_CDC_ACM=n
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we should start with that, that can be handled at board level, if your board enables USB per default then it should handle this configuration there as well. Otherwise we will soon have many trivial overlays here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

USB CDC is enabled by default so it can be used as an input/output, the overlay is here because in this specific sample it needs to use the USB for a bluetooth transport.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff --git a/boards/arm/bl654_usb/Kconfig.defconfig b/boards/arm/bl654_usb/Kconfig.defconfig
index 56125667cb..99e269f524 100644
--- a/boards/arm/bl654_usb/Kconfig.defconfig
+++ b/boards/arm/bl654_usb/Kconfig.defconfig
@@ -26,7 +26,10 @@ config FLASH_LOAD_OFFSET
 if USB_DEVICE_STACK
 
 config USB_UART_CONSOLE
-       default y
+       default y if !USB_DEVICE_BLUETOOTH
+
+config USB_CDC_ACM
+       default n if USB_DEVICE_BLUETOOTH
 
 config UART_LINE_CTRL
        default y

okay?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's changed in zephyr? As far as I can see, current top of tree, USB CDC is broken. shell_module enumerates as a CDC device which then doesn't give any output or accept any input, hci_usb works, any other sample application with UART/log output with output set for CDC never enumerates as a USB device

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's changed in zephyr?

Please read release notes.

@nordicjm nordicjm closed this Nov 2, 2021
@nordicjm nordicjm deleted the bl654usbhcifix branch March 18, 2022 07: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.

bl654_usb does not work with hci_usb sample application
4 participants