Skip to main content
SMang.1
Associate II
Feb 1, 2021 10:28 AM UTC
Question

OpenAMP and FreeRTOS on STM32MP1

I am facing a freeze on M4 and A7 core when enabling FreeRTOS with OpenAMP_TTY_echo example.

Can someone please point out if OpenAMP and FreeRTOS can be run together or not?

This topic has been closed for replies.

3 replies

SMang.1
SMang.1Author
Associate II
Feb 6, 2021 1:05 PM UTC

Still waiting for some response, here.

JSpra
Associate III
Mar 9, 2021 2:23 AM UTC

I'm having same problem.

Noticed that there are no examples with this combination.

Is OpenAmp thread safe?

More info here

https://github.com/OpenAMP/open-amp/issues/217

ArnaudP
ST Employee
Mar 9, 2021 1:52 PM UTC

Hello,

Have you tested this exemple: https://github.com/STMicroelectronics/STM32CubeMP1/tree/master/Projects/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_FreeRTOS_echo?

Note that the use of OpenAMP and freeRTOS has limitations:

  • As mentioned in issue 101, there is a thread rescheduling issue that can lead to a freeze. To avoid this you have to handle the RPMsg send an receive in the same thread ( to avoid double mutex lock).
  • The libmetal library of the ST distribution has been configured for the baremetal ( no OS). It therefore does not take advantage of FreeRTOS routines.