You are not logged in.
I was trying the XPS intro exercises on http://warp.rice.edu/trac/wiki/Exercise … neratingSW and got the following error when updating the bitstream:
Running generate for OS'es, Drivers and Libraries ...
ERROR:MDT - standalone () - couldn't open "./src/config.make": no such file or
directory
while executing
"open "./src/config.make" w"
(procedure "::sw_standalone_v1_00_a::generate" line 44)
invoked from within
"::sw_standalone_v1_00_a::generate 40555712"
ERROR:MDT - plbarb () - couldn't open "src/xplbarb_g.c": no such file or
directory
while executing
"open $filename w"
(procedure "xdefine_config_file" line 4)
invoked from within
"xdefine_config_file $drv_handle "xplbarb_g.c" "XPlbArb" "DEVICE_ID"
"C_BASEADDR" "C_PLB_NUM_MASTERS""
(procedure "::sw_plbarb_v1_01_a::generate" line 3)
invoked from within
"::sw_plbarb_v1_01_a::generate 41064960"
ERROR:MDT - opbarb () - couldn't open "src/xopbarb_g.c": no such file or
directory
while executing
"open $filename w"
(procedure "xdefine_config_file" line 4)
invoked from within
"xdefine_config_file $drv_handle "xopbarb_g.c" "XOpbArb" "DEVICE_ID"
"C_BASEADDR" "C_NUM_MASTERS""
(procedure "::sw_opbarb_v1_02_a::generate" line 3)
invoked from within
"::sw_opbarb_v1_02_a::generate 41065660"
ERROR:MDT - gpio () - couldn't open "src/xgpio_g.c": no such file or directory
while executing
"open $filename w"
(procedure "xdefine_config_file" line 4)
invoked from within
"xdefine_config_file $drv_handle "xgpio_g.c" "XGpio" "DEVICE_ID"
"C_BASEADDR" "C_INTERRUPT_PRESENT" "C_IS_DUAL""
(procedure "::sw_gpio_v2_01_a::generate" line 4)
invoked from within
"::sw_gpio_v2_01_a::generate 41067676"
ERROR:MDT - uartlite () - couldn't open "src/xuartlite_g.c": no such file or
directory
while executing
"open $filename w"
(procedure "xdefine_config_file" line 4)
invoked from within
"xdefine_config_file $drv_handle "xuartlite_g.c" "XUartLite" "DEVICE_ID"
"C_BASEADDR" "C_BAUDRATE" "C_USE_PARITY" "C_ODD_PARITY" "C_DATA_BITS""
(procedure "::sw_uartlite_v1_01_a::generate" line 3)
invoked from within
"::sw_uartlite_v1_01_a::generate 41078260"
ERROR:MDT - Error while running "generate" for processor ppc405_0...
I had successfully completed the hardware generation and other steps mentioned earlier in the XPS intro. The WARP board tested out fine with Impact. I have installed Xilinx ISE 8.2i Evaluation Version, Xilinx EDK 8.2 and Chipscope pro 8.2. All software is up-to-date.
Kindly help.
Offline
Please post a copy of your MSS file. You can find this in the Project tab in XPS. This file specifies all of the software platform settings for your project, including the assignment of drivers to peripherals and processors. Your error log shows a bunch of entries like "couldn't open "src/xuartlite_g.c": no such file", which is usually a sign of problems in the MSS.
Offline
I figured something was wrong with my drivers, so i reinstalled the hardware. Apparently, the file xusbdfwu.sys was missing from the System32 folder in Windows. The error mentioned earlier dissapeared , only to give a newer one when updating the bitsream:
Running DRCs for OSes, Drivers and Libraries ...
Running generate for OS'es, Drivers and Libraries ...
Running post_generate for OS'es, Drivers and Libraries ...
Running make for Drivers and Libraries ...
Configuring make for target include using:
make -s include "COMPILER=powerpc-eabi-gcc" "ARCHIVER=powerpc-eabi-ar"
"COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g"
Configuring make for target libs using:
make -s libs "COMPILER=powerpc-eabi-gcc" "ARCHIVER=powerpc-eabi-ar"
"COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g"
Compiling common
powerpc-eabi-ar: creating ../../../lib/libxil.a
Compiling bsp
Compiling cpu_ppc405
Libraries generated in C:\warp_intro\ppc405_1\lib\ directory
Running execs_generate for OS'es, Drivers and Libraries ...
LibGen Done.
powerpc-eabi-gcc -O2 led_4x_count.c -o basic_io_test/executable.elf \
-Wl,-T -Wl,basic_io_test_linker_script.ld -g -I./ppc405_0/include/ -L./ppc405_0/lib/ \
/cygdrive/c/EDK/gnu/powerpc-eabi/nt/bin/../lib/gcc/powerpc-eabi/3.4.1/xil-crt0.o(.text+0xbc): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [basic_io_test/executable.elf] Error 1
Done!
Here is a copy of my MSS file:
PARAMETER VERSION = 2.2.0
BEGIN OS
PARAMETER OS_NAME = standalone
PARAMETER OS_VER = 1.00.a
PARAMETER PROC_INSTANCE = ppc405_0
PARAMETER STDIN = RS232
PARAMETER STDOUT = RS232
END
BEGIN OS
PARAMETER OS_NAME = standalone
PARAMETER OS_VER = 1.00.a
PARAMETER PROC_INSTANCE = ppc405_1
END
BEGIN PROCESSOR
PARAMETER DRIVER_NAME = cpu_ppc405
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = ppc405_0
PARAMETER COMPILER = powerpc-eabi-gcc
PARAMETER ARCHIVER = powerpc-eabi-ar
PARAMETER CORE_CLOCK_FREQ_HZ = 100000000
END
BEGIN PROCESSOR
PARAMETER DRIVER_NAME = cpu_ppc405
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = ppc405_1
PARAMETER COMPILER = powerpc-eabi-gcc
PARAMETER ARCHIVER = powerpc-eabi-ar
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = jtagppc_0
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = iocm_cntlr
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = docm_cntlr
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = plbarb
PARAMETER DRIVER_VER = 1.01.a
PARAMETER HW_INSTANCE = plb
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = opbarb
PARAMETER DRIVER_VER = 1.02.a
PARAMETER HW_INSTANCE = opb
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = plb2opb
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = plb2opb
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = gpio
PARAMETER DRIVER_VER = 2.01.a
PARAMETER HW_INSTANCE = LED_7SEGMENT
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = gpio
PARAMETER DRIVER_VER = 2.01.a
PARAMETER HW_INSTANCE = LED_7SEGMENT_1
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = gpio
PARAMETER DRIVER_VER = 2.01.a
PARAMETER HW_INSTANCE = LEDs_4Bit
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = gpio
PARAMETER DRIVER_VER = 2.01.a
PARAMETER HW_INSTANCE = Push_Buttons_4bit
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = gpio
PARAMETER DRIVER_VER = 2.01.a
PARAMETER HW_INSTANCE = DIPSWs_4Bit
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = uartlite
PARAMETER DRIVER_VER = 1.01.a
PARAMETER HW_INSTANCE = RS232
END
BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = CLKBRDCONFIG_0
END
Thanks for the help.
Offline
The underlying error is 'undefined reference to `main''. This is the linker complaining that it can't find your code for the default function 'main', which must be included for the processer to boot properly. In the example code in the exercise (in the file named 'led_4x_count.c' in your project), the only function is declared 'int main()'.
A few questions:
-If you used the default code, did you change this function to another name?
-If you're using your own code, is there a function 'int main()'?
-Did you mark your software application to initialize the BRAMs (the 'Mark to Initialize BRAMs' step in the XPS Intro exercise)?
Offline
I used the default code-- a simple copy-paste-- no changes were made whatsoever. BRAM initialization was marked.
Offline
Did you save the C source file after pasting in the example code? XPS won't save the file automatically before compiling, so it might have read an empty source file (i.e. a new file with unsaved changes) during compilation. I reproduced your error with this approach.
Offline
Working.....thanks .........will save everything from now on.....lesson learnt. :)
Offline