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

That's not the full output log!

Go to the 'Console' window, select all, then copy and paste the text here.

Best to post the text as for source code - using the </> button:

https://community.st.com/t5/stm32-mcus-boards-and-hardware/nucleo-f767zi-ethernet-problem/m-p/703634/highlight/true#M20574

 

like that?

12:15:36 **** Incremental Build of configuration Debug for project BSP_CM7 ****
make -j12 all 
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/audio_play.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/audio_play.d" -MT"Example/User/CM7/audio_play.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/audio_play.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/audio_record.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/audio_record.d" -MT"Example/User/CM7/audio_record.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/audio_record.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/camera.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/camera.d" -MT"Example/User/CM7/camera.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/camera.o"
arm-none-eabi-gcc "../Example/User/CM7/encode_dma.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/encode_dma.d" -MT"Example/User/CM7/encode_dma.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/encode_dma.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/joystick.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/joystick.d" -MT"Example/User/CM7/joystick.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/joystick.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/lcd.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/lcd.d" -MT"Example/User/CM7/lcd.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/lcd.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/main.d" -MT"Example/User/CM7/main.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/main.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/qspi.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/qspi.d" -MT"Example/User/CM7/qspi.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/qspi.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/sd.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/sd.d" -MT"Example/User/CM7/sd.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/sd.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/sdram.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/sdram.d" -MT"Example/User/CM7/sdram.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/sdram.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/stm32h7xx_it.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/stm32h7xx_it.d" -MT"Example/User/CM7/stm32h7xx_it.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/stm32h7xx_it.o"
arm-none-eabi-gcc "C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/touchscreen.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DUSE_STM32H747I_DISCO -DUSE_HAL_DRIVER -DSTM32H747xx -DCORE_CM7 -DTS_MULTI_TOUCH_SUPPORTED -c -I../../../CM7/Inc -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/BSP/STM32H747I-DISCO -I../../../Drivers/BSP/Components/Common -I../../../Utilities/lcd -I../../../Utilities/Fonts -I../../../Utilities/CPU -I../../../Middlewares/ST/STM32_Audio/Addons/PDM/Inc -I../../../Drivers/CMSIS/Include -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM4/Utilities" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/Utilities/lcd" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs" -I"C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/fs/JPEG" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Example/User/CM7/touchscreen.d" -MT"Example/User/CM7/touchscreen.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Example/User/CM7/touchscreen.o"
../Example/User/CM7/encode_dma.c: In function 'JPEG_Encode_DMA':
../Example/User/CM7/encode_dma.c:113:3: warning: implicit declaration of function 'BMP_GetInfo'; did you mean 'BSP_QSPI_GetInfo'? [-Wimplicit-function-declaration]
  113 |   BMP_GetInfo(pBmpFile, &Conf);
      |   ^~~~~~~~~~~
      |   BSP_QSPI_GetInfo
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c: In function 'main':
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:128:3: warning: statement with no effect [-Wunused-value]
  128 |   JPEG_InitColorTables;
      |   ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../Drivers/BSP/STM32H747I-DISCO/stm32h747i_discovery.h:32,
                 from ../../../CM7/Inc/main.h:30,
                 from C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:21:
../../../CM7/Inc/stm32h747i_discovery_conf.h:56:35: warning: passing argument 2 of 'JPEG_Encode_DMA' makes pointer from integer without a cast [-Wint-conversion]
   56 | #define CAMERA_FRAME_BUFFER       ((uint32_t)0xD0600000)
      |                                   ^~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   long unsigned int
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:162:41: note: in expansion of macro 'CAMERA_FRAME_BUFFER'
  162 |           JPEG_Encode_DMA(&JPEG_Handle, CAMERA_FRAME_BUFFER, &JPEG_File);
      |                                         ^~~~~~~~~~~~~~~~~~~
In file included from C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:23:
../../../CM7/Inc/encode_dma.h:31:58: note: expected 'FIL *' but argument is of type 'long unsigned int'
   31 | uint32_t JPEG_Encode_DMA(JPEG_HandleTypeDef *hjpeg, FIL *bmpfile, FIL *jpgfile);
      |                                                     ~~~~~^~~~~~~
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c: At top level:
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:79:13: warning: 'SD_Initialize' defined but not used [-Wunused-function]
   79 | static void SD_Initialize(void)
      |             ^~~~~~~~~~~~~
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:52:17: warning: 'LCD_X_Size' defined but not used [-Wunused-variable]
   52 | static uint32_t LCD_X_Size = 0;
      |                 ^~~~~~~~~~
