This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF5340 exchange datas between applacation core and net core

Recently I develop products on nRF5340, I plan to make the full BLE stack run in the net-core, and app-core only runs application. It involves data exchenge between net-core and app-core, which may be the most difficult part.

So I have the following questions:

1. Is the scheme effective?

2. How to implement the scheme?

3. Is there the relevant documents description?

3 What is the relevance between openAMP and RPC?

Parents Reply Children
  • Hi Vidar,

    Thanks for the reply.

    Now, it worked that exchanging data between application core and net core via openAMP, and I understood the principle of RPC. But there are some problems I haven't figured out yet.

    When using RPC to call remote CPU functions, the memory allocated by NRF_RPC_CBOR_ALLOC is used to cache the encoded command and paramters. If the parameter of the function is a lots of data, it would need to allocate  much memory to accommodate the data. Is there any other way to achieve this? Is it work to copy the data to the shared memory area?

  • Hi,

    NRF_RPC_CBOR_ALLOC allocates memory from stack and automatically frees it once the data has been passed to the send function (openAMP). Is the stack usage a concern?

    Deang said:
    Is it work to copy the data to the shared memory area?

    Yes, correct.

Related