Skip to main content
Visitor
August 4, 2026
Question

CubeMX 6.18.1 and stm32Mp257 cannot build openAmp generated code

  • August 4, 2026
  • 1 reply
  • 23 views

I’m trying to add openAmp to a stm32cubemx project (ioc). I add everything (IPCC1, openAMP exc) but when I compile the project

[build] [  5%] Building C object bsp/CMakeFiles/bsp.dir/CM33/OPENAMP/open_amp.c.obj
[build] [ 6%] Building C object bsp/CMakeFiles/bsp.dir/CM33/OPENAMP/openamp_log.c.obj
[build] [ 8%] Building C object bsp/CMakeFiles/bsp.dir/CM33/Core/Src/stm32mp2xx_it.c.obj
[build] In file included from /home/marco/lavori/qmc/software/qmctest-m33/bsp/Middlewares/Third_Party/OpenAMP/open-amp/lib/include/openamp/open_amp.h:11,
[build] from /home/marco/lavori/qmc/software/qmctest-m33/bsp/CM33/OPENAMP/openamp.h:25,
[build] from /home/marco/lavori/qmc/software/qmctest-m33/bsp/CM33/OPENAMP/open_amp.c:21:
[build] /home/marco/lavori/qmc/software/qmctest-m33/bsp/Middlewares/Third_Party/OpenAMP/open-amp/lib/include/openamp/rpmsg.h:15:10: fatal error: metal/compiler.h: No such file or directory
[build] 15 | #include <metal/compiler.h>
[build] | ^~~~~~~~~~~~~~~~~~
[build] compilation terminated.

I check into the generated folders and the “metal” folder does not appear anywhere.

About the compiler.h file the only ones present is inside the generate code are:

marco@marco-ubuntu-2404:~/lavori/qmc/software/qmctest-m33$ find . -name "compiler.h"
./bsp/Middlewares/Third_Party/OpenAMP/libmetal/lib/compiler.h
./bsp/Middlewares/Third_Party/OpenAMP/libmetal/lib/compiler/gcc/compiler.h
./bsp/Middlewares/Third_Party/OpenAMP/libmetal/lib/compiler/iar/compiler.h

Does anyone know the solution? The error is on code generation, wrong package configuration?

1 reply

Visitor
August 13, 2026

hello

have you solved the problem?

I also meet it just now.

And I asked some AI who replyed that it’s because the folder “metal” will be generated after you build the package libmetal ,we can see there is a “CMakeLists.txt” in the folder libmetal.I think it meas we should firstly build libmetal by the cmake.

And the steps can be found in the README.md