AnsweredAssumed Answered

Problem LibJPEG jcdctmgr.c

Question asked by ANDRES RODRIGUEZ on Jun 1, 2018
Latest reply on Jun 1, 2018 by ANDRES RODRIGUEZ

Hello,

several days ago I'm trying to encode a BMP image to jpeg, when I do debbug I see that in the jcdctmgr.c file, in the GLOBAL (void) function jinit_forward_dct (j_compress_ptr cinfo)  function, an error occurs at this point fdct = (my_fdct_ptr)     (* cinfo-> mem-> alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE, SIZEOF (my_fdct_controller)); and it sends me to void HardFault_Handler (void) in the file stm32f4xxit.c, I think it's strange because LibJPEG is a set of independent libraries, does anyone have any idea how to solve this problem?

 

I am working with the STM32F446VE, STM32CubeMX version 4.21 and IAR, with a simple board made by my own, it has a SD card, and the fat files works fine.

 

THANKS.

ANDRÉS FELIPE

Outcomes