Hi
I have designed a simple microblaze with some GPIO output to test some LED's It would implement and generate bitstream and I can successfully generate the Vitis project, compile and debug it.
But when I add a simple custom AXI slave IP to the project, the project would be implemented ok in vivado, But when I update the Vitis project, it would fail to compile, it would generate errors,
the only changes that I made to the axi slave IP is this
I have changed these lines like this
2'h2 : reg_data_out <= slv_reg0 + slv_reg1;
2'h3 : reg_data_out <= slv_reg0 - slv_reg1;
assign slv_reg_rden = axi_arready & S_AXI_ARVALID & ~axi_rvalid;
always @(*)
begin
// Address decoding for reading registers
case ( axi_araddr[ADDR_LSB+OPT_MEM_ADDR_BITS:ADDR_LSB] )
2'h0 : reg_data_out <= slv_reg0;
2'h1 : reg_data_out <= slv_reg1;
2'h2 : reg_data_out <= slv_reg0 + slv_reg1;
2'h3 : reg_data_out <= slv_reg0 - slv_reg1;
default : reg_data_out <= 0;
endcase
end
The generated Error log
buildplatform.bat 58521 design_1_wrapper
XSDB Server Channel: tcfchan#4
Building the BSP Library for domain - standalone_microblaze_0 on processor microblaze_0
make --no-print-directory seq_libs
"Running Make include in microblaze_0/libsrc/bram_v4_8/src"
make -C microblaze_0/libsrc/bram_v4_8/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPILE
R_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall
-Wextra -fno-tree-loop-distribute-patterns"
"Running Make include in microblaze_0/libsrc/cpu_v2_17/src"
make -C microblaze_0/libsrc/cpu_v2_17/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPILE
R_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall
-Wextra -fno-tree-loop-distribute-patterns"
"Running Make include in microblaze_0/libsrc/gpio_v4_9/src"
make -C microblaze_0/libsrc/gpio_v4_9/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPILE
R_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall
-Wextra -fno-tree-loop-distribute-patterns"
"Running Make include in microblaze_0/libsrc/myTestip_v1_0/src"
make -C microblaze_0/libsrc/myTestip_v1_0/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COM
PILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -W
all -Wextra -fno-tree-loop-distribute-patterns"
"Running Make include in microblaze_0/libsrc/standalone_v8_1/src"
make -C microblaze_0/libsrc/standalone_v8_1/src -s include "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "C
OMPILER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections
-Wall -Wextra -fno-tree-loop-distribute-patterns"
"Running Make libs in microblaze_0/libsrc/myTestip_v1_0/src"
make -C microblaze_0/libsrc/myTestip_v1_0/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPIL
ER_FLAGS= -O2 -c -mcpu=v11.0 -mlittle-endian -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall
-Wextra -fno-tree-loop-distribute-patterns"
"Compiling myTestip..."
cc1.exe: fatal error: *.c: Invalid argument
compilation terminated.
make[2]: *** [Makefile:18: libs] Error 1
make[1]: *** [Makefile:46: microblaze_0/libsrc/myTestip_v1_0/src/make.libs] Error 2
make: *** [Makefile:18: all] Error 2
Failed to build the bsp sources for domain - standalone_microblaze_0
Failed to generate the platform.
Reason: Failed to build the bsp sources for domain - standalone_microblaze_0
invoked from within
"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 xsdb eval s es {{platform active design_1_wrapper; 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 "C:/Xilinx/Vitis/2023.1\scripts\vitis\util\buildplatform.tcl" line 11)