I'm using the STM3220G-EVAL board with the emWin library STemWin522_CM3_OS_IAR.a. I downloaded the PNG library from segger.com/link/emwin_png.zip. That zip file contains folders named emWin_V4.18, emWin_V5.00, emWin_V5.18 and emWin_V5.26. I assumed since my library version is 5.22, the version emWin_5.18 is probably the one most suitable for use in my project so I unzipped that code and compiled/linked that version of the PNG software into my project. I am using the IAR Embedded Workbench for development. I am using emWinGUIBuilder V5.22 and with that utility I placed an Image on my window and assigned a PNG graphic to that Image.
When I compile/link and then display this window I see that the PNG library is failing to display the image. Upon rendering the image the code stops execution here:
static void _png_cexcept_error(png_structp png_ptr, png_const_charp msg) {
GUI_USE_PARA(png_ptr);
GUI_USE_PARA(msg);
while (1); /* Stop on error */
}
The error indicated by msg is "zlib memory error".
How do I resolve this issue?
When I compile/link and then display this window I see that the PNG library is failing to display the image. Upon rendering the image the code stops execution here:
static void _png_cexcept_error(png_structp png_ptr, png_const_charp msg) {
GUI_USE_PARA(png_ptr);
GUI_USE_PARA(msg);
while (1); /* Stop on error */
}
The error indicated by msg is "zlib memory error".
How do I resolve this issue?