PlatformIO Community

Error building open amp lib

Hello all, I am trying to build open-amp lib for my platform IO ( zephyr OS ) based project. I have created a new project based on stm32H747 disco board. able to compile hello world example. I then tried adding open-amp using below configs. now when I compile I get error about libmetal headers, not able to find.

  • CONFIG_IPM=y
  • CONFIG_IPM_STM32_IPCC=y
  • CONFIG_OPENAMP=y
  • CONFIG_OPENAMP_SLAVE=y
  • CONFIG_OPENAMP_RSC_TABLE=y

compilation error -.platformio\packages\framework-zephyr-open-amp\open-amp\lib\include/openamp/virtio_ring.h:12:10: fatal error: metal/compiler.h: No such file or directory
#include <metal/compiler.h>any idea how to add/include libmetal dependencies

@ivankravets any suggestion from your side. I am ready to switch to other controller like STM32MP1 if it helps me proceed further.

Hi @prayassamriya ! Does it work if you use the upstream version of the ststm32 dev-platform with the latest Zephyr 2.6.0:

[env:disco_h747xi]
platform = https://github.com/platformio/platform-ststm32.git
framework = zephyr
board = disco_h747xi