This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Fail to run both beacon and central sample in one app - Zephyr BLE.

Hi,

I'm trying to alternate between the beacon sample and the central sample in one application. It builds and initiates, the connection example from central is functioning, but when I try to initiate the advertising example from 'beacon', I get the following error code:

When running each example individually, everything is ok. That is, for beacon example, I use in the proj.conf:

CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEVICE_NAME="Test beacon"
In the central example, I've got:
CONFIG_BT=y
CONFIG_BT_CENTRAL=y
When I combine them together into:
CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEVICE_NAME="Test beacon"
CONFIG_BT_CENTRAL=y
The error in the picture occurs.
Could you please help me understand what I'm doing wrong?
Thanks a lot in advance. Best regards, Jonas
Edit: Forgot to mention, I'm using the nrf52840
Related