cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
clarkm2
Contributor
Contributor
2,259 Views
Registered: ‎10-22-2015

Vitis + FreeRTOS/OpenAMP

Jump to solution

Hello, I’m having a difficult time with Vitis (Vivado 2019.2). I’m trying to create an OpenAMP example application (echo-test) based on FreeRTOS for the Trenz TE0820. Vivado and Petalinux are working as expected, so I'm now trying to port my RPU firmware. I'm doing the following steps, which results in an exception:

  1. Create Application Project
  2. Created a new platform based on XSA
  3. Domain: psu_cortexr5_0, freertos10_xilinx, C, Generate boot components
  4. Select OpenAMP echo-test
  5. Error: Failed to create platform for application project.
An exception occurred while trying to add domain.
Failed to generate the bsp sources for domain.freertos10_xilinx_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()

I've also tried to create a platform w/o an application, and I'm getting the same error message after enabling libmetal and OpenAMP while regenerating the BSP sources. I've attached my XSA file.

0 Kudos
1 Solution

Accepted Solutions
jovitac
Moderator
Moderator
1,859 Views
Registered: ‎05-10-2017

Please see forum thread here where the fix has been posted

https://forums.xilinx.com/t5/OpenAMP/Vitis-2019-2-unable-to-select-libmetal-and-openamp/td-p/1063722

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos
8 Replies
jovitac
Moderator
Moderator
2,201 Views
Registered: ‎05-10-2017

I was able to create an OpenAMP echo-test project with freeRTOS using your xsa. 

When you select the template, it should select the right library versions for both openamp and libmetal when it generates the bsp.

There is a help tab on top, can you click on that and show me what you have for About Vitis IDE 

Can you create a FreeRTOS hello world application for R5? 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
clarkm2
Contributor
Contributor
2,189 Views
Registered: ‎10-22-2015

 

I was able to create the FreeRTOS hello world application for the R5, and I didn't expereince any issues with Vivado 2019.1. I'm going to try to reinstall Vitis.

About Vitis IDEAbout Vitis IDE

0 Kudos
jovitac
Moderator
Moderator
2,143 Views
Registered: ‎05-10-2017

Which OS are you using?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
clarkm2
Contributor
Contributor
2,137 Views
Registered: ‎10-22-2015

Windows 10. I'll give Ubuntu 16 a try tomorrow.

0 Kudos
jovitac
Moderator
Moderator
2,114 Views
Registered: ‎05-10-2017

The test I did was on Ubuntu 16. 

I'm seeing the issue on Windows 7 when adding a libmetal library to bsp in standalone_domain. There might be a similar issue in Windows 10 as well. 

I have created a CR for this. Will keep you posted when we have a fix

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
gary.boudreaux
Visitor
Visitor
2,077 Views
Registered: ‎11-12-2019

I am also running into the same issue as well on Vitis 2019.2, Windows 10 version.

I try to create a "New Application Project". I select the default "zed" XSA version that comes with vitis.

I select either CPU version ("ps7_cortexa9_0 or 9_1) as a standalone C project.

I select the OpenAMP echo-test template and recieve the following error:

 

---------------------------------------------------

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()

-----------------------------------------------------------

 

If I select a template that doesn't involve openAMP or Libmetal. The project successfully is created. else, I recieve the error above.

 

 

 

 

 

0 Kudos
anx1234
Visitor
Visitor
1,862 Views
Registered: ‎01-10-2020

I also saw this problem today.

 

My setup:

1) windows 10, xilinx vitis 19.2 (with the update)  and

2) windows 10, vmware workstation 15.5 pro, ubuntu desktop 19.04.2, xilinx vitis 19.2 (with the update)

 

I tried: application project, zcu104 eval board (xsa from bsp), arm cortex r5, standalone .

1) gives the error message

2) does not give the error message (creates the platform project, creates the application project, builds)

 

I did not try to run it on the target yet (target is zcu104 eval board).

 

 

0 Kudos
jovitac
Moderator
Moderator
1,860 Views
Registered: ‎05-10-2017

Please see forum thread here where the fix has been posted

https://forums.xilinx.com/t5/OpenAMP/Vitis-2019-2-unable-to-select-libmetal-and-openamp/td-p/1063722

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

0 Kudos