Skip to main content
Associate III
August 6, 2024
Question

H747I-Disco Examples combination issue

  • August 6, 2024
  • 13 replies
  • 2466 views

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?

This topic has been closed for replies.

13 replies

TDK
August 6, 2024

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""."
Associate III
August 6, 2024

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"

TDK
August 6, 2024

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""."