Vitis 2019.2 无法使用OpenAMP echo-test例程来创建新的应用工程

Vitis 2019.2 无法使用OpenAMP echo-test例程来创建新的应用工程!!!

  1. 具体界面
    在这里插入图片描述
  2. 具体报错内容
An exception occurred while trying to add domain.
Failed to generate the bsp sources for domain.standalone_domain

Details: WARNING: [Hsi 55-2033] Core openamp_v1_5 depends on libmetal_v1_4 which is an old version. Latest version libmetal_v2_0 exists and will be copied

Failed to generate cmake files.

ERROR: [Hsi 55-1545] Problem running tcl command ::sw_openamp_v1_5::generate : Failed to generate cmake files.
    while executing
"error "Failed to generate cmake files.""
    (procedure "::sw_openamp_v1_5::generate" line 86)
    invoked from within
"::sw_openamp_v1_5::generate openamp"

ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()

解决办法

在Vivado的安装路径下找到以下两个文件:

  1. Vitis2019.2dataembeddedswThirdPartysw_serviceslibmetal_v2_0src
    un_cmake.bat
  2. Vitis2019.2dataembeddedswThirdPartysw_servicesopenamp_v1_5src
    un_cmake.bat
  3. 使用编辑器将其打开,将各个${HDI_APPROOT}/tps/lnx64/cmake-3.3.2/bin/cmake $@ 2>&1替换为%HDI_APPROOT% pswin64cmake-3.3.2incmake.exe %* 2>&1
  4. 重新启动visit,工作恢复正常。

具体操作

  1. Vitis2019.2dataembeddedswThirdPartysw_serviceslibmetal_v2_0src
    un_cmake.bat
    替换前
    在这里插入图片描述
    替换后
    在这里插入图片描述
    2.Vitis2019.2dataembeddedswThirdPartysw_servicesopenamp_v1_5src
    un_cmake.bat重复上述的操作,修改后记得保存,然后重启visit即可。