Hello!
Our plan is to have the whole Bluetooth stack (softdevice controller, HCI, host) on the NET core and make APP core call the functions by RPC. The board is an nRF5340DK.
This URL describes how to compile the whole stuff to NET core: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#ble-rpc-host
(overlay-debugging.conf can't be used, as the resulting flash size exceeds NET core's flash size)
I've burnt it to NET core's flash with west, neither a single line is displayed on the console, I don't know if it's normal.
As the second step, I'd like to compile and burn the zephyr/samples/bluetooth/beacon example to the APP core and make it use the NET core by RPC. I've been struggling with this one. Compiled with the following:
west build -b nrf5340dk_nrf5340_cpuapp -- -DCONFIG_BT_RPC_STACK=y
In the burn phase (west flash), an error occurs:
FATAL ERROR: command exited with status 33: nrfjprog --program /home/tselmeci/compile/nRF5340-eval/ncs/zephyr/samples/bluetooth/beacon/build/zephyr/GENERATED_CP_NETWORK_merged_domains.hex --sectorerase --verify -f NRF53 --snr 1050091855 --coprocessor CP_NETWORK
I can't get it why it wants to write to NET core instead of the APP core.
Please share with me all the steps needed to achieve this:
- full BT stack on NET core;
- beacon demo on APP core using NRF_RPC to reach BT functions;
- to have both APP and NET core the same (or similar) config to avoid runtime asserts and complaints;
- APP and NET are compiled separately, not in a multi-image;
I definitely need to have all the BT stuff separated on the NET core, because want to investigate how BT functions are called via NRF_RPC and whether we can use something different than Zephyr on APP core with NRF_RPC.
Thanks!