cancel
Showing results for 
Search instead for 
Did you mean: 

H747I-Disco Examples combination issue

ElectroManiac
Associate III

hello forum

I'm trying to use two examples at once, I'm looking for a script to save an image on an SD card as Jpeg
the examples are:
BSP
JPEG_EncodingUsingFs_DMA

I'm trying to import the JPEG_Encoding example into the BSP one,
While doing so, the compiler doesn't recognize the function JPEG_InitColorTables();
it's part of the jpeg_utils.c under #if (USE_JPEG_ENCODER==1). which I have defined in jpeg_utils_conf.h but the compiler still doesn't recognize it.

am I missing something?

13 REPLIES 13
TDK
Guru

Show the exact error messages and surrounding context.

Ensure the jpeg_utils.c file is getting compiled by adding its source directory to the source location paths.

Ensure the appropriate headers are being included by the files that are trying to use that function.

From your description, it's unclear if it's a compiler error or a linker error.

If you feel a post has answered your question, please click "Accept as Solution".

Ive already made sure to include the paths in the includes section under the paths and symbols section.

this is the error I'm getting:

ElectroManiac_1-1722945350795.png

I was also trying to change the includs order of all the relevant files so that the USE_JPEG_ENCODER was defined before the jpeg_utils.h itself so that the jpeg_utils.c will have everything it needs while compilng

the complier finds the files but the JPEG_InitColorTables() function itself is still "locked"

Show the full contents of the Console tab after you try to clean and rebuild.

If you feel a post has answered your question, please click "Accept as Solution".

Apparently the "clean and rebuild" did the trick, I'll continue to try and "play" with everything a bit more and continue to update here if I have more issues

thank you very much!


@ElectroManiac wrote:

this is the error I'm getting:

ElectroManiac_1-1722945350795.png

 


I think the 'Undefined Reference' is a Linker error - not a compiler error.

So this wasn't a problem with include paths/files.

As @TDK suggested, the Console output is a lot more informative that this "Problems" list

ok so I tried adding FATFS functions, but the compiler didn't recognize them, 
Is there a way to activate it without an IOC file?



@ElectroManiac wrote:

Is there a way to activate [FatFs] without an IOC file?


Of course there is - it's just 3rd-party open-source code:  http://elm-chan.org/fsw/ff/ 

 

If you post the full output log as I requested above, I will look at it.

I can't help you if you don't participate. It is tiresome to reply to "X didn't work" posts without supporting information.

If you feel a post has answered your question, please click "Accept as Solution".

here's the current Console Status:

ElectroManiac_1-1723021539729.png

Here is the Problems tab for the full context:

ElectroManiac_2-1723021602007.png

Is there anything else I can add?