btstack/chipset/zephyr/nrf5340_dongle
2024-04-26 19:39:54 +02:00
..
child_image
overlay-usb.conf
README.md chipset/zephyr: fix board for nrf5340 adk usb dongle doc 2024-04-26 19:39:54 +02:00
usb.overlay

nRF5340 (Audio) DK Board as USB HCI Dongle Guide

This will turn the Nordic nRF5340 DK and Audio DK boards into an USB CDC HCI dongle that uses Nordic's SoftDevice Controller.

Preconditions

Build/Flash HCI Bridge on AppCore

You need to specify the board with the '-b' param in the west call.

For nRF5340 DK:

cd  ${NCS_ROOT}/zephyr/samples/bluetooth/hci_uart/
west build --pristine -b nrf5340dk_nrf5340_cpuapp -- -DDTC_OVERLAY_FILE=usb.overlay -DOVERLAY_CONFIG=overlay-usb.conf
west flash

For nRF5340 Audio DK (ADK)

cd  ${NCS_ROOT}/zephyr/samples/bluetooth/hci_uart/
west build --pristine -b nrf5340dk_nrf5340_cpuapp -- -DDTC_OVERLAY_FILE=usb.overlay -DOVERLAY_CONFIG=overlay-usb.conf
west flash

Usage / Find Serial Port

On macOS, the nRF5340 ADK with the HCI bridge show up as 5 /dev/tty. To find the HCI one, list all /dev/tty.* devices, then press and hold the RESET button and list all devices again. The missing one is the one provided by the HCI bridge.

On the nRF5340 DK, you can directly plug into the nRF5340 USB port and get only a single /dev/tty.

HCI log

btmon -J nrf5340_xxaa_app -w <logfile>