2022-11-17 07:00 AM
Hi!
I have created a program to send messages between cores (A7 and M4), using virtual uart. The messages that are sent from the A7 core are received by the M4 core. My error occurs when I try to read the messages that are sent from the M4 core to the A7. The program that I have created in linux is the following (M4 program is running):
How can I read the messages that are sent from the M4 core?
Is there any example to follow?
Thanks!
Solved! Go to Solution.
2022-11-17 01:15 PM
Hello @TArre.1,
I do not think we have a complete example of A7 code to read rmpsgs, but you are on the right track !
Indeed, in the context of a userspace application (in C or C++ for example), you will use file descriptor exactly like you did on your screenshot.
For an application, a good idea would be the next one:
Some attention point:
If you have some trouble to develop your application, I will be glad to help you. Make a first try by yourself and come back to me if you face troubles 🙂
Kind regards,
Erwan.
2022-11-17 01:15 PM
Hello @TArre.1,
I do not think we have a complete example of A7 code to read rmpsgs, but you are on the right track !
Indeed, in the context of a userspace application (in C or C++ for example), you will use file descriptor exactly like you did on your screenshot.
For an application, a good idea would be the next one:
Some attention point:
If you have some trouble to develop your application, I will be glad to help you. Make a first try by yourself and come back to me if you face troubles 🙂
Kind regards,
Erwan.
2022-11-21 02:26 AM
HI Erwan,
Thank you for your reply! 😁
I have tried to do what you indicate but I am not able to read the message that has been sent from M4 to A7.
I attach the project that I have created (STM32CubeIDE v1.6.0):
The problem is that I can´t read the message sent from M4 to A7 via ttyRPMSG0.
Can you help me?
Thanks!
2022-11-22 07:09 AM
Hi @Erwan SZYMANSKI
Finally, I have succeeded and I am now able to communicate. Thanks for your help!😁
2022-11-22 07:19 AM
Hello @TArre.1 ,
Sorry to not have answered quicker, I had a lot of other stuff to do aside.
I am glad to see that you were able to solve your issue ! Good luck for your dev 🙂
Kind regards,
Erwan.