Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
09266811
Posts: 8
Registered: ‎03-29-2012
0

solution for the Error : ‘XPAR_XPS_TFT_0_DEVICE_ID’ undeclared (first use in this function)

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

 

Super Contributor
joy1887
Posts: 153
Registered: ‎03-31-2011
0

Re: solution for the Error : ‘XPAR_XPS_TFT_0_DEVICE_ID’ undeclared (first use in this function)

‘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

Visitor
09266811
Posts: 8
Registered: ‎03-29-2012
0

Re: solution for the Error : ‘XPAR_XPS_TFT_0_DEVICE_ID’ undeclared (first use in this function)

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:54: warning: passing argument 1 of ‘IDCT’ from incompatible pointer type
Youenn/mjpeg_C_code/other_mjpeg/5task2/compute.c:54: warning: passing argument 2 of ‘IDCT’ from incompatible pointer type
Youenn/mjpeg_C_code/other_mjpeg/5task2/mjpeg.c:4:1: warning: "XPAR_BLOCK_YCBCR_CNTLR_XW_BASEADDR" redefined
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: In function `skip_segment':
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.h:93: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.h:94: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.h:98: undefined reference to `sysace_fread'
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o: In function `unpack_block':
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.h:137: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.h:139: undefined reference to `sysace_fread'
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o:/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.h:137: more undefined references to `sysace_fread' follow
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o: In function `fetchprocess':
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:49: undefined reference to `sysace_fopen'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:71: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:562: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:396: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:573: undefined reference to `sysace_fread'
/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:428: undefined reference to `sysace_fread'
/cygdrive/c/Users/hp/AppData/Local/Temp/cc6k6Eql.o:/cygdrive/c/tpxps/edk_v2012/Youenn/mjpeg_C_code/other_mjpeg/5task2/fetch.c:120: more undefined references to `sysace_fread' follow
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

Super Contributor
joy1887
Posts: 153
Registered: ‎03-31-2011
0

Re: solution for the Error : ‘XPAR_XPS_TFT_0_DEVICE_ID’ undeclared (first use in this function)

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?