cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
263 Views
Registered: ‎05-31-2018

Bi-Directional RPC's between linux and r5

Hi all,

The RPC example xilinx provides from their SDK has the arm serve as the master (server) and the r5 serve as the Remote processor (client). The code for the arm I looked at is here; https://github.com/Xilinx/meta-openamp/blob/master/recipes-openamp/rpmsg-examples/rpmsg-proxy-app/proxy_app.c

Does that mean that only linux can only receive the rpc calls and the r5 can send them? Looking at the code, the arm does do a write init message to the r5 in order to start the rpc service: (line 574)

ret = write(proxy->rpmsg_proxy_fd, RPMG_INIT_MSG, sizeof(RPMG_INIT_MSG)); 

So, in theory you can program the r5 firmware to understand different linux write commands and therefor have bi-directional rpc send/receive functionality, would I be correct in that assessment? 

Tags (4)
0 Kudos
1 Reply
Highlighted
Contributor
Contributor
185 Views
Registered: ‎05-31-2018

Anyone have any more info? Perhaps I was a bit too vague.

0 Kudos