cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fincs
Adventurer
Adventurer
661 Views
Registered: ‎03-21-2016

Failed to build platform with ZYNQ and AXI-lite peripheral, Vitis 2020.2

Jump to solution

Hello!

I'm create project, include Zynq 7000 and ip-core with AXI-lite peripheral interface. Generated a bitstream, exported a hardware with xsa file.

Launches Vitis and tried to build the platform. Got a log.

Spoiler

10:17:55 **** Build of project yuy_hw ****
buildplatform.bat 49251 yuy_hw
XSDB Server Channel: tcfchan#5
Building the BSP Library for domain - standalone_domain on processor ps7_cortexa9_0
make --no-print-directory seq_libs

"Running Make include in ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src"

make -C ps7_cortexa9_0/libsrc/coresightps_dcc_v1_8/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none
-eabi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=h
ard -nostartfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_10/src"

make -C ps7_cortexa9_0/libsrc/cpu_cortexa9_v2_10/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-e
abi-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=har
d -nostartfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/ddrps_v1_2/src"

make -C ps7_cortexa9_0/libsrc/ddrps_v1_2/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nosta
rtfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/devcfg_v3_7/src"

make -C ps7_cortexa9_0/libsrc/devcfg_v3_7/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/dmaps_v2_7/src"

make -C ps7_cortexa9_0/libsrc/dmaps_v2_7/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nosta
rtfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/emacps_v3_12/src"

make -C ps7_cortexa9_0/libsrc/emacps_v3_12/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as
" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nos
tartfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/iicps_v3_12/src"

make -C ps7_cortexa9_0/libsrc/iicps_v3_12/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/myip_v1_0/src"

make -C ps7_cortexa9_0/libsrc/myip_v1_0/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as" "
ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostar
tfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/qspips_v3_8/src"

make -C ps7_cortexa9_0/libsrc/qspips_v3_8/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/scugic_v4_3/src"

make -C ps7_cortexa9_0/libsrc/scugic_v4_3/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/scutimer_v2_3/src"

make -C ps7_cortexa9_0/libsrc/scutimer_v2_3/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-a
s" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -no
startfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/scuwdt_v2_3/src"

make -C ps7_cortexa9_0/libsrc/scuwdt_v2_3/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/sdps_v3_10/src"

make -C ps7_cortexa9_0/libsrc/sdps_v3_10/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nosta
rtfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/standalone_v7_3/src"

make -C ps7_cortexa9_0/libsrc/standalone_v7_3/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi
-as" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -
nostartfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/uartps_v3_10/src"

make -C ps7_cortexa9_0/libsrc/uartps_v3_10/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as
" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nos
tartfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/usbps_v2_6/src"

make -C ps7_cortexa9_0/libsrc/usbps_v2_6/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nosta
rtfiles -g -Wall -Wextra"

"Running Make include in ps7_cortexa9_0/libsrc/xadcps_v2_5/src"

make -C ps7_cortexa9_0/libsrc/xadcps_v2_5/src -s include "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as"
"ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nost
artfiles -g -Wall -Wextra"

"Running Make libs in ps7_cortexa9_0/libsrc/myip_v1_0/src"

make -C ps7_cortexa9_0/libsrc/myip_v1_0/src -s libs "SHELL=CMD" "COMPILER=arm-none-eabi-gcc" "ASSEMBLER=arm-none-eabi-as" "ARC
HIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostartfi
les -g -Wall -Wextra"

"Compiling myip..."

myip_selftest.c: In function 'MYIP_Reg_SelfTest':
myip_selftest.c:52:53: warning: comparison of integer expressions of different signedness: 'u32' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
52 | if ( MYIP_mReadReg (baseaddr, read_loop_index*4) != (read_loop_index+1)*READ_WRITE_MUL_FACTOR){
| ^~
myip_selftest.c:36:6: warning: unused variable 'Index' [-Wunused-variable]
36 | int Index;
| ^~~~~
arm-none-eabi-ar: creating ../../../lib/libxil.a
arm-none-eabi-ar: *.o: Invalid argument
make[2]: *** [Makefile:19: libs] Error 1
make[1]: *** [Makefile:46: ps7_cortexa9_0/libsrc/myip_v1_0/src/make.libs] Error 2
make: *** [Makefile:18: all] Error 2
Failed to build the bsp sources for domain - standalone_domain
Failed to generate the platform.
Reason: Failed to build the bsp sources for domain - standalone_domain
invoked from within
"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 xsdb eval s es {{platform active yuy_hw; platform generate }}}"
(procedure "::tcf::send_command" line 4)
invoked from within
"tcf send_command $::xsdb::curchan xsdb eval s es [list "platform active $PLATFORM_NAME; platform generate $target"]"
invoked from within
"if { $iswindows == 1 } {

set XSDB_PORT [lindex $argv 0]
set PLATFORM_NAME [lindex $argv 1]
set arglen [llength $argv]
set lastind..."
(file "D:/Vitis/2020.2\scripts\vitis\util\buildplatform.tcl" line 11)

10:17:57 Build Finished (took 1s.504ms)

Removed the ip-core with AXI-lite peripheral interface, the build was successful. OS Windows.

In Vitis 2019.2 same project with ip-core with AXI-lite peripheral interface build successful.

Project VItis 2020.2 https://drive.google.com/file/d/14puWxaz5doujuDXPJPd8vUihG1lvS-eC/view?usp=sharing

Project Vivado 2020.2 https://drive.google.com/file/d/1uIwjnJ3ngjK81_xbY2r4uW7Af9Yoef5h/view?usp=sharing

0 Kudos
1 Solution

Accepted Solutions
katsuki
Xilinx Employee
Xilinx Employee
552 Views
Registered: ‎11-05-2019

Hi @fincs 

Probably the same cause as the AR and post below. By manually modifying the Makefile, the compilation will succeed.

Thank you.
Don't forget to Reply, Kudo, and Accept as Solution.


Don’t forget to reply, kudo, and accept as solution. If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs

View solution in original post

3 Replies
katsuki
Xilinx Employee
Xilinx Employee
553 Views
Registered: ‎11-05-2019

Hi @fincs 

Probably the same cause as the AR and post below. By manually modifying the Makefile, the compilation will succeed.

Thank you.
Don't forget to Reply, Kudo, and Accept as Solution.


Don’t forget to reply, kudo, and accept as solution. If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs

View solution in original post

katsuki
Xilinx Employee
Xilinx Employee
483 Views
Registered: ‎11-05-2019

Hi @fincs 

Is there any update? If you have any questions, you can post them. If already issue has resolved, give Kudo, and mark Accept as Solution to close this post.

Thank you.
Don't forget to Reply, give Kudo, and mark Accept as Solution.


Don’t forget to reply, kudo, and accept as solution. If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs
0 Kudos
fincs
Adventurer
Adventurer
392 Views
Registered: ‎03-21-2016

Editing the Makefile file helped. But I'll wait 2021.1.