Skip to content

Conversation

@mkasenberg
Copy link
Contributor

@mkasenberg mkasenberg commented Sep 30, 2024

Related PR apache/mynewt-core#3312

Can be tested with a nRF5340 board:

  • Nimble Host + Nimble Controller
  • Nimble Host + Zephyr Controller
  • Zephyr Host + Nimble Controller

Build cheat-sheet:

Erase all and disable APPROTECT:

nrfjprog --eraseall ; nrfjprog --recover --coprocessor CP_NETWORK ; nrfjprog --recover ; nrfjprog -r
nrfjprog --memwr 0x00FF8000 --val 0x50FA50FA
newt build nordic_pca10095_boot
newt load nordic_pca10095_boot
newt build nordic_pca10095_app-advertiser
newt create-image nordic_pca10095_app-advertiser timestamp
newt load nordic_pca10095_app-advertiser
newt build nordic_pca10095_net_boot
newt load nordic_pca10095_net_boot
newt build nordic_pca10095_net-blehci
newt create-image nordic_pca10095_net-blehci timestamp
newt load nordic_pca10095_net-blehci
  • Zephyr Host:
cd ~/zephyrproject/zephyr/samples/bluetooth/peripheral_hr/
west build -b nrf5340dk/nrf5340/cpuapp . -- -DDTC_OVERLAY_FILE='~/zephyrproject/zephyr/samples/subsys/ipc/ipc_service/multi_endpoint/boards/nrf5340dk_nrf5340_cpuapp_icbmsg.overlay' -DCONFIG_BT_HCI_VS=n
west flash
  • Zephyr Controller:
cd ~/zephyrproject/zephyr/samples/bluetooth/hci_ipc
west build -b nrf5340dk/nrf5340/cpunet . -- -DDTC_OVERLAY_FILE=~/zephyrproject/zephyr/samples/subsys/ipc/ipc_service/multi_endpoint/remote/boards/nrf5340dk_nrf5340_cpunet_icbmsg.overlay
west flash

@github-actions github-actions bot added the size/M Medium PR label Sep 30, 2024
@mkasenberg mkasenberg force-pushed the add-ble-hci-ipc branch 2 times, most recently from daaf3d3 to a9eb7aa Compare October 4, 2024 07:40
@mkasenberg mkasenberg changed the title [wip] nimble/transport: Add ipc_icbmsg nimble/transport: Add ipc_icbmsg Oct 4, 2024
@mkasenberg mkasenberg marked this pull request as ready for review October 4, 2024 07:51
@mkasenberg
Copy link
Contributor Author

@MariuszSkamra

@MariuszSkamra
Copy link
Contributor

LGTM

@mkasenberg
Copy link
Contributor Author

Just rebased

Enables LLCP tracing using HCI vendor-specific events.
value: '0'

BLE_LL_HCI_NOOP_AFTER_INIT:
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be a separate commit

#define HCI_IPC_TYPE_EVT 0x04
#define HCI_IPC_TYPE_ISO 0x05
/* These two are not used actually */
#define HCI_IPC_TYPE_EVT_DISCARDABLE 0x06
Copy link
Contributor

Choose a reason for hiding this comment

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

so looks like icbmsg uses simple H4, in such case it should simply use hci_h4

- native
- dialog_cmac
- nrf5340
- ipc
Copy link
Contributor

Choose a reason for hiding this comment

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

icbmsg or ipc_icbmsg - I think the latter is more preferable as we may later opt rename nrf5340 and cmac to include ipc_ prefix as well -> @sjanc ?

syscfg.defs:
BLE_TRANSPORT_IPC_BACKEND:
description: >
Select IPC backend.
Copy link
Contributor

Choose a reason for hiding this comment

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

skip the intermediate ipc transport package, icbmsg should be directly included from nimble/transport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants