Skip to content

Commit

Permalink
samples: Bluetooth: hci_usb: Disable USB_CDC_ACM
Browse files Browse the repository at this point in the history
BlueZ btusb does not recognize hci_usb sample as Bluetooth
Controller when CDC ACM is enabled in the sample.

Refer to #29107

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak authored and nashif committed Jun 9, 2023
1 parent 8eaeb73 commit 5eb17bc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions boards/arm/adafruit_itsybitsy_nrf52840/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ config USB_DEVICE_STACK
default y

config USB_CDC_ACM
default y
default SERIAL

config UART_CONSOLE
default CONSOLE

config USB_DEVICE_INITIALIZE_AT_BOOT
default y
default y if CONSOLE

config SHELL_BACKEND_SERIAL_CHECK_DTR
default SHELL
Expand Down
4 changes: 2 additions & 2 deletions boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ config USB_DEVICE_STACK
default y

config USB_CDC_ACM
default y
default SERIAL

config UART_CONSOLE
default CONSOLE

config USB_DEVICE_INITIALIZE_AT_BOOT
default y if !MCUBOOT
default y if !MCUBOOT && CONSOLE

config SHELL_BACKEND_SERIAL_CHECK_DTR
default SHELL
Expand Down
12 changes: 6 additions & 6 deletions samples/bluetooth/hci_usb/prj.conf
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
CONFIG_STDOUT_CONSOLE=y
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n

CONFIG_BT=y
CONFIG_BT_HCI_RAW=y

CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_PID=0x000B
CONFIG_USB_DEVICE_BLUETOOTH=y
CONFIG_USB_DEVICE_BLUETOOTH_VS_H4=n
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n

# We dont want any console or CDC ACM that may cause BlueZ to not detect hci_usb
CONFIG_SERIAL=n
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n

# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
# Host number of completed commands does not follow normal flow control.
Expand Down

0 comments on commit 5eb17bc

Please sign in to comment.