Hi
I've configured Zephyr to run BLE host on cpuapp and BLE controller on cpunet, and using RPMsg to communicate between them.
When I call bt_enable() from the app core, it get stuck in function
bt_rpmsg_open(),
which is calling
rpmsg_service_endpoint_is_bound()
and it get stuck in a while loop inside bt_rpmsg_open(). Need some help to know what functions to call to register and initialize the BLE and RPMsg framwork on BOTH cores please.
I've been looking at the HCI_RPMsg example, but that is for cpunet, the problem here is at the cpuapp core.
When I set CONFIG_RPMSG_SERVICE_MODE_REMOTE=y for the cpunet, the network core doesn't start up.
Not sure how to configure everything.
I'm building the two cores separately and not using child image.
This is how the conf file of cpuapp looks like regarding BLE and RPMsg:
# BLE
CONFIG_BT=y
CONFIG_BT_HCI=y
CONFIG_BT_CTLR=n
CONFIG_BT_HCI_RAW=n
CONFIG_BT_BUF_CMD_TX_COUNT=64
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_SMP=y
# RPMsg/openAMP
CONFIG_RPMSG_SERVICE=y
CONFIG_RPMSG_SERVICE_MODE_MASTER=y
CONFIG_OPENAMP_SLAVE=n
CONFIG_PRINTK=y
And this is for cpunet:
# BLE
CONFIG_BT=y
CONFIG_BT_HCI=y
CONFIG_BT_HCI_RAW=y
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y
# RPMsg/openAMP
CONFIG_RPMSG_SERVICE=y
CONFIG_RPMSG_SERVICE_MODE_REMOTE=y #### If this is included it makes the network core to not start up
CONFIG_OPENAMP_MASTER=n
I've also tried using the pure RPMsg example without BLE, in zephyr/samples/subsys/ipc/rpmsg_service
But that doesn't work either, get stuck in the same function, and the network core doesn't even start up when CONFIG_RPMSG_SERVICE_MODE_REMOTE=y is enabled
Thanks