EVKMIMXRT1064_sd_jpeg Memory Allocation Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EVKMIMXRT1064_sd_jpeg Memory Allocation Error

Jump to solution
695 Views
BrendanF
Contributor I

I have an i.MX RT1064 Eval Kit with an RK043FN66HS-CTG LCD screen. After successfully running the hello world project, I attempted to run the sd_jpeg demo.  

I formatted and installed an SD card with the zipped images, but inside the jpeg_decode function at line 177, the code exits with "memory allocation error."

Did I miss a configuration step for the example code to run?

 

 

0 Kudos
Reply
1 Solution
660 Views
mayliu1
NXP Employee
NXP Employee

Hi @BrendanF ,

Thank you so much for your interest in our products and for using our community.

Please set the heap to a larger size, then try debug your project again.

mayliu1_0-1754033085046.png

Best Regards

MayLiu

View solution in original post

0 Kudos
Reply
1 Reply
661 Views
mayliu1
NXP Employee
NXP Employee

Hi @BrendanF ,

Thank you so much for your interest in our products and for using our community.

Please set the heap to a larger size, then try debug your project again.

mayliu1_0-1754033085046.png

Best Regards

MayLiu

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2142932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEVKMIMXRT1064_sd_jpeg%20Memory%20Allocation%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142932%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20an%20i.MX%20RT1064%20Eval%20Kit%20with%20an%20RK043FN66HS-CTG%20LCD%20screen.%20After%20successfully%20running%20the%20hello%20world%20project%2C%20I%20attempted%20to%20run%20the%20sd_jpeg%20demo.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3EI%20formatted%20and%20installed%20an%20SD%20card%20with%20the%20zipped%20images%2C%20but%20inside%20the%20jpeg_decode%20function%20at%20line%20177%2C%20the%20code%20exits%20with%20%22memory%20allocation%20error.%22%3C%2FP%3E%3CP%3EDid%20I%20miss%20a%20configuration%20step%20for%20the%20example%20code%20to%20run%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EVKMIMXRT1064_sd_jpeg%20Memory%20Allocation%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253242%22%20target%3D%22_blank%22%3E%40BrendanF%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20so%20much%20for%20your%20interest%20in%20our%20products%20and%20for%20using%20our%20community.%3C%2FP%3E%0A%3CP%3EPlease%20set%20the%20heap%20to%20a%20larger%20size%EF%BC%8C%20then%20try%20debug%20your%20project%20again.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1754033085046.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1754033085046.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350571i0272DA8CDA379E5D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1754033085046.png%22%20alt%3D%22mayliu1_0-1754033085046.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E