How does the Host for nRF RPC sample works with nRF5340?

 Hi,

 Currently, I'm working with the ISP2053, one of the nRF5340's 3rd models.

 As a beginning, my colleague wrote a code based on the throughput sample and I found that the code is not working as I expected.

 It was able to get the required sampling rate with GPIOs until I insert the bt_nus_send() function in the application core's main.c

 I think the BLE functions running on the application core slows down the digital reading part.

 As the nRF5340 is a dual-core module, I want the network core handles all the BLE functions and the application core performs high-rate digital reading and processing.

 I found an nRF RPC sample that seems like can solve the issue, but I cannot understand how to use it.

 According to the explanation written in nRF RPC sample, what I have to do is build the same code targetting application core with adding '-DCONFIG_BT_RPC_STACK=y' argument to the build option. But if I do so, the system just shut down.

 I'm sorry for the ambiguous explanation as I'm really confused now... Do I have to re-write all the code for the RPC sample? Is there any tutorial?

Parents Reply
  • If you have selected the correct template sample for the target nRF53, then the RPC function codecs files must have been built into your application which are translating your BLE calls into RPC API's. 

    So yes, I think after you flashed the RPC Host to the network core, you do not need to make any changes apart from double checking that the rpc module is included in your project. I have never tried this myself. If you encounter any obstacles, ill help you overcome it, but those obstacles will only be configuration issues and nothing about rewriting the code. 

Children
Related