Spi communication m4 core to linux user space

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Spi communication m4 core to linux user space

1,480件の閲覧回数
Dhevan
Contributor IV

Hi,

     We are using two spi interface for sensor communication parallel we are reading two spi interface we are facing issue for data loss.

     Now we are planning to m4 code one spi and linux for one spi interface.

     1) How to assign one spi for linux and another spi for m4 core in device tree and necessary change ?

     2) How to transfer m4 spi data to linux user space code ?

Thanks & Regards,

         Vasu

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,475件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Vasu

 

1. one can look at ecspi examples (../driver_examples/ecspi)  in SDK_EVK-MIMX8MM

available on https://mcuxpresso.nxp.com/en/welcome

2. one can look at rpmsg i2c example (i2c-rpmsg-imx.c) as reference

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/i2c/busses/i2c-rpmsg-imx.c?h=imx_5...

and description in sect.2.8 Remote Processor Messaging   i.MX Linux Reference Manual​

 

Best regards
igor

0 件の賞賛
返信

1,457件の閲覧回数
Dhevan
Contributor IV

Hi @igorpadykov,

       Thanks for your response.

       I have refereed rpmsg_lite_str_echo_rtos example code this code working fine.

       We want to read data from m4 core without send request.

          Example code flow :

                  echo "test" > /dev/ttyRPMSG30       // Linux

                  Receive message and send back message to /dev/ttyRPMSG30    // M4 core

         Our Requirement flow :

                 Send data continuously to /dev/ttyRPMSG30          // M4 Core

                 Linux user space we can read /dev/ttyRPMSG30 currently available data       // Linux

         Compulsory we has to send some dummy request then only we will get data ?

         How to achieve our requirement ?

Thanks & Regards,

        Vasu