Jpeg image not being displayed .. GRC resource converter issue
I'm using a pic32mz micro to drive a 5.7" TFT screen and i'm unable to display jpeg images.
The GRC executable is the latest version and came with the Harmony installation files.
GRC converts my jpeg file to HEX and generates 3 files:
- header file (.h)
- assembly file (.S)
- and a .c file
However, when i add these file to my project and try to display image using:
#define WAIT_UNTIL_FINISH(x) while(x == GFX_STATUS_FAILURE)
WAIT_UNTIL_FINISH(GFX_ImageDraw(GFX_INDEX_0, 100, 160, (void *) &folderImg));
or method 2:
(void *) &folderImg,
10 + 90, // + img width
100 + 90, // + img height
) == 0xff);
I get no output on the screen.
I have tried converting the clouds.JPG image supplied with the graphics demo using GRC but impossible to add this image.
I get this error: "Unknown Image File Type .. Please choose bitmap(.bmp) or JPEG(.jpg, .jpeg)"
Now, what's weird is that when i drag the image directly into GRC, it gives no errors !! .. So i've tried to convert but nothing.
Next i tried to save the GRC project in .xml file and i noticed something not quite right in the output i.e.
<?xml version="1.0" encoding="ISO-8859-1"?><Graphics_Resource_Converter>
The GRC program seems to think that i'm using C30/XC16 when in fact i'm using C32/XC32 !! :-(
Can anyone help me find the missing link?
Thanks in advance.