- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
solution for the Error : ‘XPAR_XPS_ TFT_0_DEVI CE_ID’ undeclared (first use in this function)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-21-2012 03:11 PM
Hello,
i have designed a microblaze with EDK 12.2 and i tested a code C of an mjpeg decoder:source files+ headers files
when i build the project i get this list of errors&warnings
saharmjpeg/compute.c: In function ‘idctprocess’:
saharmjpeg/compute.c:55: warning: passing argument 1 of ‘IDCT’ from incompatible pointer type
saharmjpeg/compute.c:55: warning: passing argument 2 of ‘IDCT’ from incompatible pointer type
saharmjpeg/mjpeg2.c: In function ‘main’:
saharmjpeg/mjpeg2.c:84: warning: passing argument 1 of ‘idctprocess’ makes pointer from integer without a cast
saharmjpeg/mjpeg2.c:84: warning: passing argument 2 of ‘idctprocess’ makes pointer from integer without a cast
saharmjpeg/mjpeg2.c:95: warning: passing argument 1 of ‘yuvprocess’ makes pointer from integer without a cast
saharmjpeg/mjpeg2.c:95: warning: passing argument 2 of ‘yuvprocess’ makes pointer from integer without a cast
saharmjpeg/yuv.c: In function ‘yuvprocess’:
saharmjpeg/yuv.c:233: error: ‘XPAR_XPS_TFT_0_DEVICE_ID’ undeclared (first use in this function)
saharmjpeg/yuv.c:233: error: (Each undeclared identifier is reported only once
saharmjpeg/yuv.c:233: error: for each function it appears in.)
saharmjpeg/yuv.c:347:2: warning: no newline at end of file
make: *** [saharmjpeg/executable.elf] Error 1
Done!
thank you in advance to give me an answer
Re: solution for the Error : ‘XPAR_XPS_ TFT_0_DEVI CE_ID’ undeclared (first use in this function)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-05-2012 12:28 AM
‘XPAR_XPS_TFT_0_DEVICE_ID’ undeclared (first use in this function)
it seems that u did not include xparameters.h in set of header file of ur code if yes then look into xparametrs.h file in directory named "include" where ur program reside....check the proper TFT device id
regards
JOY
Re: solution for the Error : ‘XPAR_XPS_ TFT_0_DEVI CE_ID’ undeclared (first use in this function)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-11-2012 07:13 PM
thank u it is resolved
but i have other problems in ather codes!!!and i'm blocked
in the split code of my mjpeg code i have so many errors related to the xilfatfs library !!and when i include it (software software platform setting i get other errors )
step1 (without the xilfatfs)
Youenn/mjpeg_C_code/other_mjpeg/5task2/compute.c: In function ‘idctprocess’:
Youenn/mjpeg_C_code/other_mjpeg/5task2/compute.c:5
Youenn/mjpeg_C_code/other_mjpeg/5task2/compute.c:5
Youenn/mjpeg_C_code/other_mjpeg/5task2/mjpeg.c:4:1
In file included from Youenn/mjpeg_C_code/other_mjpeg/5task2/mjpeg.c:3:
./microblaze_1/include/xparameters.h:109:1: warning: this is the location of the previous definition
Youenn/mjpeg_C_code/other_mjpeg/5task2/mjpeg.c: In function ‘main’:
Youenn/mjpeg_C_code/other_mjpeg/5task2/mjpeg.c:40: warning: passing argument 2 of ‘iqzzprocess’ makes pointer from integer without a cast
Youenn/mjpeg_C_code/other_mjpeg/5task2/mjpeg.c:41: warning: passing argument 1 of ‘idctprocess’ makes pointer from integer without a cast
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/ot
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o
collect2: ld returned 1 exit status
step2 when i added the xilfatfs
ERROR:EDK:3193 - issued from TCL procedure "::sw_xilfatfs_v1_00_a::xilfatfs_drc"
line 15
xilfatfs () - Sysace HW module not present or not accessible from this
processor. FATfs cannot be used without this module
ERROR:EDK:3414 - Error(s) while running DRCs.
make: *** [microblaze_0/lib/libxil.a] Error 2
i'm waiting for you to give a sollution ...
thank you in advance
Re: solution for the Error : ‘XPAR_XPS_ TFT_0_DEVI CE_ID’ undeclared (first use in this function)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-12-2012 06:30 AM
step1 (without the xilfatfs)
The error u got in this step is mistakes in c programming where there could be some mismatch in ur function parameters.
"fetch.c:49: undefined reference to `sysace_fopen'" this sorts of error is common while u did not include Xilfatfs,u must have to include it from software paltform settings
at step 2
"xilfatfs () - Sysace HW module not present or not accessible from this
processor. FATfs cannot be used without this module"
this seems that the processor has no access to Xilinx System ACE compact flash.As the XilFatfs filesystem access library provides read/write access to files stored on a Xilinx System ACE CompactFlash.now u have to use OPB SYSACE Interface Controller and pl2opb bridge to make it access via processor.
r u using xilkernel or standalone as ur os?











