cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257F-EV1: Adding OpenAMP in STM32CubeIDE

OKN
Associate II

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

 

1 REPLY 1
Olivier GALLIEN
ST Employee

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.