Question
CubeMX 6.18.1 and stm32Mp257 cannot build openAmp generated code
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?
