Skip to main content
SMang.1
Associate II
February 1, 2021
Question

OpenAMP and FreeRTOS on STM32MP1

  • February 1, 2021
  • 3 replies
  • 3201 views

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
February 6, 2021

Still waiting for some response, here.

JSpra
Associate III
March 9, 2021

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
March 9, 2021

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.