RPMSG SDB0 Driver Issue
Hi all,
I am trying to achieve DDR data transfer between M4 and A7.
So I followed How to exchange data buffers with the coprocessor - stm32mpu article and built a yocto image.
I have stripped down the logic analyzer application : here .
- On CM4 side it just transfers data from a another MCU pushing in data at UART7 and transferring that via DMA to DDR buffer.
- SDB Driver unchanged.
- On the Application side , I have removed all GTK related things and just stripped it down to receive data to DDR buffer and print to a console.
I have few questions of concerns:
In case of the CM4 code provided here : Link
There no support in the latest cube-mx to create an RPMSG_HDR_HandleTypeDef type object which might be labelled as /dev/tpmsg-sdb type in user space application.
Although the data structure is similar to VIRT_UART_HandleTypeDef. So I went ahead and made and rpmsg-sdb object of the later type.
Now when I run my stripped down application part of attached zip. I get below error on A7-console :
CA7 : Forward efd info for buf0 with mFdSdbRpmsg:5 and efd:6
./backend: failed to set efd: Inappropriate ioctl for deviceNote that now I get 3 devices : ttyRPMSG0 , 1 , 2. So in order to identify which is the sdb one I initialized it at the last in M4 code. Not sure if that is right way.
Kindly advice what might be potential root cause of issue here.
