UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor renardv
Visitor
159 Views
Registered: ‎07-12-2019

[SDSoC][SDx IDE 2019.1] No function body sds_lib.h and ff.h

Hello,

I have a C program that I want to implement in hardware but as the C functions for memory allocation and file managing don't work I decided to use Xilinx libraries. So I included both "ff.h" and "sds_lib.h" in order to overcome this (I included <stdlib.h> before) as shown below.

imagen.pngIncludes of the utils.c fileimagen.pngIncludes of the unpredict.c file

I set as Hardware function a function called unpredict() which calls different functions, that's why I have errors on different files. Here are the project settings.

 

imagen.png

 

But as I try to build the project in Debug mode, the compiler says that the functions include in the libraries mentionned previously have no body. But when I build the project in Release mode, the compiler succeed without any errors or warnings. I would like to run it in Debug mode to be able to estimate the performance of my function. (I know I have to check the box but I'm waiting for the project to work in order to do that).

As you can see here, the function is recognized but it seems that for the compiler, it is just declared and the corresponding code is not written.

imagen.png

 

Here are the log errors.

ERROR: [SYNCHK 200-71] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/unpredict.c:90: function 'sds_alloc' has no function body.
ERROR: [SYNCHK 200-41] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/unpredict.c:90: unsupported pointer reinterpretation from type 'i8*' to type 'unsigned short'.
ERROR: [SYNCHK 200-42] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/unpredict.c:91: pointer comparison is not supported.
ERROR: [SYNCHK 200-71] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/utils.c:275: function 'f_open' has no function body.
ERROR: [SYNCHK 200-71] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/utils.c:297: function 'f_write' has no function body.
ERROR: [SYNCHK 200-71] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/utils.c:379: function 'f_close' has no function body.
ERROR: [SYNCHK 200-71] C:/Users/vrenard/Desktop/Decoder_123/lin_dec/decompressor/src/unpredict.c:134: function 'sds_free' has no function body.

Could you please help me to be able to use these functions in Debug mode.

Thank you in advance.

0 Kudos