arm-none-eabi-gcc -o "BSP_CM7.elf" @"objects.list"  -l:libPDMFilter_CM7_GCC_wc32.a -mcpu=cortex-m7 -T"C:\_AMI\H747I-Disco\PGtestingH747\BSP\STM32CubeIDE\CM7\STM32H747XIHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="BSP_CM7.map" -Wl,--gc-sections -static -L../../../Middlewares/ST/STM32_Audio/Addons/PDM/Lib --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Example/User/CM7/encode_dma.o: in function `JPEG_Encode_DMA':
C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Debug/../Example/User/CM7/encode_dma.c:113: undefined reference to `BMP_GetInfo'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Debug/../Example/User/CM7/encode_dma.c:114: undefined reference to `JPEG_GetEncodeColorConvertFunc'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Example/User/CM7/encode_dma.o: in function `JPEG_EncodeOutputHandler':
C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Debug/../Example/User/CM7/encode_dma.c:149: undefined reference to `f_write'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Example/User/CM7/encode_dma.o: in function `ReadBmpRgbLines':
C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Debug/../Example/User/CM7/encode_dma.c:277: undefined reference to `f_lseek'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/_AMI/H747I-Disco/PGtestingH747/BSP/STM32CubeIDE/CM7/Debug/../Example/User/CM7/encode_dma.c:278: undefined reference to `f_read'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: ./Example/User/CM7/main.o: in function `main':
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:140: undefined reference to `f_mount'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:161: undefined reference to `f_open'
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.200.202406191623/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:168: undefined reference to `f_close'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:68: BSP_CM7.elf] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

12:15:38 Build Failed. 9 errors, 5 warnings. (took 1s.946ms)

 

Yes, that is the full log. Here is the first error:

../Example/User/CM7/encode_dma.c: In function 'JPEG_Encode_DMA':
../Example/User/CM7/encode_dma.c:113:3: warning: implicit declaration of function 'BMP_GetInfo'; did you mean 'BSP_QSPI_GetInfo'? [-Wimplicit-function-declaration]
  113 |   BMP_GetInfo(pBmpFile, &Conf);

So BMP_GetInfo is not declared yet. It should be declared before being used, typically by #including a header file. Find out which header file it's defined in and include it.

Similarly, f_write, f_lseek, and f_mount are also not defined anywhere.

You can use Search -> File... to find out where these are defined.

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

As you suggested I tried to do that, and included everything,
I still have this error:

In file included from C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/sdram.c:20:
../../../CM7/Inc/main.h:121: warning: "JPEG" redefined
  121 | #define JPEG 1
      | 
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c: In function 'main':
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:128:3: warning: statement with no effect [-Wunused-value]
  128 |   JPEG_InitColorTables;
      |   ^~~~~~~~~~~~~~~~~~~~
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:131:25: warning: assignment to 'JPEG_TypeDef *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  131 |    JPEG_Handle.Instance = JPEG;
      |                         ^
In file included from ../../../Drivers/BSP/STM32H747I-DISCO/stm32h747i_discovery.h:32,
                 from ../../../CM7/Inc/main.h:30:
../../../CM7/Inc/stm32h747i_discovery_conf.h:56:35: warning: passing argument 2 of 'JPEG_Encode_DMA' makes pointer from integer without a cast [-Wint-conversion]
   56 | #define CAMERA_FRAME_BUFFER       ((uint32_t)0xD0600000)
      |                                   ^~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   long unsigned int
C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:161:41: note: in expansion of macro 'CAMERA_FRAME_BUFFER'
  161 |           JPEG_Encode_DMA(&JPEG_Handle, CAMERA_FRAME_BUFFER, &JPEG_File);
      |                                         ^~~~~~~~~~~~~~~~~~~
In file included from C:/_AMI/H747I-Disco/PGtestingH747/BSP/CM7/Src/main.c:23:
../../../CM7/Inc/encode_dma.h:31:58: note: expected 'FIL *' but argument is of type 'long unsigned int'
   31 | uint32_t JPEG_Encode_DMA(JPEG_HandleTypeDef *hjpeg, FIL *bmpfile, FIL *jpgfile);
      |                                                     ~~~~~^~~~~~~
../Example/User/CM7/encode_dma.c: In function 'BMP_GetInfo':
../Example/User/CM7/encode_dma.c:121:5: warning: implicit declaration of function 'LCD_SizesErrorDisplay' [-Wimplicit-function-declaration]
  121 |     LCD_SizesErrorDisplay();
      |     ^~~~~~~~~~~~~~~~~~~~~
../Example/User/CM7/encode_dma.c:303:13: error: invalid storage class for function 'ReadBmpRgbLines'
  303 | static void ReadBmpRgbLines(FIL *file, JPEG_ConfTypeDef Conf, uint8_t * pDataBuffer, uint32_t *BufferSize)
      |             ^~~~~~~~~~~~~~~
../Example/User/CM7/encode_dma.c:319:1: error: expected declaration or statement at end of input
  319 | }
      | ^
../Example/User/CM7/encode_dma.c: At top level:
../Example/User/CM7/encode_dma.c:88:13: warning: 'ReadBmpRgbLines' used but never defined
   88 | static void ReadBmpRgbLines(FIL *file, JPEG_ConfTypeDef Conf, uint8_t * pDataBuffer, uint32_t *BufferSize);
      |             ^~~~~~~~~~~~~~~

(I hope I brought enough context for it)

I manually tried to fix the issue by including the relevant .h file inside this specific .c file. and even after I made the IDE recognize every type in there the compiler still gave me this error