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

nRF Connect SDK: nRF5340: RPMSG_SERVICE vs NRF_RPC NRF_RPC_CBOR?

I have some code that runs on the application and network processors that uses NRF_RPC NRF_RPC_CBOR (similar to the entropy_nrf53 sample) to communicate during boot loading.

Now I'm trying to add this code with the BLE Host on the application processor.  It looks like the BLE Host uses nrf rpc differently (defined by RPMSG_SERVICE?). This causes a build error because of "dispatch" being defined in rpmsg_backend.c and also in rp_ll.c.

I assume this means that I need to use RPMSG_SERVICE for my boot loading code instead of NRF_RPC NRF_RPC_CBOR so that it can link with BLE Host code included.  However, it looks like NRF_RPC_CBOR is not compatible with RPMSG_SERVICE.  So not sure how to serialize / deserialize the calls...

Any tips for how to create our own nrf rpc services that will link with BLE Host code?  And also be usable when not linked to BLE Host code?

Parents Reply Children
Related