Showing results for 
Search instead for 
Did you mean: 

OpenAMP communication problem with the STM32MP157C-EV1 board.


Hello, I have an interprocessor communication problem using the OpenAMP_TTY_echo example on the STM32MP157C-EV1 board.

I am tring example OpenAMP_TTY_echo, to comunicate between M4 and A7 on the STM32MP157C-EV1 board.

I can't find the solution, and I need your help.

I installed Linux (en.flash-stm32mp1-openstlinux-6-1-yocto-mickledore-mp1-v23-06-21.tar.gz) downloaded from:
and installed to the STM32MP157-EV1 with STM32 Cube Programmer V2.14.0

On my PC: I am using Keil V5.36, compiled the example OpenAMP_TTY_echo without error.
The example code runs without problem. either with the Tools: STM32MP1 Load and Run command, or from the Debugger.
I traced the code and it runs normally in the while(1) loop of app_main (main.c)
(without going through an "Error_Handler")

When I execute ssh command to connect to the STM32MP157-EV1 board, it seems that none of the devices ttyRPMSG0 or ttyRPMSG1 are present.
ls /dev/ttyRPMSG*
ls: cannot access '/dev/ttyRPMSG*': No such file or directory

So no communication (echo) between the A7 and the M4 as indicated in the doc:
Using STM32MP1 Cortex-M with Keil MDK, MDK Tutorial, AN319, February 2021, V1.2

stty -onlcr -echo -F /dev/ttyRPMSG0
stty: /dev/ttyRPMSG0: No such file or directory

Do I need to do anything special on the linux side? Am I doing something wrong?
Thank you for your help.