Skip to main content
Associate III
June 20, 2025
Question

STM32MP257F-EV1: Adding OpenAMP in STM32CubeIDE

  • June 20, 2025
  • 4 replies
  • 1000 views

Hello everyone

When I add OpenAMP to Pinout & Configration of .ioc and build it, the build fails

The steps are as follows:

  • Create a new project (fuga_oka) for STM32MP277F-EV1 in STM32CubeIDE
  • Build this project. The build will finish successfully
  • Add OpenAMP to this project
  • Open fuga_oka.ioc          

         - Select OPENAMP in Pinout & Configration -> middle ware & Software Packs
         - Check M33NS(Cube)
         - Also check Activated
         - Save fuga_oka.ioc

Build the project. Some errors will be reported and the build will fail

An excerpt of the error part of the build log. The raw log is attached separately

~~~
C:/STM32MP2xx/fuga_oka/Middlewares/Third_Party/OpenAMP/libmetal/lib/system/generic/condition.c:12:10: fatal error: metal/condition.h: No such file or directory
12 | #include <metal/condition.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

C:/STM32MP2xx/fuga_oka/Middlewares/Third_Party/OpenAMP/libmetal/lib/dma.c:7:10: fatal error: metal/errno.h: No such file or directory
7 | #include <metal/errno.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.

../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/assert.h:15:10: fatal error: metal/system/@PROJECT_SYSTEM@/assert.h: No such file or directory
15 | #include <metal/system/@PROJECT_SYSTEM@/assert.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/assert.h:15:10: fatal error: metal/system/@PROJECT_SYSTEM@/assert.h: No such file or directory
15 | #include <metal/system/@PROJECT_SYSTEM@/assert.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

C:/STM32MP2xx/fuga_oka/Middlewares/Third_Party/OpenAMP/libmetal/lib/irq.c:7:10: fatal error: metal/errno.h: No such file or directory
7 | #include <metal/errno.h>
|^~~~~~~~~~~~~~~
compilation terminated.


C:/STM32MP2xx/fuga_oka/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c:8:10: fatal error: metal/errno.h: No such file or directory
8 | #include <metal/errno.h>
| ^~~~~~~~~~~~~~~
compilation terminated.


../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/assert.h:15:10: fatal error: metal/system/@PROJECT_SYSTEM@/assert.h: No such file or directory
15 | #include <metal/system/@PROJECT_SYSTEM@/assert.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

C:/STM32MP2xx/fuga_oka/Middlewares/Third_Party/OpenAMP/open-amp/lib/remoteproc/remoteproc_virtio.c:12:10: fatal error: openamp/remoteproc.h: No such file or directory 12 | #include <openamp/remoteproc.h>

| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

~~~
I thought the error was due to a lack of include path settings, so I tried to add an include path, but I couldn't find the metal folder in the project and couldn't set it.

Is there a problem with the project creation or build procedure?

 

Best Regards.

--
okuno

 

4 replies

Olivier GALLIEN
Technical Moderator
June 20, 2025

Hi @OKN ,

Thanks for your post and sorry for inconvenience. This is a known problem we are working on. BZ197530

We hope to provide fix in coming CubeMX release.

In the meantime you might take exemple on OpenAMP application exemple provided in CubeFirmware package and bring it in your project

Olivier 

 

 

 

Olivier GALLIEN In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
OKNAuthor
Associate III
June 20, 2025

I understand about the fixes in the next release.
By the way, when will the next version be released?

 

First, I tried to incorporate the OpenAMP-related parts from OpenAMP_TTY_echo into my project.

However, the build was unsuccessful, so I tried using CubeMX.

Can you tell me how to incorporate OpenAMP without using CubeMX?

I've tried various things, but the build still doesn't work...

 

Best Regards.

--

okuno

 

ST Employee
September 19, 2025

Hi @OKN ,

I think there is an issue with the include paths of your project. There is no issue in CUBEIDE.
For reference you can see this application present on this link:
https://github.com/STMicroelectronics/STM32CubeMP2/tree/main/Projects/STM32MP257F-EV1/Applications/OpenAMP

May be you are missing this include path which leads to this error.

shivam203_0-1758258017426.png

                                                                                                                                                                                       

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
OKNAuthor
Associate III
October 20, 2025

Hello @shivam203 @Olivier GALLIEN 

 

I can't find anything in the project's source tree that needs to be added to the include path.

I tried copying the necessary include files (.../libmetal/lib/include) from the sample OpenAMP_TTY_echo project to my project and adding them to the include path. The build progressed somewhat, but then failed midway through.

With the STM32MP1, adding OpenAMP-related files in CubeMX and building successfully without any errors and working fine.

Is it possible to create a new project that uses OpenAMP using a similar procedure for the STM32MP2?

Visitor II
December 31, 2025

Hello, did you solve this problem? I got the same issue with stm32mp157-dk2. In IOC, the OpenAMP "activated" and there are no config option. After generate code, i cant find openAMP folder in Middleware.

Danh1_0-1767157261298.png

 

 

Visitor II
March 6, 2026

Hello, has anyone solved this problem? I got the same issue with STM32MP257 EV1. In IOC, the OpenAMP "activated". After generating code, I can't find the openAMP folder in the Middleware.

Visitor II
April 13, 2026

hi, did you solved this problem

Visitor II
April 13, 2026

No, I did not solve it